#include "secureresourceprovider.h"
#include "logger.h"
#include "oic_malloc.h"
+#include "oic_string.h"
#include "aclresource.h"
#include "pstatresource.h"
#include "srmresourcestrings.h"
#include "doxmresource.h"
#include "credresource.h"
#include "cainterface.h"
+#include "oic_string.h"
#define TAG "OIC_PIN_OXM_COMMON"
#include "cacommon.h"
#include "cainterface.h"
#include "ocpayload.h"
+#include "oickeepalive.h"
#include "platform_features.h"
#include "payload_logging.h"
#include "ocendpoint.h"
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'])
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
#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
{
};
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 >());
}
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 >() };
}
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'])