]>
git.saurik.com Git - wxWidgets.git/blob - include/msvc/wx/setup.h
b123899eb21b53def01fbe3c24aaf1ada2f72fee
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: msvc/wx/msw/setup.h
3 // Purpose: wrapper around the real wx/setup.h for Visual C++
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2004 Vadim Zeitlin <vadim@wxwindows.org>
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #error "This file should only be included when using Microsoft Visual C++"
16 // VC++ IDE predefines _DEBUG and _UNICODE for the new projects itself, but
17 // the other symbols (WXUSINGDLL, __WXUNIVERSAL__, ...) should be defined
20 #include "wx/version.h"
23 // notice that wxSUFFIX_DEBUG is a string but wxSUFFIX itself must be an
24 // identifier as string concatenation is not done inside #include where we
27 #define wxSUFFIX_DEBUG "d"
32 #endif // _UNICODE/!_UNICODE
34 #define wxSUFFIX_DEBUG ""
39 #endif // _UNICODE/!_UNICODE
42 // compiler-specific prefix, we may use version-specific one in the future but
43 // for now it's just "vc" for all versions for compatibility
44 #define wxCOMPILER_PREFIX vc
46 // architecture-specific part: not used (again, for compatibility), for x86
48 #define wxARCH_SUFFIX _amd64
49 #elif defined(_M_IA64)
50 #define wxARCH_SUFFIX _ia64
51 #else // assume _M_IX86
56 #define wxLIB_SUBDIR wxCONCAT3(wxCOMPILER_PREFIX, wxARCH_SUFFIX, _dll)
58 #define wxLIB_SUBDIR wxCONCAT3(wxCOMPILER_PREFIX, wxARCH_SUFFIX, _lib)
62 // the real setup.h header file we need is in the build-specific directory,
63 // construct the path to it
64 #define wxSETUPH_PATH \
65 wxCONCAT5(../../../lib/, wxLIB_SUBDIR, /msw, wxSUFFIX, /wx/setup.h)
66 #define wxSETUPH_PATH_STR wxSTRINGIZE(wxSETUPH_PATH)
68 #include wxSETUPH_PATH_STR
71 // the library names depend on the build, these macro builds the correct
72 // library name for the given base name
73 #define wxSUFFIX_STR wxSTRINGIZE(wxSUFFIX)
74 #define wxSHORT_VERSION_STRING \
75 wxSTRINGIZE(wxMAJOR_VERSION) wxSTRINGIZE(wxMINOR_VERSION)
77 #define wxWX_LIB_NAME(name, subname) \
78 "wx" name wxSHORT_VERSION_STRING wxSUFFIX_STR subname
80 #define wxBASE_LIB_NAME(name) wxWX_LIB_NAME("base", "_" name)
81 #define wxMSW_LIB_NAME(name) wxWX_LIB_NAME("msw", "_" name)
83 // this one is for 3rd party libraries: they don't have the version number
84 // in their names and usually exist in ANSI version only (except for regex)
85 #define wx3RD_PARTY_LIB_NAME(name) "wx" name wxSUFFIX_DEBUG
87 // special version for regex as it does have a Unicode version
88 #define wx3RD_PARTY_LIB_NAME_U(name) "wx" name wxSUFFIX_STR
90 #pragma comment(lib, wxWX_LIB_NAME("base", ""))
93 #pragma comment(lib, wxBASE_LIB_NAME("net"))
96 #pragma comment(lib, wxBASE_LIB_NAME("xml"))
98 #if wxUSE_REGEX && !defined(wxNO_REGEX_LIB)
99 #pragma comment(lib, wx3RD_PARTY_LIB_NAME_U("regex"))
103 #if wxUSE_XML && !defined(wxNO_EXPAT_LIB)
104 #pragma comment(lib, wx3RD_PARTY_LIB_NAME("expat"))
106 #if wxUSE_LIBJPEG && !defined(wxNO_JPEG_LIB)
107 #pragma comment(lib, wx3RD_PARTY_LIB_NAME("jpeg"))
109 #if wxUSE_LIBPNG && !defined(wxNO_PNG_LIB)
110 #pragma comment(lib, wx3RD_PARTY_LIB_NAME("png"))
112 #if wxUSE_LIBTIFF && !defined(wxNO_TIFF_LIB)
113 #pragma comment(lib, wx3RD_PARTY_LIB_NAME("tiff"))
115 #if wxUSE_ZLIB && !defined(wxNO_ZLIB_LIB)
116 #pragma comment(lib, wx3RD_PARTY_LIB_NAME("zlib"))
119 #pragma comment(lib, wxMSW_LIB_NAME("core"))
122 #pragma comment(lib, wxMSW_LIB_NAME("adv"))
125 #ifndef wxNO_HTML_LIB
126 #pragma comment(lib, wxMSW_LIB_NAME("html"))
128 #if wxUSE_GLCANVAS && !defined(wxNO_GL_LIB)
129 #pragma comment(lib, wxMSW_LIB_NAME("gl"))
131 #if wxUSE_DEBUGREPORT && !defined(wxNO_QA_LIB)
132 #pragma comment(lib, wxMSW_LIB_NAME("qa"))
134 #if wxUSE_XRC && !defined(wxNO_XRC_LIB)
135 #pragma comment(lib, wxMSW_LIB_NAME("xrc"))
137 #if wxUSE_AUI && !defined(wxNO_AUI_LIB)
138 #pragma comment(lib, wxMSW_LIB_NAME("aui"))
140 #if wxUSE_PROPGRID && !defined(wxNO_PROPGRID_LIB)
141 #pragma comment(lib, wxMSW_LIB_NAME("propgrid"))
143 #if wxUSE_RIBBON && !defined(wxNO_RIBBON_LIB)
144 #pragma comment(lib, wxMSW_LIB_NAME("ribbon"))
146 #if wxUSE_RICHTEXT && !defined(wxNO_RICHTEXT_LIB)
147 #pragma comment(lib, wxMSW_LIB_NAME("richtext"))
149 #if wxUSE_MEDIACTRL && !defined(wxNO_MEDIA_LIB)
150 #pragma comment(lib, wxMSW_LIB_NAME("media"))
152 #if wxUSE_STC && !defined(wxNO_STC_LIB)
153 #pragma comment(lib, wxMSW_LIB_NAME("stc"))
154 #pragma comment(lib, wx3RD_PARTY_LIB_NAME("scintilla"))