Add unitest and change invalid function name.
[platform/upstream/iotivity.git] / service / notification / SConscript
old mode 100644 (file)
new mode 100755 (executable)
index 957d4e3..4ec3d60
@@ -68,7 +68,6 @@ if target_os == 'linux':
 if target_os == 'android':
        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'])
@@ -76,6 +75,9 @@ if target_os == 'android':
 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'])    
@@ -111,15 +113,15 @@ notification_env.UserInstallTargetHeader('include/NSConsumerInterface.h',\
        'service/notification', 'NSConsumerInterface.h')
 
 # Go to build Unit test
-#if target_os == 'linux':
#SConscript('unittest/SConscript')
+if target_os == 'linux':
   SConscript('unittest/SConscript')
 
 # Go to build sample apps
 SConscript('examples/SConscript')
 
 # Go to build jni
-#if target_os == 'android':
-#    SConscript('android/SConscript')
+if target_os == 'android':
+    SConscript('android/SConscript')
 
- # Go to build c++ wrapper
-#SConscript('cpp-wrapper/SConscript')
\ No newline at end of file
+# Go to build c++ wrapper
+#SConscript('cpp-wrapper/SConscript')