Boost.UI
User Interface Boost library
config.hpp
Go to the documentation of this file.
1 // Copyright (c) 2017 Kolya Kosenko
2 
3 // Distributed under the Boost Software License, Version 1.0.
4 // See http://www.boost.org/LICENSE_1_0.txt
5 
7 
8 #ifndef BOOST_UI_CONFIG_HPP
9 #define BOOST_UI_CONFIG_HPP
10 
11 #include <boost/config.hpp>
12 
13 #ifdef BOOST_HAS_PRAGMA_ONCE
14 #pragma once
15 #endif
16 
17 //------------------------------------------------------------------------------
18 
19 #ifndef DOXYGEN
20 
21 #if (__cplusplus < 201103L || \
22  defined(_MSC_VER) && _MSC_VER < 1600) /* Visual C++ 10 (2010)*/ \
23  && ( (!defined __GLIBCXX__) || (__GLIBCXX__ > 20070719) )
24 
25 #define BOOST_UI_NO_STD_HASH
26 
27 #endif
28 
29 //------------------------------------------------------------------------------
30 // normalize macros
31 
32 #if defined(BOOST_UI_DYN_LINK) && defined(BOOST_UI_STATIC_LINK)
33 # error Must not define both BOOST_UI_DYN_LINK and BOOST_UI_STATIC_LINK
34 #endif
35 
36 //------------------------------------------------------------------------------
37 // dynamic linking
38 
39 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_UI_DYN_LINK)
40 # if defined(BOOST_UI_SOURCE)
41 # define BOOST_UI_DECL BOOST_SYMBOL_EXPORT
42 # else
43 # define BOOST_UI_DECL BOOST_SYMBOL_IMPORT
44 # endif
45 #else
46 # define BOOST_UI_DECL
47 #endif
48 
49 //------------------------------------------------------------------------------
50 // auto-linking
51 
52 #if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_UI_NO_LIB) \
53  && !defined(BOOST_UI_SOURCE)
54 
55 #ifndef BOOST_LIB_NAME
56 #define BOOST_LIB_NAME boost_ui
57 #endif
58 
59 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_UI_DYN_LINK)
60 #define BOOST_DYN_LINK
61 #endif
62 
63 #include <boost/config/auto_link.hpp>
64 
65 #if defined(_MSC_VER) && !defined(BOOST_UI_WXWIDGETS_NO_LIB)
66 #include <msvc/wx/setup.h> // In %WXWIN%\include\ folder
67 #ifdef BOOST_LIB_DIAGNOSTIC
68 #pragma message("Linking to wxWidgets")
69 #endif
70 #endif
71 
72 #endif // auto-linking
73 
74 #endif // !DOXYGEN
75 
76 //------------------------------------------------------------------------------
77 // Doxygen
78 
79 #ifdef DOXYGEN
80 
83 #define BOOST_UI_USE_CHRONO
84 
87 #define BOOST_UI_USE_DATE_TIME
88 
91 #define BOOST_UI_USE_FILESYSTEM
92 
93 #endif // DOXYGEN
94 
95 #endif // BOOST_UI_CONFIG_HPP