]> git.saurik.com Git - wxWidgets.git/blame - include/msvc/wx/setup.h
added wxFORCE_LINK_MODULE public macro which can now be used outside of wxHTML too...
[wxWidgets.git] / include / msvc / wx / setup.h
CommitLineData
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
3b422a88
VZ
51 #pragma comment(lib,"wxbase26ud")
52 #pragma comment(lib,"wxbase26ud_net")
53 #pragma comment(lib,"wxbase26ud_xml")
54 #pragma comment(lib,"wxmsw26ud_adv")
55 #pragma comment(lib,"wxmsw26ud_core")
56 #pragma comment(lib,"wxmsw26ud_html")
57 #pragma comment(lib,"wxmsw26ud_qa")
58 #pragma comment(lib,"wxmsw26ud_xrc")
14a3591d
VZ
59 #if wxUSE_MEDIACTRL
60 #pragma comment(lib,"wxmsw26ud_media")
61 #endif
e5099bdf 62 #else // release
908f0871
VZ
63 #if wxUSE_XML
64 #pragma comment(lib,"wxexpat")
65 #endif
66 #if wxUSE_LIBJPEG
67 #pragma comment(lib,"wxjpeg")
68 #endif
69 #if wxUSE_LIBPNG
70 #pragma comment(lib,"wxpng")
71 #endif
72 #if wxUSE_REGEX
73 #pragma comment(lib,"wxregexu")
74 #endif
75 #if wxUSE_LIBTIFF
76 #pragma comment(lib,"wxtiff")
77 #endif
78 #if wxUSE_ZLIB
79 #pragma comment(lib,"wxzlib")
80 #endif
3b422a88
VZ
81 #pragma comment(lib,"wxbase26u")
82 #pragma comment(lib,"wxbase26u_net")
83 #pragma comment(lib,"wxbase26u_xml")
84 #pragma comment(lib,"wxmsw26u_adv")
85 #pragma comment(lib,"wxmsw26u_core")
86 #pragma comment(lib,"wxmsw26u_html")
87 #pragma comment(lib,"wxmsw26u_qa")
88 #pragma comment(lib,"wxmsw26u_xrc")
14a3591d
VZ
89 #if wxUSE_MEDIACTRL
90 #pragma comment(lib,"wxmsw26u_media")
91 #endif
e5099bdf
VZ
92 #endif // debug/release
93 #else // !_UNICODE
94 #ifdef WXUSINGDLL
95 #ifdef _DEBUG
9fa2da4a 96 #include "../../../lib/vc_dll/mswd/wx/setup.h"
e5099bdf 97 #else
9fa2da4a 98 #include "../../../lib/vc_dll/msw/wx/setup.h"
e5099bdf
VZ
99 #endif
100 #else // static lib
101 #ifdef _DEBUG
9fa2da4a 102 #include "../../../lib/vc_lib/mswd/wx/setup.h"
e5099bdf 103 #else
9fa2da4a 104 #include "../../../lib/vc_lib/msw/wx/setup.h"
e5099bdf
VZ
105 #endif
106 #endif // shared/static
107
108 #ifdef _DEBUG
908f0871
VZ
109 #if wxUSE_XML
110 #pragma comment(lib,"wxexpatd")
111 #endif
112 #if wxUSE_LIBJPEG
113 #pragma comment(lib,"wxjpegd")
114 #endif
115 #if wxUSE_LIBPNG
116 #pragma comment(lib,"wxpngd")
117 #endif
118 #if wxUSE_REGEX
5529f88e 119 #pragma comment(lib,"wxregexd")
908f0871
VZ
120 #endif
121 #if wxUSE_LIBTIFF
122 #pragma comment(lib,"wxtiffd")
123 #endif
124 #if wxUSE_ZLIB
125 #pragma comment(lib,"wxzlibd")
126 #endif
3b422a88
VZ
127 #pragma comment(lib,"wxbase26d")
128 #pragma comment(lib,"wxbase26d_net")
129 #pragma comment(lib,"wxbase26d_xml")
130 #pragma comment(lib,"wxmsw26d_adv")
131 #pragma comment(lib,"wxmsw26d_core")
132 #pragma comment(lib,"wxmsw26d_html")
133 #pragma comment(lib,"wxmsw26d_qa")
134 #pragma comment(lib,"wxmsw26d_xrc")
14a3591d
VZ
135 #if wxUSE_MEDIACTRL
136 #pragma comment(lib,"wxmsw26d_media")
137 #endif
e5099bdf 138 #else // release
908f0871
VZ
139 #if wxUSE_XML
140 #pragma comment(lib,"wxexpat")
141 #endif
142 #if wxUSE_LIBJPEG
143 #pragma comment(lib,"wxjpeg")
144 #endif
145 #if wxUSE_LIBPNG
146 #pragma comment(lib,"wxpng")
147 #endif
148 #if wxUSE_REGEX
5529f88e 149 #pragma comment(lib,"wxregex")
908f0871
VZ
150 #endif
151 #if wxUSE_LIBTIFF
152 #pragma comment(lib,"wxtiff")
153 #endif
154 #if wxUSE_ZLIB
155 #pragma comment(lib,"wxzlib")
156 #endif
3b422a88
VZ
157 #pragma comment(lib,"wxbase26")
158 #pragma comment(lib,"wxbase26_net")
159 #pragma comment(lib,"wxbase26_xml")
160 #pragma comment(lib,"wxmsw26_adv")
161 #pragma comment(lib,"wxmsw26_core")
162 #pragma comment(lib,"wxmsw26_html")
163 #pragma comment(lib,"wxmsw26_qa")
164 #pragma comment(lib,"wxmsw26_xrc")
14a3591d
VZ
165 #if wxUSE_MEDIACTRL
166 #pragma comment(lib,"wxmsw26_media")
167 #endif
e5099bdf
VZ
168 #endif // debug/release
169 #endif // _UNICODE/!_UNICODE
170#else
171 #error "This file should only be included when using Microsoft Visual C++"
172#endif
173