apply added namespace to ResourceContainer, change SConscript for modified library...
authorMinji Park <minjii.park@samsung.com>
Thu, 18 Jun 2015 05:02:15 +0000 (14:02 +0900)
committerUze Choi <uzchoi@samsung.com>
Fri, 19 Jun 2015 01:36:12 +0000 (01:36 +0000)
- apply added namespace of ServerBuilder and PrimitiveResource to ResourceContainer code
- modifiy SConscript of ResourceContainer due to changed library name of ServerBuilder and PrimitiveResource

Change-Id: I52fd959be651a1bcab0300b33376ed7294433faf
Signed-off-by: Minji Park <minjii.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1335
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/basis/resourceContainer/SConscript
service/basis/resourceContainer/src/ResourceContainerImpl.cpp

index d544610..01af0b6 100644 (file)
@@ -52,7 +52,7 @@ if target_os == 'android':
     resource_container_env.PrependUnique(LIBS = ['gnustl_shared', 'compatibility', 'log'])
        
 #resource_container_env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')])
-resource_container_env.PrependUnique(LIBS = ['ServerBuilder', 'ServiceCommon', 'oc','octbstack', 'oc_logger', 'oc_logger_core', 'connectivity_abstraction', 'coap'])
+resource_container_env.PrependUnique(LIBS = ['server_builder', 'service_common', 'oc','octbstack', 'oc_logger', 'oc_logger_core', 'connectivity_abstraction'])
 resource_container_env.AppendUnique(LIBS = ['dl'])
 
 ######################################################################
@@ -76,7 +76,7 @@ resource_container_env.InstallTarget([res_container_static,res_container_shared]
 ######################################################################
 # build Sample Resource Bundle
 ######################################################################
-SConscript('resource-container/examples/SampleBundle/SConscript')
+#SConscript('resource-container/examples/SampleBundle/SConscript')
 
 sample_resource_bundle_env = resource_container_env.Clone()
 sample_resource_bundle_env.AppendUnique(CCFLAGS = ['-fPIC'])
@@ -105,4 +105,4 @@ Ignore("examples/ResourceContainerConfig.xml", "examples/ResourceContainerConfig
 
 containertestapp = containertest_env.Program('ContainerTest', res_container_src)
 Alias("containertest", containertestapp)
-env.AppendTarget('containertest')
\ No newline at end of file
+env.AppendTarget('containertest')
index 8b0cf63..fe64f35 100644 (file)
@@ -27,7 +27,6 @@
 #include "PrimitiveResponse.h"
 #include "PrimitiveServerResource.h"
 
-
 #include <dlfcn.h>
 #include <unistd.h>
 #include <string.h>
@@ -37,6 +36,7 @@
 #include "oc_logger.hpp"
 
 using OC::oc_log_stream;
+using namespace OIC::Service;
 
 /* Annother way to create a context: */
 auto info_logger = []() -> boost::iostreams::stream<OC::oc_log_stream> &