]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/msw/wince/libraries.h | |
3 | // Purpose: VC++ pragmas for linking against SDK libs | |
4 | // Author: Vaclav Slavik | |
5 | // Modified by: | |
6 | // Created: 2004-04-11 | |
7 | // Copyright: (c) 2004 Vaclav Slavik | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_LIBRARIES_H_ | |
12 | #define _WX_LIBRARIES_H_ | |
13 | ||
14 | // NB: According to Microsoft, it is up to the OEM to decide whether | |
15 | // some of libraries will be included in the system or not. For example, | |
16 | // MS' STANDARDSDK does not include cyshell.lib and aygshell.lib, while | |
17 | // Pocket PC 2003 SDK does. We depend on some symbols that are in these | |
18 | // libraries in some SDKs and in different libs in others. Fortunately we | |
19 | // can detect what SDK is used in C++ code, so we take advantage of | |
20 | // VC++'s #pragma to link against the libraries conditionally, instead of | |
21 | // including libraries in project files. | |
22 | ||
23 | #if defined(__VISUALC__) && defined(__WXWINCE__) | |
24 | ||
25 | #if (_WIN32_WCE >= 400) || defined(__POCKETPC__) | |
26 | // No commdlg.lib in Mobile 5.0 Smartphone | |
27 | #if !(defined(__SMARTPHONE__) && _WIN32_WCE >= 1200) | |
28 | #pragma comment(lib,"commdlg.lib") | |
29 | #endif | |
30 | #endif | |
31 | ||
32 | // this library is only available for PocketPC targets using recent SDK and is | |
33 | // needed for RTTI support | |
34 | #if (_WIN32_WCE >= 400) && !defined(__WINCE_NET__) && !defined(wxNO_RTTI) | |
35 | #pragma comment(lib,"ccrtrtti.lib") | |
36 | #endif | |
37 | ||
38 | #if defined(__WINCE_STANDARDSDK__) | |
39 | // DoDragDrop: | |
40 | #pragma comment(lib,"olece400.lib") | |
41 | #elif defined(__POCKETPC__) || defined(__SMARTPHONE__) || defined(__WINCE_NET__) | |
42 | #pragma comment(lib,"ceshell.lib") | |
43 | #pragma comment(lib,"aygshell.lib") | |
44 | #elif defined(__HANDHELDPC__) | |
45 | // Handheld PC builds. Maybe WindowsCE.NET 4.X needs another symbol. | |
46 | #pragma comment(lib,"ceshell.lib") | |
47 | #else | |
48 | #error "Unknown SDK, please fill-in missing pieces" | |
49 | #endif | |
50 | ||
51 | #endif // __VISUALC__ && __WXWINCE__ | |
52 | ||
53 | #endif // _WX_LIBRARIES_H_ |