Modify folder path with sconscript about memorycache.
authorjaesick.shin <jaesick.shin@samsung.com>
Wed, 3 Aug 2016 02:19:37 +0000 (11:19 +0900)
committerMadan Lanka <lanka.madan@samsung.com>
Fri, 5 Aug 2016 05:19:00 +0000 (05:19 +0000)
our service use memorycache in service side only.
so, move related memorycache files to each of src folder.

second patch included
remove not required comment out in sconScript.

Change-Id: I20b85d824c6ecbd792ab961844d014053a3f4da0
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9961
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
service/notification/SConscript
service/notification/src/consumer/NSConsumerMemoryCache.c [moved from service/notification/src/consumer/cache/linux/NSConsumerMemoryCache.c with 100% similarity]
service/notification/src/consumer/NSConsumerMemoryCache.h [moved from service/notification/src/consumer/cache/linux/NSConsumerMemoryCache.h with 100% similarity]
service/notification/src/provider/NSProviderMemoryCache.c [moved from service/notification/src/provider/cache/linux/NSProviderMemoryCache.c with 100% similarity, mode: 0644]
service/notification/src/provider/NSProviderMemoryCache.h [moved from service/notification/src/provider/cache/linux/NSProviderMemoryCache.h with 100% similarity, mode: 0644]

index ae1b111..e2ac640 100644 (file)
@@ -49,15 +49,6 @@ notification_env.AppendUnique(CPPPATH = ['src/consumer'])
 notification_env.AppendUnique(CPPPATH = ['../../resource/csdk/stack/include'])
 notification_env.AppendUnique(CPPPATH = ['../../resource/csdk/connectivity/api'])
 
-if target_os == 'linux':
-    notification_env.AppendUnique(CPPPATH = ['src/provider/cache/linux'])
-    notification_env.AppendUnique(CPPPATH = ['src/consumer/cache/linux'])
-
-# [TO-DO] change to android DB. 
-if target_os == 'android': 
-    notification_env.AppendUnique(CPPPATH = ['src/provider/cache/linux'])
-    notification_env.AppendUnique(CPPPATH = ['src/consumer/cache/linux'])
-
 notification_env.PrependUnique(LIBS = [
        'octbstack',
        'oc_logger',
@@ -93,20 +84,10 @@ if env.get('WITH_CLOUD') == True:
 # Source files and Targets
 ######################################################################
 
-if target_os == 'linux':
-    PROVIDER_CACHE = File('src/provider/cache/linux/NSProviderMemoryCache.c')
-    CONSUMER_CACHE = File('src/consumer/cache/linux/NSConsumerMemoryCache.c')
-
-if target_os == 'android':
-    PROVIDER_CACHE = File('src/provider/cache/linux/NSProviderMemoryCache.c')
-    CONSUMER_CACHE = File('src/consumer/cache/linux/NSConsumerMemoryCache.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/consumer/*.c'),
-       env.Glob('src/common/*.c'), CONSUMER_CACHE]
+       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')