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