DESCRIPTION = "Builds unit tests to be run on the host system" # Directory under which all built files/directories will be placed BUILD_DIR = build_globals.from_build_root(NAME) # Dummy file that signifies the existence of required build directories BUILD_DIR_DUMMY = os.path.join(BUILD_DIR, '.dummy') # Directory to place all c object files OBJ_DIR = os.path.join(BUILD_DIR, 'obj') COMPILER = 'gcc' COMPILER_DEFINITIONS = ['TARGET_HOST'] COMPILER_FLAGS = ['-O0', '-g3', '-Wall', '-MMD'] COMPILER_INCLUDE_DIRS = [ build_globals.from_proj_root('arduino_core', 'include'), build_globals.from_proj_root('arduino_core', 'variants', 'arduino_due_x'), build_globals.from_proj_root('device_libs', 'CMSIS', 'CMSIS', 'Include'), build_globals.from_proj_root('device_libs', 'CMSIS', 'Device', 'ATMEL'), build_globals.from_proj_root('device_libs', 'libsam'), build_globals.from_proj_root('src'), build_globals.from_proj_root('my_static_lib'), build_globals.from_proj_root('test_harness', 'Unity') ] LINKER = 'gcc' SOURCE_DIRS = ['src', 'tests', 'test_harness', 'my_static_lib'] SOURCES = utilities.find_files(SOURCE_DIRS, extensions=['.c'])