2 # The main build script
7 SRC_TOP_DIR = os.path.abspath('.') + '/' #oic-resource project top directory
10 SConscript('build_common/SConscript')
11 Import('RELEASE_BUILD', 'BUILD_TARGET', 'TARGET_CPU_ARCH')
15 BUILD_DIR = SRC_TOP_DIR + '/out/' + BUILD_TARGET + '/' + TARGET_CPU_ARCH + '/release/'
17 BUILD_DIR = SRC_TOP_DIR + '/out/' + BUILD_TARGET + '/' + TARGET_CPU_ARCH + '/debug/'
18 VariantDir(BUILD_DIR, SRC_TOP_DIR, duplicate=0)
19 Export('SRC_TOP_DIR', 'BUILD_DIR')
21 if BUILD_TARGET == 'arduino':
22 SConscript('arduino.scons')
25 SConscript(BUILD_DIR + 'csdk/libcoap/SConscript')
28 SConscript(BUILD_DIR + 'csdk/SConscript')
30 if BUILD_TARGET != 'arduino':
32 SConscript(BUILD_DIR + 'oc_logger/SConscript')
35 SConscript(BUILD_DIR + 'src/SConscript')
38 SConscript(BUILD_DIR + 'examples/SConscript')
44 ===============================================================================
46 for t in env.get('TS'):
49 \nDefault all targets will be built. You can specify the target to build:
51 #scons [options] [target]
52 ===============================================================================