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 = ['sdk/inc', 'sdk/src'])
18 if target_os not in ['windows', 'winrt']:
19 things_manager_env.AppendUnique(CXXFLAGS = ['-std=c++0x', '-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'])
25 things_manager_env.AppendUnique(CPPDEFINES = ['_GLIBCXX_USE_C99=1', '_GLIBCXX_HAVE_WCSTOF=1'])
27 ######################################################################
28 # Source files and Targets
29 ######################################################################
30 tgm_src = env.Glob('sdk/src/*.cpp')
31 tgmsdk = things_manager_env.StaticLibrary('TGMSDKLibrary', tgm_src)
33 things_manager_env.InstallTarget(tgmsdk, 'libTGMSDK')
35 #Go to build sample apps
36 SConscript('sampleapp/SConscript')