summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoonKyu Park <sk7.park@samsung.com>2018-06-30 20:49:47 +0900
committerSoonKyu Park <sk7.park@samsung.com>2018-06-30 20:51:22 +0900
commit23ca0cab871cc21b827c6d7caaedd4fcbde06224 (patch)
treeb116cded81061bc6b3979b7e7cb6fa274c540c57
parenteca7ee3756675b33196f890320fec0281f571d24 (diff)
downloadlibzypp-bindings-tizen_5.0.tar.gz
libzypp-bindings-tizen_5.0.tar.bz2
libzypp-bindings-tizen_5.0.zip
Originally from by V. Zhestkov: Adapt bindings to work with boost-1.62 Change-Id: I9676b210376d79cd7af27866328697bbe481b1e5
-rw-r--r--swig/ResPool.i5
-rw-r--r--swig/zypp.i14
2 files changed, 18 insertions, 1 deletions
diff --git a/swig/ResPool.i b/swig/ResPool.i
index 08154f8..b9f24e9 100644
--- a/swig/ResPool.i
+++ b/swig/ResPool.i
@@ -3,6 +3,11 @@
%ignore zypp::ResPool::byKindEnd;
%ignore zypp::ResPool::byNameBegin;
%ignore zypp::ResPool::byNameEnd;
+#if (BOOST_VERSION >= 106501)
+%ignore zypp::ResPool::byStatus;
+%ignore zypp::ResPool::byStatusBegin;
+%ignore zypp::ResPool::byStatusEnd;
+#endif
%apply unsigned { zypp::ResPool::size_type };
%include <zypp/ResPool.h>
diff --git a/swig/zypp.i b/swig/zypp.i
index 5c1c5fc..1cf9a4d 100644
--- a/swig/zypp.i
+++ b/swig/zypp.i
@@ -17,13 +17,20 @@
// stuff swig seems to be unable to parse
#define BOOST_NOEXCEPT
+#define BOOST_SP_NOEXCEPT
+#define BOOST_SP_NOEXCEPT_WITH_ASSERT
#define BOOST_NO_CXX11_NOEXCEPT
#define BOOST_NO_CXX11_RVALUE_REFERENCES
#define BOOST_NO_CXX11_SMART_PTR
+#if (BOOST_VERSION >= 106501)
+#define BOOST_CONSTEXPR_OR_CONST const
+#define constexpr
+#define BOOST_CONSTEXPR constexpr
+#else
#define BOOST_CONSTEXPR
#define BOOST_CONSTEXPR_OR_CONST const
#define constexpr
-
+#endif
%{
/* Includes the header in the wrapper code */
#ifdef SWIGRUBY
@@ -209,6 +216,11 @@ namespace zypp {
%include "std_string.i"
%include "stl.i"
+#if (BOOST_VERSION >= 106501)
+%import <boost/config.hpp>
+%import <boost/pointer_cast.hpp>
+#endif
+
#ifdef BOOST_SMARTPTR_INCLUDE_DIR
%import <boost/smart_ptr/scoped_ptr.hpp>
%import <boost/smart_ptr/shared_ptr.hpp>