]> git.saurik.com Git - wxWidgets.git/blob - include/msvc/wx/setup.h
d534594cd41bf9ed8967e75d11a12d1890322ff5
[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 // if we're using MSLU, ensure that the first library we use is
33 // unicows.lib
34 #if wxUSE_UNICODE_MSLU
35 // for this, first tell linker not to use the standard libraries
36 #pragma comment(linker, "/nod:kernel32.lib /nod:advapi32.lib /nod:user32.lib /nod:gdi32.lib /nod:shell32.lib /nod:comdlg32.lib /nod:version.lib /nod:mpr.lib /nod:rasapi32.lib /nod:winmm.lib /nod:winspool.lib /nod:vfw32.lib /nod:secur32.lib /nod:oleacc.lib /nod:oledlg.lib /nod:sensapi.lib")
37
38 // then tell it to link with unicows.lib
39 #pragma comment(lib, "unicows.lib")
40
41 // and only then readd all standard libraries back
42 #pragma comment(lib, "kernel32.lib")
43 #pragma comment(lib, "user32.lib")
44 #pragma comment(lib, "gdi32.lib")
45 #pragma comment(lib, "winspool.lib")
46 #pragma comment(lib, "comdlg32.lib")
47 #pragma comment(lib, "advapi32.lib")
48 #pragma comment(lib, "shell32.lib")
49 #pragma comment(lib, "oleacc.lib")
50 #endif // wxUSE_UNICODE_MSLU
51
52 #ifdef _DEBUG
53 #if wxUSE_XML
54 #pragma comment(lib,"wxexpatd")
55 #endif
56 #if wxUSE_LIBJPEG
57 #pragma comment(lib,"wxjpegd")
58 #endif
59 #if wxUSE_LIBPNG
60 #pragma comment(lib,"wxpngd")
61 #endif
62 #if wxUSE_REGEX
63 #pragma comment(lib,"wxregexud")
64 #endif
65 #if wxUSE_LIBTIFF
66 #pragma comment(lib,"wxtiffd")
67 #endif
68 #if wxUSE_ZLIB
69 #pragma comment(lib,"wxzlibd")
70 #endif
71 #pragma comment(lib,"wxbase26ud")
72 #pragma comment(lib,"wxbase26ud_net")
73 #pragma comment(lib,"wxbase26ud_xml")
74 #pragma comment(lib,"wxmsw26ud_adv")
75 #pragma comment(lib,"wxmsw26ud_core")
76 #pragma comment(lib,"wxmsw26ud_html")
77 #pragma comment(lib,"wxmsw26ud_qa")
78 #pragma comment(lib,"wxmsw26ud_xrc")
79 #if wxUSE_MEDIACTRL
80 #pragma comment(lib,"wxmsw26ud_media")
81 #endif
82 #else // release
83 #if wxUSE_XML
84 #pragma comment(lib,"wxexpat")
85 #endif
86 #if wxUSE_LIBJPEG
87 #pragma comment(lib,"wxjpeg")
88 #endif
89 #if wxUSE_LIBPNG
90 #pragma comment(lib,"wxpng")
91 #endif
92 #if wxUSE_REGEX
93 #pragma comment(lib,"wxregexu")
94 #endif
95 #if wxUSE_LIBTIFF
96 #pragma comment(lib,"wxtiff")
97 #endif
98 #if wxUSE_ZLIB
99 #pragma comment(lib,"wxzlib")
100 #endif
101 #pragma comment(lib,"wxbase26u")
102 #pragma comment(lib,"wxbase26u_net")
103 #pragma comment(lib,"wxbase26u_xml")
104 #pragma comment(lib,"wxmsw26u_adv")
105 #pragma comment(lib,"wxmsw26u_core")
106 #pragma comment(lib,"wxmsw26u_html")
107 #pragma comment(lib,"wxmsw26u_qa")
108 #pragma comment(lib,"wxmsw26u_xrc")
109 #if wxUSE_MEDIACTRL
110 #pragma comment(lib,"wxmsw26u_media")
111 #endif
112 #endif // debug/release
113 #else // !_UNICODE
114 #ifdef WXUSINGDLL
115 #ifdef _DEBUG
116 #include "../../../lib/vc_dll/mswd/wx/setup.h"
117 #else
118 #include "../../../lib/vc_dll/msw/wx/setup.h"
119 #endif
120 #else // static lib
121 #ifdef _DEBUG
122 #include "../../../lib/vc_lib/mswd/wx/setup.h"
123 #else
124 #include "../../../lib/vc_lib/msw/wx/setup.h"
125 #endif
126 #endif // shared/static
127
128 #ifdef _DEBUG
129 #if wxUSE_XML
130 #pragma comment(lib,"wxexpatd")
131 #endif
132 #if wxUSE_LIBJPEG
133 #pragma comment(lib,"wxjpegd")
134 #endif
135 #if wxUSE_LIBPNG
136 #pragma comment(lib,"wxpngd")
137 #endif
138 #if wxUSE_REGEX
139 #pragma comment(lib,"wxregexd")
140 #endif
141 #if wxUSE_LIBTIFF
142 #pragma comment(lib,"wxtiffd")
143 #endif
144 #if wxUSE_ZLIB
145 #pragma comment(lib,"wxzlibd")
146 #endif
147 #pragma comment(lib,"wxbase26d")
148 #pragma comment(lib,"wxbase26d_net")
149 #pragma comment(lib,"wxbase26d_xml")
150 #pragma comment(lib,"wxmsw26d_adv")
151 #pragma comment(lib,"wxmsw26d_core")
152 #pragma comment(lib,"wxmsw26d_html")
153 #pragma comment(lib,"wxmsw26d_qa")
154 #pragma comment(lib,"wxmsw26d_xrc")
155 #if wxUSE_MEDIACTRL
156 #pragma comment(lib,"wxmsw26d_media")
157 #endif
158 #else // release
159 #if wxUSE_XML
160 #pragma comment(lib,"wxexpat")
161 #endif
162 #if wxUSE_LIBJPEG
163 #pragma comment(lib,"wxjpeg")
164 #endif
165 #if wxUSE_LIBPNG
166 #pragma comment(lib,"wxpng")
167 #endif
168 #if wxUSE_REGEX
169 #pragma comment(lib,"wxregex")
170 #endif
171 #if wxUSE_LIBTIFF
172 #pragma comment(lib,"wxtiff")
173 #endif
174 #if wxUSE_ZLIB
175 #pragma comment(lib,"wxzlib")
176 #endif
177 #pragma comment(lib,"wxbase26")
178 #pragma comment(lib,"wxbase26_net")
179 #pragma comment(lib,"wxbase26_xml")
180 #pragma comment(lib,"wxmsw26_adv")
181 #pragma comment(lib,"wxmsw26_core")
182 #pragma comment(lib,"wxmsw26_html")
183 #pragma comment(lib,"wxmsw26_qa")
184 #pragma comment(lib,"wxmsw26_xrc")
185 #if wxUSE_MEDIACTRL
186 #pragma comment(lib,"wxmsw26_media")
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