Files

75 lines
2.9 KiB
C++

#ifndef ACTIV_BOOST_SERIALIZATION_CONFIG_HPP
#define ACTIV_BOOST_SERIALIZATION_CONFIG_HPP
// config.hpp ---------------------------------------------//
// (c) Copyright Robert Ramey 2004
// Use, modification, and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See library home page at http://www.boost.org/libs/serialization
//----------------------------------------------------------------------------//
// This header implements separate compilation features as described in
// http://www.boost.org/more/separate_compilation.html
#include <ActivBoost/config.hpp>
#include <ActivBoost/detail/workaround.hpp>
// note: this version incorporates the related code into the the
// the same library as ACTIV_BOOST_ARCHIVE. This could change some day in the
// future
// if ACTIV_BOOST_SERIALIZATION_DECL is defined undefine it now:
#ifdef ACTIV_BOOST_SERIALIZATION_DECL
#undef ACTIV_BOOST_SERIALIZATION_DECL
#endif
// we need to import/export our code only if the user has specifically
// asked for it by defining either ACTIV_BOOST_ALL_DYN_LINK if they want all boost
// libraries to be dynamically linked, or ACTIV_BOOST_SERIALIZATION_DYN_LINK
// if they want just this one to be dynamically liked:
#if defined(ACTIV_BOOST_ALL_DYN_LINK) || defined(ACTIV_BOOST_SERIALIZATION_DYN_LINK)
#if !defined(ACTIV_BOOST_DYN_LINK)
#define ACTIV_BOOST_DYN_LINK
#endif
// export if this is our own source, otherwise import:
#if defined(ACTIV_BOOST_SERIALIZATION_SOURCE)
#define ACTIV_BOOST_SERIALIZATION_DECL ACTIV_BOOST_SYMBOL_EXPORT
#else
#define ACTIV_BOOST_SERIALIZATION_DECL ACTIV_BOOST_SYMBOL_IMPORT
#endif // defined(ACTIV_BOOST_SERIALIZATION_SOURCE)
#endif // defined(ACTIV_BOOST_ALL_DYN_LINK) || defined(ACTIV_BOOST_SERIALIZATION_DYN_LINK)
// if ACTIV_BOOST_SERIALIZATION_DECL isn't defined yet define it now:
#ifndef ACTIV_BOOST_SERIALIZATION_DECL
#define ACTIV_BOOST_SERIALIZATION_DECL
#endif
// enable automatic library variant selection ------------------------------//
#if !defined(ACTIV_BOOST_ALL_NO_LIB) && !defined(ACTIV_BOOST_SERIALIZATION_NO_LIB) \
&& !defined(ACTIV_BOOST_ARCHIVE_SOURCE) && !defined(ACTIV_BOOST_WARCHIVE_SOURCE) \
&& !defined(ACTIV_BOOST_SERIALIZATION_SOURCE)
//
// Set the name of our library, this will get undef'ed by auto_link.hpp
// once it's done with it:
//
#define ACTIV_BOOST_LIB_NAME Boost_serialization
//
// If we're importing code from a dll, then tell auto_link.hpp about it:
//
#if defined(ACTIV_BOOST_ALL_DYN_LINK) || defined(ACTIV_BOOST_SERIALIZATION_DYN_LINK)
# define ACTIV_BOOST_DYN_LINK
#endif
//
// And include the header that does the work:
//
#include <ActivBoost/config/auto_link.hpp>
#endif
#endif // ACTIV_BOOST_SERIALIZATION_CONFIG_HPP