2 # things_manager project build script
7 # Add third party libraries
9 SConscript(env.get('SRC_DIR') + '/service/third_party_libs.scons', exports = 'lib_env')
11 things_manager_env = lib_env.Clone()
12 target_os = env.get('TARGET_OS')
13 ######################################################################
15 ######################################################################
16 things_manager_env.AppendUnique(CPPPATH = ['../../extlibs/timer', 'sdk/inc', 'sdk/src'])
18 if target_os not in ['windows', 'winrt']:
19 things_manager_env.AppendUnique(CXXFLAGS = ['-Wall'])
20 if target_os != 'android':
21 things_manager_env.AppendUnique(CXXFLAGS = ['-pthread'])
23 if target_os == 'android':
24 things_manager_env.AppendUnique(CXXFLAGS = ['-frtti', '-fexceptions'])
26 ######################################################################
27 # Source files and Targets
28 ######################################################################
29 tgm_src = env.Glob('sdk/src/*.cpp', '../../extlibs/timer/timer.c')
30 tgmsdk = things_manager_env.StaticLibrary('TGMSDKLibrary', tgm_src)
32 things_manager_env.InstallTarget(tgmsdk, 'libTGMSDK')
34 #Go to build sample apps
35 SConscript('sampleapp/SConscript')