]>
Commit | Line | Data |
---|---|---|
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 | |
14 | // explicitly! | |
15 | ||
16 | #ifdef _MSC_VER | |
17 | #ifdef _UNICODE | |
18 | #ifdef WXUSINGDLL | |
19 | #ifdef _DEBUG | |
20 | #include "../../../lib/vc_dll/mswud/wx/setup.h" | |
21 | #else | |
22 | #include "../../../lib/vc_dll/mswu/wx/setup.h" | |
23 | #endif | |
24 | #else | |
25 | #ifdef _DEBUG | |
26 | #include "../../../lib/vc_lib/mswud/wx/setup.h" | |
27 | #else | |
28 | #include "../../../lib/vc_lib/mswu/wx/setup.h" | |
29 | #endif | |
30 | #endif | |
31 | ||
32 | #ifdef _DEBUG | |
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 | |
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") | |
57 | #if wxUSE_GLCANVAS | |
58 | #pragma comment(lib,"wxmsw28ud_gl") | |
59 | #endif | |
60 | #if wxUSE_DEBUGREPORT | |
61 | #pragma comment(lib,"wxmsw28ud_qa") | |
62 | #endif | |
63 | #if wxUSE_XRC | |
64 | #pragma comment(lib,"wxmsw28ud_xrc") | |
65 | #endif | |
66 | #if wxUSE_AUI | |
67 | #pragma comment(lib,"wxmsw28ud_aui") | |
68 | #endif | |
69 | #if wxUSE_RICHTEXT | |
70 | #pragma comment(lib,"wxmsw28ud_richtext") | |
71 | #endif | |
72 | #if wxUSE_MEDIACTRL | |
73 | #pragma comment(lib,"wxmsw28ud_media") | |
74 | #endif | |
75 | #if wxUSE_ODBC | |
76 | #pragma comment(lib,"wxbase28ud_odbc") | |
77 | #endif | |
78 | #else // release | |
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 | |
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") | |
103 | #if wxUSE_GLCANVAS | |
104 | #pragma comment(lib,"wxmsw28u_gl") | |
105 | #endif | |
106 | #if wxUSE_DEBUGREPORT | |
107 | #pragma comment(lib,"wxmsw28u_qa") | |
108 | #endif | |
109 | #if wxUSE_XRC | |
110 | #pragma comment(lib,"wxmsw28u_xrc") | |
111 | #endif | |
112 | #if wxUSE_AUI | |
113 | #pragma comment(lib,"wxmsw28u_aui") | |
114 | #endif | |
115 | #if wxUSE_RICHTEXT | |
116 | #pragma comment(lib,"wxmsw28u_richtext") | |
117 | #endif | |
118 | #if wxUSE_MEDIACTRL | |
119 | #pragma comment(lib,"wxmsw28u_media") | |
120 | #endif | |
121 | #if wxUSE_ODBC | |
122 | #pragma comment(lib,"wxbase28u_odbc") | |
123 | #endif | |
124 | #endif // debug/release | |
125 | #else // !_UNICODE | |
126 | #ifdef WXUSINGDLL | |
127 | #ifdef _DEBUG | |
128 | #include "../../../lib/vc_dll/mswd/wx/setup.h" | |
129 | #else | |
130 | #include "../../../lib/vc_dll/msw/wx/setup.h" | |
131 | #endif | |
132 | #else // static lib | |
133 | #ifdef _DEBUG | |
134 | #include "../../../lib/vc_lib/mswd/wx/setup.h" | |
135 | #else | |
136 | #include "../../../lib/vc_lib/msw/wx/setup.h" | |
137 | #endif | |
138 | #endif // shared/static | |
139 | ||
140 | #ifdef _DEBUG | |
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 | |
151 | #pragma comment(lib,"wxregexd") | |
152 | #endif | |
153 | #if wxUSE_LIBTIFF | |
154 | #pragma comment(lib,"wxtiffd") | |
155 | #endif | |
156 | #if wxUSE_ZLIB | |
157 | #pragma comment(lib,"wxzlibd") | |
158 | #endif | |
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") | |
165 | #if wxUSE_GLCANVAS | |
166 | #pragma comment(lib,"wxmsw28d_gl") | |
167 | #endif | |
168 | #if wxUSE_DEBUGREPORT | |
169 | #pragma comment(lib,"wxmsw28d_qa") | |
170 | #endif | |
171 | #if wxUSE_XRC | |
172 | #pragma comment(lib,"wxmsw28d_xrc") | |
173 | #endif | |
174 | #if wxUSE_AUI | |
175 | #pragma comment(lib,"wxmsw28d_aui") | |
176 | #endif | |
177 | #if wxUSE_RICHTEXT | |
178 | #pragma comment(lib,"wxmsw28d_richtext") | |
179 | #endif | |
180 | #if wxUSE_MEDIACTRL | |
181 | #pragma comment(lib,"wxmsw28d_media") | |
182 | #endif | |
183 | #if wxUSE_ODBC | |
184 | #pragma comment(lib,"wxbase28d_odbc") | |
185 | #endif | |
186 | #else // release | |
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 | |
197 | #pragma comment(lib,"wxregex") | |
198 | #endif | |
199 | #if wxUSE_LIBTIFF | |
200 | #pragma comment(lib,"wxtiff") | |
201 | #endif | |
202 | #if wxUSE_ZLIB | |
203 | #pragma comment(lib,"wxzlib") | |
204 | #endif | |
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") | |
211 | #if wxUSE_GLCANVAS | |
212 | #pragma comment(lib,"wxmsw28_gl") | |
213 | #endif | |
214 | #if wxUSE_DEBUGREPORT | |
215 | #pragma comment(lib,"wxmsw28_qa") | |
216 | #endif | |
217 | #if wxUSE_XRC | |
218 | #pragma comment(lib,"wxmsw28_xrc") | |
219 | #endif | |
220 | #if wxUSE_AUI | |
221 | #pragma comment(lib,"wxmsw28_aui") | |
222 | #endif | |
223 | #if wxUSE_RICHTEXT | |
224 | #pragma comment(lib,"wxmsw28_richtext") | |
225 | #endif | |
226 | #if wxUSE_MEDIACTRL | |
227 | #pragma comment(lib,"wxmsw28_media") | |
228 | #endif | |
229 | #if wxUSE_ODBC | |
230 | #pragma comment(lib,"wxbase28_odbc") | |
231 | #endif | |
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 |