[SSM] Apply changed OIC API
[platform/upstream/iotivity.git] / service / soft-sensor-manager / SampleApp / linux / THSensorApp1 / SConscript
1 ##
2 # linux sample app  build script
3 ##
4
5 Import('env')
6
7 # Add third party libraries
8 SConscript(env.get('SRC_DIR') + '/service/third_party_libs.scons')
9 linux_sample_env = env.Clone()
10
11 ######################################################################
12 # Build flags
13 ######################################################################
14 linux_sample_env.AppendUnique(CPPPATH = ['include/'])
15 linux_sample_env.AppendUnique(CXXFLAGS = ['-std=c++0x', '-Wall', '-pthread'])
16 linux_sample_env.AppendUnique(CPPDEFINES = ['LINUX'])
17 linux_sample_env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')])
18 linux_sample_env.AppendUnique(LIBS = ['pthread'])
19
20 ######################################################################
21 #build sampleapp
22 ######################################################################
23 thsensorapp1 = linux_sample_env.Program('THSensorApp', 'src/ThingResourceServer1.cpp')
24 Alias("thsensorapp1_sample", thsensorapp1)
25 env.AppendTarget('thsensorapp1_sample')