]> git.saurik.com Git - wxWidgets.git/blob - include/msvc/wx/setup.h
91774b841aca02f8d83da4ee92b2855d63fc372d
[wxWidgets.git] / include / msvc / wx / setup.h
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,"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")
57 #if wxUSE_DEBUGREPORT
58 #pragma comment(lib,"wxmsw27ud_qa")
59 #endif
60 #pragma comment(lib,"wxmsw27ud_xrc")
61 #if wxUSE_MEDIACTRL
62 #pragma comment(lib,"wxmsw27ud_media")
63 #endif
64 #if wxUSE_ODBC
65 #pragma comment(lib,"wxbase27ud_odbc")
66 #endif
67 #else // release
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
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")
92 #if wxUSE_DEBUGREPORT
93 #pragma comment(lib,"wxmsw27u_qa")
94 #endif
95 #pragma comment(lib,"wxmsw27u_xrc")
96 #if wxUSE_MEDIACTRL
97 #pragma comment(lib,"wxmsw27u_media")
98 #endif
99 #if wxUSE_ODBC
100 #pragma comment(lib,"wxbase27u_odbc")
101 #endif
102 #endif // debug/release
103 #else // !_UNICODE
104 #ifdef WXUSINGDLL
105 #ifdef _DEBUG
106 #include "../../../lib/vc_dll/mswd/wx/setup.h"
107 #else
108 #include "../../../lib/vc_dll/msw/wx/setup.h"
109 #endif
110 #else // static lib
111 #ifdef _DEBUG
112 #include "../../../lib/vc_lib/mswd/wx/setup.h"
113 #else
114 #include "../../../lib/vc_lib/msw/wx/setup.h"
115 #endif
116 #endif // shared/static
117
118 #ifdef _DEBUG
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
129 #pragma comment(lib,"wxregexd")
130 #endif
131 #if wxUSE_LIBTIFF
132 #pragma comment(lib,"wxtiffd")
133 #endif
134 #if wxUSE_ZLIB
135 #pragma comment(lib,"wxzlibd")
136 #endif
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")
143 #if wxUSE_DEBUGREPORT
144 #pragma comment(lib,"wxmsw27d_qa")
145 #endif
146 #pragma comment(lib,"wxmsw27d_xrc")
147 #if wxUSE_MEDIACTRL
148 #pragma comment(lib,"wxmsw27d_media")
149 #endif
150 #if wxUSE_ODBC
151 #pragma comment(lib,"wxbase27d_odbc")
152 #endif
153 #else // release
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
164 #pragma comment(lib,"wxregex")
165 #endif
166 #if wxUSE_LIBTIFF
167 #pragma comment(lib,"wxtiff")
168 #endif
169 #if wxUSE_ZLIB
170 #pragma comment(lib,"wxzlib")
171 #endif
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")
178 #if wxUSE_DEBUGREPORT
179 #pragma comment(lib,"wxmsw27_qa")
180 #endif
181 #pragma comment(lib,"wxmsw27_xrc")
182 #if wxUSE_MEDIACTRL
183 #pragma comment(lib,"wxmsw27_media")
184 #endif
185 #if wxUSE_ODBC
186 #pragma comment(lib,"wxbase27_odbc")
187 #endif
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