config.hpp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Copyright (C) 2006 Douglas Gregor <doug.gregor -at- gmail.com>
  2. // Use, modification and distribution is subject to the Boost Software
  3. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. /** @file config.hpp
  6. *
  7. * This header provides auto-linking and configuration support for the
  8. * Boost.MPI python bindings.
  9. */
  10. #ifndef BOOST_MPI_PYTHON_CONFIG_HPP
  11. #define BOOST_MPI_PYTHON_CONFIG_HPP
  12. #include <boost/mpi/config.hpp>
  13. /*****************************************************************************
  14. * *
  15. * DLL import/export options *
  16. * *
  17. *****************************************************************************/
  18. #if (defined(BOOST_MPI_PYTHON_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && !defined(BOOST_MPI_PYTHON_STATIC_LINK)
  19. # if defined(BOOST_MPI_PYTHON_SOURCE)
  20. # define BOOST_MPI_PYTHON_DECL BOOST_SYMBOL_EXPORT
  21. # define BOOST_MPI_PYTHON_BUILD_DLL
  22. # else
  23. # define BOOST_MPI_PYTHON_DECL BOOST_SYMBOL_IMPORT
  24. # endif
  25. #endif
  26. #ifndef BOOST_MPI_PYTHON_DECL
  27. # define BOOST_MPI_PYTHON_DECL
  28. #endif
  29. #if !defined(BOOST_MPI_PYTHON_NO_LIB) && !defined(BOOST_MPI_PYTHON_SOURCE) && !defined(BOOST_ALL_NO_LIB)
  30. # define BOOST_LIB_NAME boost_mpi_python
  31. # if defined(BOOST_MPI_PYTHON_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
  32. # define BOOST_DYN_LINK
  33. # endif
  34. # ifdef BOOST_MPI_PYTHON_DIAG
  35. # define BOOST_LIB_DIAGNOSTIC
  36. # endif
  37. # include <boost/config/auto_link.hpp>
  38. #endif
  39. #endif // BOOST_MPI_PYTHON_CONFIG_HPP