])
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'])
-
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'])
+
######################################################################
# Source files and Targets
######################################################################
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/NSProviderIngerface.h',\
+ 'service/notification', 'NSProviderInterface.h')
+notification_env.UserInstallTargetHeader('include/NSConsumerIngerface.h',\
+ 'service/notification', 'NSConsumerInterface.h')
# Go to build Unit test
if target_os == 'linux':
notification_test_env.PrependUnique(CPPPATH = [ src_dir + '/extlibs/hippomocks-master', gtest_dir + '/include'])
notification_test_env.AppendUnique(CPPPATH = ['../include'])
-#if not env.get('RELEASE'):
-# notification_test_env.PrependUnique(LIBS = ['gcov'])
-# notification_test_env.AppendUnique(CXXFLAGS = ['--coverage'])
-
######################################################################
# Build Test
######################################################################
if target_os == 'linux':
from tools.scons.RunTest import *
run_test(notification_consumer_test_env, '', 'service/notification/unittest/notification_consumer_test')
- #run_test(notification_provider_test_env, '', 'service/notification/unittest/notification_provider_test')
\ No newline at end of file
+ run_test(notification_provider_test_env, '', 'service/notification/unittest/notification_provider_test')
\ No newline at end of file