notification_env.AppendUnique(CPPPATH = ['include'])
notification_env.AppendUnique(CPPPATH = ['src/common'])
notification_env.AppendUnique(CPPPATH = ['src/provider'])
+notification_env.AppendUnique(CPPPATH = ['src/consumer'])
notification_env.AppendUnique(CPPPATH = ['../../resource/csdk/stack/include'])
+notification_env.AppendUnique(CPPPATH = ['../../resource/csdk/resource-directory/include'])
notification_env.AppendUnique(CPPPATH = ['../../resource/csdk/connectivity/api'])
-if target_os == 'linux':
- notification_env.AppendUnique(CPPPATH = ['src/provider/cache/linux'])
-
-if target_os == 'android':
- notification_env.AppendUnique(CPPPATH = ['src/provider/cache/android'])
-
notification_env.PrependUnique(LIBS = [
'octbstack',
'oc_logger',
'connectivity_abstraction',
- 'libcoap'
+ 'libcoap',
+ 'resource_directory'
])
if target_os not in ['windows', 'winrt']:
- notification_env.AppendUnique(CXXFLAGS = ['-O2', '-g', '-Wall', '-fmessage-length=0'])
+ notification_env.AppendUnique(CCFLAGS = ['-O2', '-g', '-Wall', '-fmessage-length=0'])
if target_os not in ['darwin', 'ios', 'windows', 'winrt']:
notification_env.AppendUnique(LINKFLAGS = ['-Wl,--no-undefined'])
notification_env.AppendUnique(LIBS = ['pthread'])
if target_os == 'android':
- notification_env.AppendUnique(CXXFLAGS = ['-frtti', '-fexceptions'])
+ notification_env.AppendUnique(CCFLAGS = ['-frtti', '-fexceptions'])
notification_env.AppendUnique(LIBS = ['gnustl_shared','log'])
- notification_env.AppendUnique(LINKFLAGS = ['-Wl,-soname,libnotification_provider.so'])
-
+ notification_env.AppendUnique(LINKFLAGS = ['-Wl,-soname,libnotification_provider.so'])
+ notification_env.AppendUnique(LINKFLAGS = ['-Wl,-soname,libnotification_consumer.so'])
+
if not env.get('RELEASE'):
notification_env.AppendUnique(LIBS = ['log'])
+if not env.get('RELEASE'):
+ notification_env.PrependUnique(LIBS = ['gcov'])
+ notification_env.AppendUnique(CCFLAGS = ['--coverage'])
+
+if 'CLIENT' in notification_env.get('RD_MODE'):
+ notification_env.AppendUnique(CPPDEFINES = ['RD_CLIENT'])
+
+if env.get('WITH_CLOUD') == True:
+ notification_env.AppendUnique(CPPDEFINES = ['WITH_CLOUD'])
+
+if env.get('SECURED') == '1':
+ notification_env.AppendUnique(CPPDEFINES = ['SECURED'])
+
######################################################################
# Source files and Targets
######################################################################
-if target_os == 'linux':
- PROVIDER_CACHE = File('src/provider/cache/linux/NSProviderMemoryCache.c')
-
-if target_os == 'android':
- PROVIDER_CACHE = File('src/provider/cache/linux/NSProviderMemoryCache.c')
-
notification_provider_src = [
- env.Glob('src/provider/*.c'),
- env.Glob('src/common/*.c'), PROVIDER_CACHE]
+ env.Glob('src/provider/*.c'), env.Glob('src/common/*.c')]
notification_consumer_src = [
- env.Glob('src/common/*.c'),
- env.Glob('src/consumer/*.c')]
+ env.Glob('src/consumer/*.c'), env.Glob('src/common/*.c')]
providersdk = notification_env.SharedLibrary('notification_provider', notification_provider_src)
notification_env.InstallTarget(providersdk, 'libnotification_provider')
notification_env.InstallTarget(consumersdk, 'libnotification_consumer')
notification_env.UserInstallTargetLib(consumersdk, 'libnotification_consumer')
-#notification_env.UserInstallTargetHeader('include/NSProviderIngerface.h',\
-# 'service/notification', 'NSProviderIngerface.h')
-#notification_env.UserInstallTargetHeader('include/NSConsumerIngerface.h',\
-# 'service/notification', 'NSConsumerIngerface.h')
+notification_env.UserInstallTargetHeader('include/NSProviderInterface.h',\
+ 'service/notification', 'NSProviderInterface.h')
+notification_env.UserInstallTargetHeader('include/NSConsumerInterface.h',\
+ 'service/notification', 'NSConsumerInterface.h')
# Go to build Unit test
if target_os == 'linux':
- SConscript('unittest/SConscript')
+ SConscript('unittest/SConscript')
-# Go to build sample apps
-SConscript('examples/SConscript')
+# Go to build c++ wrapper
+SConscript('cpp-wrapper/SConscript')
-# Go to build jni
if target_os == 'android':
SConscript('android/SConscript')
+
+# Go to build sample apps
+SConscript('examples/SConscript')
\ No newline at end of file