]>
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 | |
59293285 VZ |
51 | #pragma comment(lib,"wxbase28ud") |
52 | #pragma comment(lib,"wxbase28ud_net") | |
53 | #pragma comment(lib,"wxbase28ud_xml") | |
54 | #pragma comment(lib,"wxmsw28ud_adv") | |
55 | #pragma comment(lib,"wxmsw28ud_core") | |
56 | #pragma comment(lib,"wxmsw28ud_html") | |
c6dfeb41 | 57 | #if wxUSE_GLCANVAS |
59293285 | 58 | #pragma comment(lib,"wxmsw28ud_gl") |
c6dfeb41 | 59 | #endif |
0152ee89 | 60 | #if wxUSE_DEBUGREPORT |
59293285 | 61 | #pragma comment(lib,"wxmsw28ud_qa") |
4291c3c8 VZ |
62 | #endif |
63 | #if wxUSE_XRC | |
59293285 | 64 | #pragma comment(lib,"wxmsw28ud_xrc") |
4291c3c8 VZ |
65 | #endif |
66 | #if wxUSE_AUI | |
59293285 | 67 | #pragma comment(lib,"wxmsw28ud_aui") |
4291c3c8 VZ |
68 | #endif |
69 | #if wxUSE_RICHTEXT | |
59293285 | 70 | #pragma comment(lib,"wxmsw28ud_richtext") |
24d88d6d | 71 | #endif |
14a3591d | 72 | #if wxUSE_MEDIACTRL |
59293285 | 73 | #pragma comment(lib,"wxmsw28ud_media") |
14a3591d | 74 | #endif |
4521d1cd | 75 | #if wxUSE_ODBC |
59293285 | 76 | #pragma comment(lib,"wxbase28ud_odbc") |
4521d1cd | 77 | #endif |
e5099bdf | 78 | #else // release |
908f0871 VZ |
79 | #if wxUSE_XML |
80 | #pragma comment(lib,"wxexpat") | |
81 | #endif | |
82 | #if wxUSE_LIBJPEG | |
83 | #pragma comment(lib,"wxjpeg") | |
84 | #endif | |
85 | #if wxUSE_LIBPNG | |
86 | #pragma comment(lib,"wxpng") | |
87 | #endif | |
88 | #if wxUSE_REGEX | |
89 | #pragma comment(lib,"wxregexu") | |
90 | #endif | |
91 | #if wxUSE_LIBTIFF | |
92 | #pragma comment(lib,"wxtiff") | |
93 | #endif | |
94 | #if wxUSE_ZLIB | |
95 | #pragma comment(lib,"wxzlib") | |
96 | #endif | |
59293285 VZ |
97 | #pragma comment(lib,"wxbase28u") |
98 | #pragma comment(lib,"wxbase28u_net") | |
99 | #pragma comment(lib,"wxbase28u_xml") | |
100 | #pragma comment(lib,"wxmsw28u_adv") | |
101 | #pragma comment(lib,"wxmsw28u_core") | |
102 | #pragma comment(lib,"wxmsw28u_html") | |
c6dfeb41 | 103 | #if wxUSE_GLCANVAS |
59293285 | 104 | #pragma comment(lib,"wxmsw28u_gl") |
c6dfeb41 | 105 | #endif |
0152ee89 | 106 | #if wxUSE_DEBUGREPORT |
59293285 | 107 | #pragma comment(lib,"wxmsw28u_qa") |
4291c3c8 VZ |
108 | #endif |
109 | #if wxUSE_XRC | |
59293285 | 110 | #pragma comment(lib,"wxmsw28u_xrc") |
4291c3c8 VZ |
111 | #endif |
112 | #if wxUSE_AUI | |
59293285 | 113 | #pragma comment(lib,"wxmsw28u_aui") |
4291c3c8 VZ |
114 | #endif |
115 | #if wxUSE_RICHTEXT | |
59293285 | 116 | #pragma comment(lib,"wxmsw28u_richtext") |
24d88d6d | 117 | #endif |
14a3591d | 118 | #if wxUSE_MEDIACTRL |
59293285 | 119 | #pragma comment(lib,"wxmsw28u_media") |
14a3591d | 120 | #endif |
4521d1cd | 121 | #if wxUSE_ODBC |
59293285 | 122 | #pragma comment(lib,"wxbase28u_odbc") |
4521d1cd | 123 | #endif |
e5099bdf VZ |
124 | #endif // debug/release |
125 | #else // !_UNICODE | |
126 | #ifdef WXUSINGDLL | |
127 | #ifdef _DEBUG | |
9fa2da4a | 128 | #include "../../../lib/vc_dll/mswd/wx/setup.h" |
e5099bdf | 129 | #else |
9fa2da4a | 130 | #include "../../../lib/vc_dll/msw/wx/setup.h" |
e5099bdf VZ |
131 | #endif |
132 | #else // static lib | |
133 | #ifdef _DEBUG | |
9fa2da4a | 134 | #include "../../../lib/vc_lib/mswd/wx/setup.h" |
e5099bdf | 135 | #else |
9fa2da4a | 136 | #include "../../../lib/vc_lib/msw/wx/setup.h" |
e5099bdf VZ |
137 | #endif |
138 | #endif // shared/static | |
139 | ||
140 | #ifdef _DEBUG | |
908f0871 VZ |
141 | #if wxUSE_XML |
142 | #pragma comment(lib,"wxexpatd") | |
143 | #endif | |
144 | #if wxUSE_LIBJPEG | |
145 | #pragma comment(lib,"wxjpegd") | |
146 | #endif | |
147 | #if wxUSE_LIBPNG | |
148 | #pragma comment(lib,"wxpngd") | |
149 | #endif | |
150 | #if wxUSE_REGEX | |
5529f88e | 151 | #pragma comment(lib,"wxregexd") |
908f0871 VZ |
152 | #endif |
153 | #if wxUSE_LIBTIFF | |
154 | #pragma comment(lib,"wxtiffd") | |
155 | #endif | |
156 | #if wxUSE_ZLIB | |
157 | #pragma comment(lib,"wxzlibd") | |
158 | #endif | |
59293285 VZ |
159 | #pragma comment(lib,"wxbase28d") |
160 | #pragma comment(lib,"wxbase28d_net") | |
161 | #pragma comment(lib,"wxbase28d_xml") | |
162 | #pragma comment(lib,"wxmsw28d_adv") | |
163 | #pragma comment(lib,"wxmsw28d_core") | |
164 | #pragma comment(lib,"wxmsw28d_html") | |
c6dfeb41 | 165 | #if wxUSE_GLCANVAS |
59293285 | 166 | #pragma comment(lib,"wxmsw28d_gl") |
c6dfeb41 | 167 | #endif |
0152ee89 | 168 | #if wxUSE_DEBUGREPORT |
59293285 | 169 | #pragma comment(lib,"wxmsw28d_qa") |
4291c3c8 VZ |
170 | #endif |
171 | #if wxUSE_XRC | |
59293285 | 172 | #pragma comment(lib,"wxmsw28d_xrc") |
4291c3c8 VZ |
173 | #endif |
174 | #if wxUSE_AUI | |
59293285 | 175 | #pragma comment(lib,"wxmsw28d_aui") |
4291c3c8 VZ |
176 | #endif |
177 | #if wxUSE_RICHTEXT | |
59293285 | 178 | #pragma comment(lib,"wxmsw28d_richtext") |
24d88d6d | 179 | #endif |
14a3591d | 180 | #if wxUSE_MEDIACTRL |
59293285 | 181 | #pragma comment(lib,"wxmsw28d_media") |
14a3591d | 182 | #endif |
4521d1cd | 183 | #if wxUSE_ODBC |
59293285 | 184 | #pragma comment(lib,"wxbase28d_odbc") |
4521d1cd | 185 | #endif |
e5099bdf | 186 | #else // release |
908f0871 VZ |
187 | #if wxUSE_XML |
188 | #pragma comment(lib,"wxexpat") | |
189 | #endif | |
190 | #if wxUSE_LIBJPEG | |
191 | #pragma comment(lib,"wxjpeg") | |
192 | #endif | |
193 | #if wxUSE_LIBPNG | |
194 | #pragma comment(lib,"wxpng") | |
195 | #endif | |
196 | #if wxUSE_REGEX | |
5529f88e | 197 | #pragma comment(lib,"wxregex") |
908f0871 VZ |
198 | #endif |
199 | #if wxUSE_LIBTIFF | |
200 | #pragma comment(lib,"wxtiff") | |
201 | #endif | |
202 | #if wxUSE_ZLIB | |
203 | #pragma comment(lib,"wxzlib") | |
204 | #endif | |
59293285 VZ |
205 | #pragma comment(lib,"wxbase28") |
206 | #pragma comment(lib,"wxbase28_net") | |
207 | #pragma comment(lib,"wxbase28_xml") | |
208 | #pragma comment(lib,"wxmsw28_adv") | |
209 | #pragma comment(lib,"wxmsw28_core") | |
210 | #pragma comment(lib,"wxmsw28_html") | |
c6dfeb41 | 211 | #if wxUSE_GLCANVAS |
59293285 | 212 | #pragma comment(lib,"wxmsw28_gl") |
c6dfeb41 | 213 | #endif |
0152ee89 | 214 | #if wxUSE_DEBUGREPORT |
59293285 | 215 | #pragma comment(lib,"wxmsw28_qa") |
4291c3c8 VZ |
216 | #endif |
217 | #if wxUSE_XRC | |
59293285 | 218 | #pragma comment(lib,"wxmsw28_xrc") |
4291c3c8 VZ |
219 | #endif |
220 | #if wxUSE_AUI | |
59293285 | 221 | #pragma comment(lib,"wxmsw28_aui") |
4291c3c8 VZ |
222 | #endif |
223 | #if wxUSE_RICHTEXT | |
59293285 | 224 | #pragma comment(lib,"wxmsw28_richtext") |
24d88d6d | 225 | #endif |
14a3591d | 226 | #if wxUSE_MEDIACTRL |
59293285 | 227 | #pragma comment(lib,"wxmsw28_media") |
14a3591d | 228 | #endif |
4521d1cd | 229 | #if wxUSE_ODBC |
59293285 | 230 | #pragma comment(lib,"wxbase28_odbc") |
4521d1cd | 231 | #endif |
e5099bdf VZ |
232 | #endif // debug/release |
233 | #endif // _UNICODE/!_UNICODE | |
234 | #else | |
235 | #error "This file should only be included when using Microsoft Visual C++" | |
236 | #endif | |
237 |