2 # NotificationManager build script
8 SConscript(env.get('SRC_DIR') + '/service/third_party_libs.scons', 'lib_env')
9 notimgr_env = lib_env.Clone()
11 ######################################################################
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','NotificationManager'])
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'])
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')
36 notificationmanager = notimgr_c_env.Program('notificationmanager', 'notificationManager/main.c')
38 #notimgr_env.InstallTarget(sampleprovider, 'sampleprovider')
39 #notimgr_env.InstallTarget(sampleconsumer, 'sampleconsumer')
40 #notimgr_env.InstallTarget(notificationmanager, 'notificationmanager')