Replace glib threadpool usage with a 'dumb' thread implementation.
[platform/upstream/iotivity.git] / service / notification-manager / SampleApp / linux / SConscript
1 ##
2 # NotificationManager build script
3 ##
4
5 Import('env')
6
7 lib_env = env.Clone()
8 SConscript(env.get('SRC_DIR') + '/service/third_party_libs.scons', 'lib_env')
9 notimgr_env = lib_env.Clone()
10
11 ######################################################################
12 # Build flags
13 ######################################################################
14 notimgr_env.AppendUnique(CPPPATH = ['../../NotificationManager/include'])
15 notimgr_env.AppendUnique(CPPPATH = ['../../../../extlibs/cjson'])
16 notimgr_env.AppendUnique(CPPPATH = ['../../../../resource/csdk/connectivity/api'])
17 notimgr_env.AppendUnique(CXXFLAGS = ['-O2', '-g', '-Wall', '-fmessage-length=0', '-std=c++0x'])
18 notimgr_c_env = notimgr_env.Clone()
19 notimgr_env.AppendUnique(LIBS = ['oc', 'octbstack', 'oc_logger', 'connectivity_abstraction', 'coap', 'pthread'])
20 notimgr_c_env.AppendUnique(LIBS = ['octbstack', 'oc_logger', 'connectivity_abstraction', 'coap', 'pthread','NOTISDKLibrary'])
21
22 if env.get('SECURED') == '1':
23     notimgr_env.AppendUnique(LIBS = ['tinydtls'])
24     notimgr_c_env.AppendUnique(LIBS = ['tinydtls'])
25 if 'rt' in notimgr_env.get('LIBS'):
26     notimgr_env.Append(LIBS = ['rt'])
27 if 'rt' in notimgr_c_env.get('LIBS'):
28     notimgr_c_env.Append(LIBS = ['rt'])
29
30 ####################################################################
31 # Source files and Targets
32 ######################################################################
33 sampleprovider = notimgr_env.Program('sampleprovider', 'sampleProvider/SampleProvider.cpp')
34 sampleconsumer = notimgr_env.Program('sampleconsumer', 'sampleConsumer/SampleConsumer.cpp')
35
36 notificationmanager = notimgr_c_env.Program('notificationmanager', 'notificationManager/main.c')
37
38 #notimgr_env.InstallTarget(sampleprovider, 'sampleprovider')
39 #notimgr_env.InstallTarget(sampleconsumer, 'sampleconsumer')
40 #notimgr_env.InstallTarget(notificationmanager, 'notificationmanager')