build: Updated boost Framework path for ios 81/16881/4
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Fri, 25 Nov 2016 11:19:59 +0000 (17:19 +0600)
committerPhil Coval <philippe.coval@osg.samsung.com>
Fri, 3 Feb 2017 21:44:32 +0000 (21:44 +0000)
[srijon.sb]
1. Updated boost Framework path for ios
2. Fixed build errors
a. Some void functions return values
b. Added missing Headers

[Philippe Coval]
Ported from 1.2-rel branch to master
  Conflicts:
service/resource-encapsulation/src/common/primitiveResource/src/RCSResourceAttributes.cpp

Change-Id: I0b6a796fb815a16725e06fa154499d5a8d1605cf
Signed-off-by: srijon.sb <srijon.sb@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14797
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Author: srijon.sb <srijon.sb@samsung.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Signed-off-by:Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16881
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
resource/csdk/security/provisioning/src/secureresourceprovider.c
resource/csdk/security/src/oxmpincommon.c
resource/csdk/stack/src/ocresource.c
resource/third_party_libs.scons
service/resource-encapsulation/SConscript
service/resource-encapsulation/src/common/primitiveResource/src/RCSResourceAttributes.cpp
service/third_party_libs.scons

index 8c6f3f3..3a9ffeb 100644 (file)
@@ -29,6 +29,7 @@
 #include "secureresourceprovider.h"
 #include "logger.h"
 #include "oic_malloc.h"
+#include "oic_string.h"
 #include "aclresource.h"
 #include "pstatresource.h"
 #include "srmresourcestrings.h"
index 5a1d70c..02e800e 100644 (file)
@@ -33,6 +33,7 @@
 #include "doxmresource.h"
 #include "credresource.h"
 #include "cainterface.h"
+#include "oic_string.h"
 
 #define TAG "OIC_PIN_OXM_COMMON"
 
index 703c61a..7632064 100755 (executable)
@@ -49,6 +49,7 @@
 #include "cacommon.h"
 #include "cainterface.h"
 #include "ocpayload.h"
+#include "oickeepalive.h"
 #include "platform_features.h"
 #include "payload_logging.h"
 #include "ocendpoint.h"
index a15e154..9991370 100644 (file)
@@ -73,7 +73,7 @@ elif target_os in ['windows']:
        boost_path = os.path.join(src_dir,'extlibs','boost','boost')
        lib_env.AppendUnique(CPPPATH = [boost_path])
 elif target_os == 'ios':
-       lib_env.AppendUnique(FRAMEWORKPATH = ['#extlibs/boost/ios/framework'])
+       lib_env.AppendUnique(FRAMEWORKPATH = [src_dir + '/extlibs/boost/ios/framework'])
        lib_env.AppendUnique(FRAMEWORKS = ['boost'])
 elif target_os == 'darwin':
        lib_env.AppendUnique(CPPPATH = ['/usr/local/include'])
index f5b5298..85b45d5 100644 (file)
@@ -40,12 +40,16 @@ else:
 if env.get('LOGGING'):
     env.AppendUnique(CPPDEFINES = ['TB_LOG'])
 
+target_os = env.get('TARGET_OS')
+
+if target_os in ['ios']:
+    env.AppendUnique(CPPDEFINES = ['TARGET_OS_IPHONE'])
+
 # Add third party libraries
 lib_env = env.Clone()
 SConscript('#service/third_party_libs.scons', 'lib_env')
 
 resourceClient_env = lib_env.Clone()
-target_os = env.get('TARGET_OS')
 
 ######################################################################
 # Build flags
index 75e9d56..fa36a53 100644 (file)
 #include "boost/mpl/size.hpp"
 #include "boost/mpl/deref.hpp"
 
+#ifdef __APPLE__
+#define OC_CONSTEXPR_INLINE inline
+#else
+#define OC_CONSTEXPR_INLINE constexpr inline
+#endif
+
 namespace
 {
 
@@ -221,7 +227,7 @@ namespace
     };
 
     template< typename VARIANT, int POS >
-    inline std::vector< TypeInfo > getTypeInfo(Int2Type< POS >) noexcept
+    OC_CONSTEXPR_INLINE std::vector< TypeInfo > getTypeInfo(Int2Type< POS >) noexcept
     {
         auto vec = getTypeInfo< VARIANT >(Int2Type< POS - 1 >{ });
         vec.push_back(TypeInfo::get< VARIANT, POS >());
@@ -229,7 +235,7 @@ namespace
     }
 
     template< typename VARIANT >
-    inline std::vector< TypeInfo > getTypeInfo(Int2Type< 0 >) noexcept
+    OC_CONSTEXPR_INLINE std::vector< TypeInfo > getTypeInfo(Int2Type< 0 >) noexcept
     {
         return { TypeInfo::get< VARIANT, 0 >() };
     }
index 195bfa7..e156744 100644 (file)
@@ -91,7 +91,7 @@ if target_os == 'android':
                lib_env.AppendUnique(CCFLAGS = ['-w'])
 
 elif target_os == 'ios':
-       lib_env.AppendUnique(FRAMEWORKPATH = ['#extlibs/boost/ios/framework'])
+       lib_env.AppendUnique(FRAMEWORKPATH = [src_dir + '/extlibs/boost/ios/framework'])
        lib_env.AppendUnique(FRAMEWORKS = ['boost'])
 elif target_os == 'darwin':
        lib_env.AppendUnique(CPPPATH = ['/usr/local/include'])