]>
git.saurik.com Git - wxWidgets.git/blob - include/msvc/wx/setup.h
5a42e004eed57cb9d6bc68f5531d8d1b0117e0f1
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 /////////////////////////////////////////////////////////////////////////////
12 // VC++ IDE predefines _DEBUG and _UNICODE for the new projects itself, but
13 // the other symbols (WXUSINGDLL, __WXUNIVERSAL__, ...) should be defined
17 #include "wx/version.h"
20 // notice that wxSUFFIX_DEBUG is a string but wxSUFFIX itself must be an
21 // identifier as string concatenation is not done inside #include where we
24 #define wxSUFFIX_DEBUG "d"
29 #endif // _UNICODE/!_UNICODE
31 #define wxSUFFIX_DEBUG ""
36 #endif // _UNICODE/!_UNICODE
40 #define wxLIB_SUBDIR vc_dll
42 #define wxLIB_SUBDIR vc_lib
46 // the real setup.h header file we need is in the build-specific directory,
47 // construct the path to it
48 #define wxSETUPH_PATH \
49 wxCONCAT5(../../../lib/, wxLIB_SUBDIR, /msw, wxSUFFIX, /wx/setup.h)
50 #define wxSETUPH_PATH_STR wxSTRINGIZE(wxSETUPH_PATH)
52 #include wxSETUPH_PATH_STR
55 // the library names depend on the build, these macro builds the correct
56 // library name for the given base name
57 #define wxSUFFIX_STR wxSTRINGIZE(wxSUFFIX)
58 #define wxSHORT_VERSION_STRING \
59 wxSTRINGIZE(wxMAJOR_VERSION) wxSTRINGIZE(wxMINOR_VERSION)
61 #define wxWX_LIB_NAME(name, subname) \
62 "wx" name wxSHORT_VERSION_STRING wxSUFFIX_STR subname
64 #define wxBASE_LIB_NAME(name) wxWX_LIB_NAME("base", "_" name)
65 #define wxMSW_LIB_NAME(name) wxWX_LIB_NAME("msw", "_" name)
67 // this one is for 3rd party libraries: they don't have the version number
68 // in their names and usually exist in ANSI version only (except for regex)
69 #define wx3RD_PARTY_LIB_NAME(name) "wx" name wxSUFFIX_DEBUG
71 // special version for regex as it does have a Unicode version
72 #define wx3RD_PARTY_LIB_NAME_U(name) "wx" name wxSUFFIX_STR
74 #pragma comment(lib, wxWX_LIB_NAME("base", ""))
75 #pragma comment(lib, wxBASE_LIB_NAME("net"))
76 #pragma comment(lib, wxBASE_LIB_NAME("xml"))
78 #pragma comment(lib, wx3RD_PARTY_LIB_NAME_U("regex"))
83 #pragma comment(lib, wx3RD_PARTY_LIB_NAME("expat"))
86 #pragma comment(lib, wx3RD_PARTY_LIB_NAME("jpeg"))
89 #pragma comment(lib, wx3RD_PARTY_LIB_NAME("png"))
92 #pragma comment(lib, wx3RD_PARTY_LIB_NAME("tiff"))
95 #pragma comment(lib, wx3RD_PARTY_LIB_NAME("zlib"))
98 #pragma comment(lib, wxMSW_LIB_NAME("adv"))
99 #pragma comment(lib, wxMSW_LIB_NAME("core"))
100 #pragma comment(lib, wxMSW_LIB_NAME("html"))
102 #pragma comment(lib, wxMSW_LIB_NAME("gl"))
104 #if wxUSE_DEBUGREPORT
105 #pragma comment(lib, wxMSW_LIB_NAME("qa"))
108 #pragma comment(lib, wxMSW_LIB_NAME("xrc"))
111 #pragma comment(lib, wxMSW_LIB_NAME("aui"))
114 #pragma comment(lib, wxMSW_LIB_NAME("richtext"))
117 #pragma comment(lib, wxMSW_LIB_NAME("media"))
120 #pragma comment(lib, wxMSW_LIB_NAME("odbc"))
124 #error "This file should only be included when using Microsoft Visual C++"