Remove boost library dependency on PPM module.
authorYounghyunJoo <yh_.joo@samsung.com>
Wed, 22 Jul 2015 12:34:04 +0000 (21:34 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 23 Jul 2015 04:47:07 +0000 (04:47 +0000)
Change-Id: Ic8710ec19e0417d912869a0a24c7e476a932acf0
Signed-off-by: YounghyunJoo <yh_.joo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1810
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/protocol-plugin/plugin-manager/SConscript
service/protocol-plugin/plugin-manager/src/Android/jni/Android.mk
service/protocol-plugin/plugin-manager/src/Android/jni/SConscript
service/protocol-plugin/plugin-manager/src/CpluffAdapter.cpp
service/protocol-plugin/plugin-manager/src/CpluffAdapter.h
service/protocol-plugin/plugin-manager/src/FelixAdapter.h
service/protocol-plugin/plugin-manager/src/PluginManagerImpl.h
service/protocol-plugin/sample-app/linux/SConscript
service/protocol-plugin/sample-app/tizen/PPMSampleApp/.cproject

index f002b78..25edfce 100644 (file)
@@ -28,7 +28,7 @@ if target_os not in ['windows', 'winrt']:
 
 if target_os == 'android':
        plugin_manager_env.AppendUnique(CXXFLAGS = ['-frtti', '-fexceptions', '-DANDROID'])
-       plugin_manager_env.AppendUnique(LIBS = ['boost_thread', 'boost_system', 'gnustl_shared', 'log'])
+       plugin_manager_env.AppendUnique(LIBS = ['gnustl_shared', 'log'])
 
 plugin_manager_env.AppendUnique(CPPDEFINES = ['CP_C_API=CP_EXPORT',
                                        'CP_HOST=\"\\"'+env.get('TARGET_OS')+'\\"\"',
index 9bf9102..e7203dd 100644 (file)
@@ -6,16 +6,6 @@ LOCAL_SRC_FILES        := ../../../../../../dep/android/armeabi/usr/lib/libexpat.so
 include $(PREBUILT_SHARED_LIBRARY)
 
 include $(CLEAR_VARS)
-LOCAL_MODULE   := libboost_thread
-LOCAL_SRC_FILES        := ../../../../../../dep/android/armeabi/usr/lib/libboost_thread.a
-include $(PREBUILT_STATIC_LIBRARY)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE   := libboost_system
-LOCAL_SRC_FILES        := ../../../../../../dep/android/armeabi/usr/lib/libboost_system.a
-include $(PREBUILT_STATIC_LIBRARY)
-
-include $(CLEAR_VARS)
 LOCAL_MODULE   := libcpluff
 LOCAL_SRC_FILES        := ../../../../../../out/android/armeabi/release/libcpluff.a
 include $(PREBUILT_STATIC_LIBRARY)
@@ -35,12 +25,9 @@ LOCAL_LDLIBS                         := -llog -ldl -lz
 
 LOCAL_STATIC_LIBRARIES         := libcpluff
 LOCAL_STATIC_LIBRARIES         += libpmimpl
-LOCAL_STATIC_LIBRARIES         += libboost_thread
-LOCAL_STATIC_LIBRARIES         += libboost_system
 LOCAL_STATIC_LIBRARIES         += libexpat
 
-LOCAL_C_INCLUDES                       := ../../../../../../extlibs/boost/boost_1_58_0
-LOCAL_C_INCLUDES                       += ../../../../lib/cpluff/libcpluff
+LOCAL_C_INCLUDES                       := ../../../../lib/cpluff/libcpluff
 LOCAL_C_INCLUDES                       += ../../../src
 LOCAL_C_INCLUDES                       += ../../../../../../extlibs/rapidxml
 
index 7498767..9b54f72 100644 (file)
@@ -18,7 +18,7 @@ ppm_sdk = env.get('SRC_DIR') + '/service/protocol-plugin/plugin-manager'
 ######################################################################
 ppm_jni_env.AppendUnique(CXXFLAGS = ['-std=c++0x', '-Wall', '-DLINUX', '-DNDEBUG'])
 ppm_jni_env.AppendUnique(CXXFLAGS = ['-frtti', '-fexceptions'])
-ppm_jni_env.PrependUnique(LIBS = ['pmimpl', 'ppm', 'expat', 'cpluff', 'boost_system', 'boost_thread', 'gnustl_shared', 'log'])
+ppm_jni_env.PrependUnique(LIBS = ['pmimpl', 'ppm', 'expat', 'cpluff', 'gnustl_shared', 'log'])
 
 ppm_jni_env.AppendUnique(CPPPATH = [ppm_sdk+'/src'])
 ppm_jni_env.AppendUnique(CPPPATH = [ppm_sdk+'/../lib/cpluff/libcpluff'])
index b4b641f..e2b3d68 100644 (file)
@@ -194,20 +194,6 @@ int CpluffAdapter::loadPluginInfoToManager(const std::string path)
         }
         if (plugin_compare_flag)
         {
-            //Auto plugin detection is disabled
-            /*
-            try
-            {
-                boost::thread *t = new boost::thread(boost::bind(&CpluffAdapter::observePluginPath,
-                                                     //this, (void *)path.c_str()));
-                                                     this, (void *)m_cp_plugins[i]->plugin_path));
-                m_thread_g.add_thread(t);
-            }
-            catch (...)
-            {
-                printf("thread throw exception\n");
-            }
-            */
             m_plugins.push_back(*plugin);
             delete(plugin);
         }
index 2248665..221c305 100644 (file)
@@ -34,8 +34,6 @@
 #include <errno.h>
 #include <sys/types.h>
 #include <unistd.h>
-#include <boost/thread.hpp>
-#include <boost/bind.hpp>
 #include <internal.h>
 
 #include "Plugin.h"
@@ -196,7 +194,6 @@ namespace OIC
             cp_status_t m_status;
             cp_plugin_info_t **m_cp_plugins;
             cp_plugin_info_t *m_plugin;
-            //boost::thread_group m_thread_g;
             static CpluffAdapter *s_pinstance;
 
             /**
index f4d655d..c19f458 100644 (file)
@@ -34,8 +34,6 @@
 #include <errno.h>
 #include <sys/types.h>
 #include <unistd.h>
-#include <boost/thread.hpp>
-#include <boost/bind.hpp>
 #include <internal.h>
 #include <jni.h>
 
@@ -186,7 +184,6 @@ namespace OIC
             Config *config;
             typedef std::map<std::string, bool> File_list;
             std::vector<Plugin> m_plugins;
-            boost::thread m_file_detect_thread;
 
             static FelixAdapter *s_pinstance;
 
index c49768b..39f0e95 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "Plugin.h"
 #include "CpluffAdapter.h"
+#include <algorithm>
 
 #ifdef ANDROID
 #include "FelixAdapter.h"
index 0a40553..5c35aa1 100644 (file)
@@ -41,7 +41,7 @@ if target_os not in ['windows', 'winrt']:
 
 sample_env.AppendUnique(LIBS = ['oc', 'oc_logger', 'octbstack',
                                 'connectivity_abstraction', 'coap',
-                                'ppm', 'boost_system', 'pmimpl', 'dl'])
+                                'ppm', 'pmimpl', 'dl'])
 
 if env.get('SECURED') == '1':
     sample_env.AppendUnique(LIBS = ['tinydtls'])
index 3d37aad..519f982 100644 (file)
                                     <listOptionValue builtIn="false" value="octbstack"/>
                                     <listOptionValue builtIn="false" value="oc_logger"/>
                                     <listOptionValue builtIn="false" value="connectivity_abstraction"/>
-                                    <listOptionValue builtIn="false" value="boost_system"/>
-                                    <listOptionValue builtIn="false" value="boost_thread"/>
                                 </option>
                                 <option id="sbi.gnu.cpp.linker.option.shared_flag.core.1600357455" name="Linker.Shared" superClass="sbi.gnu.cpp.linker.option.shared_flag.core" value="true" valueType="boolean"/>
                                 <option id="gnu.cpp.link.option.other.1278390791" name="Other options (-Xlinker [option])" superClass="gnu.cpp.link.option.other"/>
                                     <listOptionValue builtIn="false" value="coap"/>
                                     <listOptionValue builtIn="false" value="oc_logger"/>
                                     <listOptionValue builtIn="false" value="oc_logger_core"/>
-                                    <listOptionValue builtIn="false" value="boost_system"/>
-                                    <listOptionValue builtIn="false" value="boost_thread"/>
                                 </option>
                                 <option id="sbi.gnu.cpp.linker.option.shared_flag.core.870017078" name="Linker.Shared" superClass="sbi.gnu.cpp.linker.option.shared_flag.core" value="true" valueType="boolean"/>
                                 <inputType id="cdt.managedbuild.tool.gnu.cpp.linker.input.204670616" superClass="cdt.managedbuild.tool.gnu.cpp.linker.input">