]>
Commit | Line | Data |
---|---|---|
e5099bdf VZ |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: msvc/wx/msw/setup.h | |
3 | // Purpose: wrapper around the real wx/setup.h for Visual C++ | |
4 | // Author: Vadim Zeitlin | |
5 | // Modified by: | |
6 | // Created: 2004-12-12 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) 2004 Vadim Zeitlin <vadim@wxwindows.org> | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | // VC++ IDE predefines _DEBUG and _UNICODE for the new projects itself, but | |
13 | // the other symbols (WXUSINGDLL, __WXUNIVERSAL__, ...) should be defined | |
3103e8a9 | 14 | // explicitly! |
e5099bdf VZ |
15 | |
16 | #ifdef _MSC_VER | |
17 | #ifdef _UNICODE | |
18 | #ifdef WXUSINGDLL | |
19 | #ifdef _DEBUG | |
9fa2da4a | 20 | #include "../../../lib/vc_dll/mswud/wx/setup.h" |
e5099bdf | 21 | #else |
9fa2da4a | 22 | #include "../../../lib/vc_dll/mswu/wx/setup.h" |
e5099bdf VZ |
23 | #endif |
24 | #else | |
25 | #ifdef _DEBUG | |
9fa2da4a | 26 | #include "../../../lib/vc_lib/mswud/wx/setup.h" |
e5099bdf | 27 | #else |
9fa2da4a | 28 | #include "../../../lib/vc_lib/mswu/wx/setup.h" |
e5099bdf VZ |
29 | #endif |
30 | #endif | |
31 | ||
32 | #ifdef _DEBUG | |
908f0871 VZ |
33 | #if wxUSE_XML |
34 | #pragma comment(lib,"wxexpatd") | |
35 | #endif | |
36 | #if wxUSE_LIBJPEG | |
37 | #pragma comment(lib,"wxjpegd") | |
38 | #endif | |
39 | #if wxUSE_LIBPNG | |
40 | #pragma comment(lib,"wxpngd") | |
41 | #endif | |
42 | #if wxUSE_REGEX | |
43 | #pragma comment(lib,"wxregexud") | |
44 | #endif | |
45 | #if wxUSE_LIBTIFF | |
46 | #pragma comment(lib,"wxtiffd") | |
47 | #endif | |
48 | #if wxUSE_ZLIB | |
49 | #pragma comment(lib,"wxzlibd") | |
50 | #endif | |
dc866dca CE |
51 | #pragma comment(lib,"wxbase27ud") |
52 | #pragma comment(lib,"wxbase27ud_net") | |
53 | #pragma comment(lib,"wxbase27ud_xml") | |
54 | #pragma comment(lib,"wxmsw27ud_adv") | |
55 | #pragma comment(lib,"wxmsw27ud_core") | |
56 | #pragma comment(lib,"wxmsw27ud_html") | |
0152ee89 | 57 | #if wxUSE_DEBUGREPORT |
dc866dca | 58 | #pragma comment(lib,"wxmsw27ud_qa") |
24d88d6d | 59 | #endif |
dc866dca | 60 | #pragma comment(lib,"wxmsw27ud_xrc") |
14a3591d | 61 | #if wxUSE_MEDIACTRL |
dc866dca | 62 | #pragma comment(lib,"wxmsw27ud_media") |
14a3591d | 63 | #endif |
4521d1cd VZ |
64 | #if wxUSE_ODBC |
65 | #pragma comment(lib,"wxbase27ud_odbc") | |
66 | #endif | |
e5099bdf | 67 | #else // release |
908f0871 VZ |
68 | #if wxUSE_XML |
69 | #pragma comment(lib,"wxexpat") | |
70 | #endif | |
71 | #if wxUSE_LIBJPEG | |
72 | #pragma comment(lib,"wxjpeg") | |
73 | #endif | |
74 | #if wxUSE_LIBPNG | |
75 | #pragma comment(lib,"wxpng") | |
76 | #endif | |
77 | #if wxUSE_REGEX | |
78 | #pragma comment(lib,"wxregexu") | |
79 | #endif | |
80 | #if wxUSE_LIBTIFF | |
81 | #pragma comment(lib,"wxtiff") | |
82 | #endif | |
83 | #if wxUSE_ZLIB | |
84 | #pragma comment(lib,"wxzlib") | |
85 | #endif | |
dc866dca CE |
86 | #pragma comment(lib,"wxbase27u") |
87 | #pragma comment(lib,"wxbase27u_net") | |
88 | #pragma comment(lib,"wxbase27u_xml") | |
89 | #pragma comment(lib,"wxmsw27u_adv") | |
90 | #pragma comment(lib,"wxmsw27u_core") | |
91 | #pragma comment(lib,"wxmsw27u_html") | |
0152ee89 | 92 | #if wxUSE_DEBUGREPORT |
dc866dca | 93 | #pragma comment(lib,"wxmsw27u_qa") |
24d88d6d | 94 | #endif |
dc866dca | 95 | #pragma comment(lib,"wxmsw27u_xrc") |
14a3591d | 96 | #if wxUSE_MEDIACTRL |
dc866dca | 97 | #pragma comment(lib,"wxmsw27u_media") |
14a3591d | 98 | #endif |
4521d1cd VZ |
99 | #if wxUSE_ODBC |
100 | #pragma comment(lib,"wxbase27u_odbc") | |
101 | #endif | |
e5099bdf VZ |
102 | #endif // debug/release |
103 | #else // !_UNICODE | |
104 | #ifdef WXUSINGDLL | |
105 | #ifdef _DEBUG | |
9fa2da4a | 106 | #include "../../../lib/vc_dll/mswd/wx/setup.h" |
e5099bdf | 107 | #else |
9fa2da4a | 108 | #include "../../../lib/vc_dll/msw/wx/setup.h" |
e5099bdf VZ |
109 | #endif |
110 | #else // static lib | |
111 | #ifdef _DEBUG | |
9fa2da4a | 112 | #include "../../../lib/vc_lib/mswd/wx/setup.h" |
e5099bdf | 113 | #else |
9fa2da4a | 114 | #include "../../../lib/vc_lib/msw/wx/setup.h" |
e5099bdf VZ |
115 | #endif |
116 | #endif // shared/static | |
117 | ||
118 | #ifdef _DEBUG | |
908f0871 VZ |
119 | #if wxUSE_XML |
120 | #pragma comment(lib,"wxexpatd") | |
121 | #endif | |
122 | #if wxUSE_LIBJPEG | |
123 | #pragma comment(lib,"wxjpegd") | |
124 | #endif | |
125 | #if wxUSE_LIBPNG | |
126 | #pragma comment(lib,"wxpngd") | |
127 | #endif | |
128 | #if wxUSE_REGEX | |
5529f88e | 129 | #pragma comment(lib,"wxregexd") |
908f0871 VZ |
130 | #endif |
131 | #if wxUSE_LIBTIFF | |
132 | #pragma comment(lib,"wxtiffd") | |
133 | #endif | |
134 | #if wxUSE_ZLIB | |
135 | #pragma comment(lib,"wxzlibd") | |
136 | #endif | |
dc866dca CE |
137 | #pragma comment(lib,"wxbase27d") |
138 | #pragma comment(lib,"wxbase27d_net") | |
139 | #pragma comment(lib,"wxbase27d_xml") | |
140 | #pragma comment(lib,"wxmsw27d_adv") | |
141 | #pragma comment(lib,"wxmsw27d_core") | |
142 | #pragma comment(lib,"wxmsw27d_html") | |
0152ee89 | 143 | #if wxUSE_DEBUGREPORT |
dc866dca | 144 | #pragma comment(lib,"wxmsw27d_qa") |
24d88d6d | 145 | #endif |
dc866dca | 146 | #pragma comment(lib,"wxmsw27d_xrc") |
14a3591d | 147 | #if wxUSE_MEDIACTRL |
dc866dca | 148 | #pragma comment(lib,"wxmsw27d_media") |
14a3591d | 149 | #endif |
4521d1cd VZ |
150 | #if wxUSE_ODBC |
151 | #pragma comment(lib,"wxbase27d_odbc") | |
152 | #endif | |
e5099bdf | 153 | #else // release |
908f0871 VZ |
154 | #if wxUSE_XML |
155 | #pragma comment(lib,"wxexpat") | |
156 | #endif | |
157 | #if wxUSE_LIBJPEG | |
158 | #pragma comment(lib,"wxjpeg") | |
159 | #endif | |
160 | #if wxUSE_LIBPNG | |
161 | #pragma comment(lib,"wxpng") | |
162 | #endif | |
163 | #if wxUSE_REGEX | |
5529f88e | 164 | #pragma comment(lib,"wxregex") |
908f0871 VZ |
165 | #endif |
166 | #if wxUSE_LIBTIFF | |
167 | #pragma comment(lib,"wxtiff") | |
168 | #endif | |
169 | #if wxUSE_ZLIB | |
170 | #pragma comment(lib,"wxzlib") | |
171 | #endif | |
dc866dca CE |
172 | #pragma comment(lib,"wxbase27") |
173 | #pragma comment(lib,"wxbase27_net") | |
174 | #pragma comment(lib,"wxbase27_xml") | |
175 | #pragma comment(lib,"wxmsw27_adv") | |
176 | #pragma comment(lib,"wxmsw27_core") | |
177 | #pragma comment(lib,"wxmsw27_html") | |
0152ee89 | 178 | #if wxUSE_DEBUGREPORT |
dc866dca | 179 | #pragma comment(lib,"wxmsw27_qa") |
24d88d6d | 180 | #endif |
dc866dca | 181 | #pragma comment(lib,"wxmsw27_xrc") |
14a3591d | 182 | #if wxUSE_MEDIACTRL |
dc866dca | 183 | #pragma comment(lib,"wxmsw27_media") |
14a3591d | 184 | #endif |
4521d1cd VZ |
185 | #if wxUSE_ODBC |
186 | #pragma comment(lib,"wxbase27_odbc") | |
187 | #endif | |
e5099bdf VZ |
188 | #endif // debug/release |
189 | #endif // _UNICODE/!_UNICODE | |
190 | #else | |
191 | #error "This file should only be included when using Microsoft Visual C++" | |
192 | #endif | |
193 |