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