]>
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") |
3b2cb431 JS |
61 | #pragma comment(lib,"wxmsw27ud_aui") |
62 | #pragma comment(lib,"wxmsw27ud_richtext") | |
14a3591d | 63 | #if wxUSE_MEDIACTRL |
dc866dca | 64 | #pragma comment(lib,"wxmsw27ud_media") |
14a3591d | 65 | #endif |
4521d1cd VZ |
66 | #if wxUSE_ODBC |
67 | #pragma comment(lib,"wxbase27ud_odbc") | |
68 | #endif | |
e5099bdf | 69 | #else // release |
908f0871 VZ |
70 | #if wxUSE_XML |
71 | #pragma comment(lib,"wxexpat") | |
72 | #endif | |
73 | #if wxUSE_LIBJPEG | |
74 | #pragma comment(lib,"wxjpeg") | |
75 | #endif | |
76 | #if wxUSE_LIBPNG | |
77 | #pragma comment(lib,"wxpng") | |
78 | #endif | |
79 | #if wxUSE_REGEX | |
80 | #pragma comment(lib,"wxregexu") | |
81 | #endif | |
82 | #if wxUSE_LIBTIFF | |
83 | #pragma comment(lib,"wxtiff") | |
84 | #endif | |
85 | #if wxUSE_ZLIB | |
86 | #pragma comment(lib,"wxzlib") | |
87 | #endif | |
dc866dca CE |
88 | #pragma comment(lib,"wxbase27u") |
89 | #pragma comment(lib,"wxbase27u_net") | |
90 | #pragma comment(lib,"wxbase27u_xml") | |
91 | #pragma comment(lib,"wxmsw27u_adv") | |
92 | #pragma comment(lib,"wxmsw27u_core") | |
93 | #pragma comment(lib,"wxmsw27u_html") | |
0152ee89 | 94 | #if wxUSE_DEBUGREPORT |
dc866dca | 95 | #pragma comment(lib,"wxmsw27u_qa") |
24d88d6d | 96 | #endif |
dc866dca | 97 | #pragma comment(lib,"wxmsw27u_xrc") |
3b2cb431 JS |
98 | #pragma comment(lib,"wxmsw27u_aui") |
99 | #pragma comment(lib,"wxmsw27u_richtext") | |
14a3591d | 100 | #if wxUSE_MEDIACTRL |
dc866dca | 101 | #pragma comment(lib,"wxmsw27u_media") |
14a3591d | 102 | #endif |
4521d1cd VZ |
103 | #if wxUSE_ODBC |
104 | #pragma comment(lib,"wxbase27u_odbc") | |
105 | #endif | |
e5099bdf VZ |
106 | #endif // debug/release |
107 | #else // !_UNICODE | |
108 | #ifdef WXUSINGDLL | |
109 | #ifdef _DEBUG | |
9fa2da4a | 110 | #include "../../../lib/vc_dll/mswd/wx/setup.h" |
e5099bdf | 111 | #else |
9fa2da4a | 112 | #include "../../../lib/vc_dll/msw/wx/setup.h" |
e5099bdf VZ |
113 | #endif |
114 | #else // static lib | |
115 | #ifdef _DEBUG | |
9fa2da4a | 116 | #include "../../../lib/vc_lib/mswd/wx/setup.h" |
e5099bdf | 117 | #else |
9fa2da4a | 118 | #include "../../../lib/vc_lib/msw/wx/setup.h" |
e5099bdf VZ |
119 | #endif |
120 | #endif // shared/static | |
121 | ||
122 | #ifdef _DEBUG | |
908f0871 VZ |
123 | #if wxUSE_XML |
124 | #pragma comment(lib,"wxexpatd") | |
125 | #endif | |
126 | #if wxUSE_LIBJPEG | |
127 | #pragma comment(lib,"wxjpegd") | |
128 | #endif | |
129 | #if wxUSE_LIBPNG | |
130 | #pragma comment(lib,"wxpngd") | |
131 | #endif | |
132 | #if wxUSE_REGEX | |
5529f88e | 133 | #pragma comment(lib,"wxregexd") |
908f0871 VZ |
134 | #endif |
135 | #if wxUSE_LIBTIFF | |
136 | #pragma comment(lib,"wxtiffd") | |
137 | #endif | |
138 | #if wxUSE_ZLIB | |
139 | #pragma comment(lib,"wxzlibd") | |
140 | #endif | |
dc866dca CE |
141 | #pragma comment(lib,"wxbase27d") |
142 | #pragma comment(lib,"wxbase27d_net") | |
143 | #pragma comment(lib,"wxbase27d_xml") | |
144 | #pragma comment(lib,"wxmsw27d_adv") | |
145 | #pragma comment(lib,"wxmsw27d_core") | |
146 | #pragma comment(lib,"wxmsw27d_html") | |
0152ee89 | 147 | #if wxUSE_DEBUGREPORT |
dc866dca | 148 | #pragma comment(lib,"wxmsw27d_qa") |
24d88d6d | 149 | #endif |
dc866dca | 150 | #pragma comment(lib,"wxmsw27d_xrc") |
3b2cb431 JS |
151 | #pragma comment(lib,"wxmsw27d_aui") |
152 | #pragma comment(lib,"wxmsw27d_richtext") | |
14a3591d | 153 | #if wxUSE_MEDIACTRL |
dc866dca | 154 | #pragma comment(lib,"wxmsw27d_media") |
14a3591d | 155 | #endif |
4521d1cd VZ |
156 | #if wxUSE_ODBC |
157 | #pragma comment(lib,"wxbase27d_odbc") | |
158 | #endif | |
e5099bdf | 159 | #else // release |
908f0871 VZ |
160 | #if wxUSE_XML |
161 | #pragma comment(lib,"wxexpat") | |
162 | #endif | |
163 | #if wxUSE_LIBJPEG | |
164 | #pragma comment(lib,"wxjpeg") | |
165 | #endif | |
166 | #if wxUSE_LIBPNG | |
167 | #pragma comment(lib,"wxpng") | |
168 | #endif | |
169 | #if wxUSE_REGEX | |
5529f88e | 170 | #pragma comment(lib,"wxregex") |
908f0871 VZ |
171 | #endif |
172 | #if wxUSE_LIBTIFF | |
173 | #pragma comment(lib,"wxtiff") | |
174 | #endif | |
175 | #if wxUSE_ZLIB | |
176 | #pragma comment(lib,"wxzlib") | |
177 | #endif | |
dc866dca CE |
178 | #pragma comment(lib,"wxbase27") |
179 | #pragma comment(lib,"wxbase27_net") | |
180 | #pragma comment(lib,"wxbase27_xml") | |
181 | #pragma comment(lib,"wxmsw27_adv") | |
182 | #pragma comment(lib,"wxmsw27_core") | |
183 | #pragma comment(lib,"wxmsw27_html") | |
0152ee89 | 184 | #if wxUSE_DEBUGREPORT |
dc866dca | 185 | #pragma comment(lib,"wxmsw27_qa") |
24d88d6d | 186 | #endif |
dc866dca | 187 | #pragma comment(lib,"wxmsw27_xrc") |
3b2cb431 JS |
188 | #pragma comment(lib,"wxmsw27_aui") |
189 | #pragma comment(lib,"wxmsw27_richtext") | |
14a3591d | 190 | #if wxUSE_MEDIACTRL |
dc866dca | 191 | #pragma comment(lib,"wxmsw27_media") |
14a3591d | 192 | #endif |
4521d1cd VZ |
193 | #if wxUSE_ODBC |
194 | #pragma comment(lib,"wxbase27_odbc") | |
195 | #endif | |
e5099bdf VZ |
196 | #endif // debug/release |
197 | #endif // _UNICODE/!_UNICODE | |
198 | #else | |
199 | #error "This file should only be included when using Microsoft Visual C++" | |
200 | #endif | |
201 |