config.hpp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // boost/timer/config.hpp -----------------------------------------------------------//
  2. // Copyright Beman Dawes 2003, 2006, 2011
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // See http://www.boost.org/LICENSE_1_0.txt
  5. // See http://www.boost.org/libs/timer for documentation.
  6. #ifndef BOOST_TIMER_CONFIG_HPP
  7. #define BOOST_TIMER_CONFIG_HPP
  8. #include <boost/config.hpp>
  9. #include <boost/system/api_config.hpp>
  10. // This header implements separate compilation features as described in
  11. // http://www.boost.org/more/separate_compilation.html
  12. // enable dynamic or static linking as requested --------------------------------------//
  13. #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_TIMER_DYN_LINK)
  14. # if defined(BOOST_TIMER_SOURCE)
  15. # define BOOST_TIMER_DECL BOOST_SYMBOL_EXPORT
  16. # else
  17. # define BOOST_TIMER_DECL BOOST_SYMBOL_IMPORT
  18. # endif
  19. #else
  20. # define BOOST_TIMER_DECL
  21. #endif
  22. // enable automatic library variant selection ----------------------------------------//
  23. #if !defined(BOOST_TIMER_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_TIMER_NO_LIB)
  24. //
  25. // Set the name of our library, this will get undef'ed by auto_link.hpp
  26. // once it's done with it:
  27. //
  28. #define BOOST_LIB_NAME boost_timer
  29. //
  30. // If we're importing code from a dll, then tell auto_link.hpp about it:
  31. //
  32. #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_TIMER_DYN_LINK)
  33. # define BOOST_DYN_LINK
  34. #endif
  35. //
  36. // And include the header that does the work:
  37. //
  38. #include <boost/config/auto_link.hpp>
  39. // We also need to autolink to the Chrono library; even though
  40. // it's not used in the interface, and no Chrono header is included,
  41. // it's used in the implementation and is necessary in order to link
  42. #if !defined(BOOST_CHRONO_NO_LIB)
  43. #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_CHRONO_DYN_LINK)
  44. # define BOOST_DYN_LINK
  45. #endif
  46. #define BOOST_LIB_NAME boost_chrono
  47. #include <boost/config/auto_link.hpp>
  48. #endif // !defined(BOOST_CHRONO_NO_LIB)
  49. #endif // auto-linking disabled
  50. #endif // BOOST_TIMER_CONFIG_HPP