1 #******************************************************************
3 # Copyright 2014 Samsung Electronics All Rights Reserved.
5 #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
22 # things_manager project build script
27 # Add third party libraries
29 SConscript(env.get('SRC_DIR') + '/service/third_party_libs.scons', exports = 'lib_env')
31 things_manager_env = lib_env.Clone()
32 target_os = env.get('TARGET_OS')
33 ######################################################################
35 ######################################################################
36 things_manager_env.AppendUnique(CPPPATH = ['sdk/inc', 'sdk/src'])
38 if target_os not in ['windows', 'winrt']:
39 things_manager_env.AppendUnique(CXXFLAGS = ['-std=c++0x', '-Wall'])
40 if target_os != 'android':
41 things_manager_env.AppendUnique(CXXFLAGS = ['-pthread'])
43 if target_os == 'android':
44 things_manager_env.AppendUnique(CXXFLAGS = ['-frtti', '-fexceptions'])
46 ######################################################################
47 # Source files and Targets
48 ######################################################################
49 tgm_src = env.Glob('sdk/src/*.cpp')
50 tgmsdk = things_manager_env.StaticLibrary('TGMSDKLibrary', tgm_src)
52 things_manager_env.InstallTarget(tgmsdk, 'libTGMSDK')
54 #Go to build sample apps
55 SConscript('sampleapp/SConscript')