from doit_helpers import file_utils
from doit_helpers import gcc_utils

#-----------------------------------------------------------
# Constants

#------------------------------------
# Paths

# Name of this build configuration
NAME = 'unit_tests'

DESCRIPTION = "Build & run unit tests"

# Directory under which all built files/directories will be placed
BUILD_DIR = _globals.from_build_root(NAME)

# Directory to place all c object files
OBJ_DIR = os.path.join(BUILD_DIR, 'obj')


#------------------------------------
# Unit test runner code generator

# Path of the test runner generator script
UNIT_TESTS_RUNNER_GENERATOR = _globals.from_proj_root(
    'test', 'unit_test_harness', 'Unity', 'scripts', 'makeTestRunner.py')

# Root directory of the unit tests
UNIT_TESTS_LOCATION = _globals.from_proj_root(
    'test', 'unit_tests')
from doit_helpers import file_utils
from doit_helpers import gcc_utils

#-----------------------------------------------------------
# Constants

#------------------------------------
# Paths

# Name of this build configuration
NAME = 'scratchpad'

DESCRIPTION = "Run whatever's in the test scratchpad"

# Directory under which all built files/directories will be placed
BUILD_DIR = _globals.from_build_root(NAME)

# Directory to place all c object files
OBJ_DIR = os.path.join(BUILD_DIR, 'obj')


#------------------------------------
# Compiler & linker

COMPILER = 'gcc'
COMPILER_DEFINITIONS = []
COMPILER_FLAGS = [
    '-O0',      # no optimisation
    '-g3',      # full debugging info
    '-Wall',    # all warnings
    '-MMD'      # generate dependency files