DxLibEx
LINK.h
Go to the documentation of this file.
1 /*=============================================================================
2  Copyright (C) 2015-2017 DxLibEx project
3  https://github.com/Nagarei/DxLibEx/
4 
5  Distributed under the Boost Software License, Version 1.0.
6  (See http://www.boost.org/LICENSE_1_0.txt)
7 =============================================================================*/
8 #ifndef DXLE_INC_CONFIG_LINK_H_
9 #define DXLE_INC_CONFIG_LINK_H_
10 
11 //TOOLSET
12 #ifdef _MSC_VER
13 # if (_MSC_VER < 1800)
14 // Note: no compilers before 1800 are supported
15 #error no compilers before 1800 are supported
16 # elif (_MSC_VER < 1900)
17 // vc12:
18 # define DXLE_LIB_TOOLSET "_v120"
19 # elif (_MSC_VER < 2000)
20 // vc14:
21 # define DXLE_LIB_TOOLSET "_v140"
22 # elif
23  static_assert(false, "this version of visual studio is not supported yet")
24 # endif
25 #elif
26 //other
27 # define DXLE_LIB_TOOLSET ""
28 #endif
29 
30 #ifdef _WIN64
31 # define DXLE_PLATFORM_TARGET "_x64"
32 #else
33 # define DXLE_PLATFORM_TARGET "_x86"
34 #endif
35 
36 #if defined(_DEBUG) || !defined(NDEBUG)
37 # define DXLE_CONFIGURATION "_d"
38 #else
39 # define DXLE_CONFIGURATION "_r"
40 #endif
41 #ifdef UNICODE
42 # define DXLE_CHARACTERSET "_Unicode"
43 #else
44 # define DXLE_CHARACTERSET "_MultiByte"
45 #endif
46 
47 #pragma comment(lib,"ProjectDxLibEx" DXLE_LIB_TOOLSET DXLE_CHARACTERSET DXLE_PLATFORM_TARGET DXLE_CONFIGURATION ".lib")
48 #endif