mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-13 22:50:19 +02:00
Minimall supported build without boost.
To remove boost dependency, `-DMSGPACK_USE_BOOST=OFF` for cmake. By default, `-DMSGPACK_USE_BOOST` is `ON`. NOTE: In order to build tests `-DMSGPACK_USE_BOOST=ON` is required. For C++ compiler, the option `-DMSGPACK_NO_BOOST` is required to remove boost.
This commit is contained in:
@@ -10,6 +10,13 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#if defined(MSGPACK_NO_BOOST)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(empty)
|
||||
{
|
||||
}
|
||||
#else // defined(MSGPACK_NO_BOOST)
|
||||
|
||||
#include <boost/fusion/adapted/struct/define_struct.hpp>
|
||||
#include <boost/fusion/adapted/struct/adapt_struct.hpp>
|
||||
|
||||
@@ -246,3 +253,5 @@ BOOST_AUTO_TEST_CASE(fusion_pack_unpack_convert_tuple)
|
||||
}
|
||||
|
||||
#endif // !defined(MSGPACK_USE_CPP03)
|
||||
|
||||
#endif // defined(MSGPACK_NO_BOOST)
|
||||
|
@@ -9,6 +9,13 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#if defined(MSGPACK_NO_BOOST)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(empty)
|
||||
{
|
||||
}
|
||||
#else // defined(MSGPACK_NO_BOOST)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(pack_convert_nil)
|
||||
{
|
||||
std::stringstream ss;
|
||||
@@ -176,3 +183,5 @@ BOOST_AUTO_TEST_CASE(pack_convert_no_def_con)
|
||||
}
|
||||
|
||||
#endif // !defined(MSGPACK_USE_CPP03
|
||||
|
||||
#endif // defined(MSGPACK_NO_BOOST)
|
||||
|
@@ -9,6 +9,13 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#if defined(MSGPACK_NO_BOOST)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(empty)
|
||||
{
|
||||
}
|
||||
#else // defined(MSGPACK_NO_BOOST)
|
||||
|
||||
#if (BOOST_VERSION / 100000) >= 1 && ((BOOST_VERSION / 100) % 1000) >= 53
|
||||
|
||||
BOOST_AUTO_TEST_CASE(pack_convert_string_ref)
|
||||
@@ -46,3 +53,5 @@ BOOST_AUTO_TEST_CASE(object_with_zone_string_ref)
|
||||
}
|
||||
|
||||
#endif // (BOOST_VERSION / 100000) >= 1 && ((BOOST_VERSION / 100) % 1000) >= 53
|
||||
|
||||
#endif // defined(MSGPACK_NO_BOOST)
|
||||
|
@@ -9,6 +9,13 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#if defined(MSGPACK_NO_BOOST)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(empty)
|
||||
{
|
||||
}
|
||||
#else // defined(MSGPACK_NO_BOOST)
|
||||
|
||||
// Avoid empty test tree on boost 1.60 and lower
|
||||
BOOST_AUTO_TEST_CASE(dummy)
|
||||
{
|
||||
@@ -51,3 +58,5 @@ BOOST_AUTO_TEST_CASE(object_with_zone_string_view)
|
||||
}
|
||||
|
||||
#endif // (BOOST_VERSION / 100000) >= 1 && ((BOOST_VERSION / 100) % 1000) >= 61
|
||||
|
||||
#endif // defined(MSGPACK_NO_BOOST)
|
||||
|
@@ -10,6 +10,13 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#if defined(MSGPACK_NO_BOOST)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(empty)
|
||||
{
|
||||
}
|
||||
#else // defined(MSGPACK_NO_BOOST)
|
||||
|
||||
const double kEPS = 1e-10;
|
||||
|
||||
// nil
|
||||
@@ -819,3 +826,5 @@ BOOST_AUTO_TEST_CASE(object_with_zone_variant_ref_map)
|
||||
BOOST_CHECK_NO_THROW(boost::get<multimap_t>(val2));
|
||||
BOOST_CHECK(val1 == val2);
|
||||
}
|
||||
|
||||
#endif // defined(MSGPACK_NO_BOOST)
|
||||
|
Reference in New Issue
Block a user