libraries.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. #ifndef _WX_LIBRARIES_H_
  11. #define _WX_LIBRARIES_H_
  12. // NB: According to Microsoft, it is up to the OEM to decide whether
  13. // some of libraries will be included in the system or not. For example,
  14. // MS' STANDARDSDK does not include cyshell.lib and aygshell.lib, while
  15. // Pocket PC 2003 SDK does. We depend on some symbols that are in these
  16. // libraries in some SDKs and in different libs in others. Fortunately we
  17. // can detect what SDK is used in C++ code, so we take advantage of
  18. // VC++'s #pragma to link against the libraries conditionally, instead of
  19. // including libraries in project files.
  20. #if defined(__VISUALC__) && defined(__WXWINCE__)
  21. #if (_WIN32_WCE >= 400) || defined(__POCKETPC__)
  22. // No commdlg.lib in Mobile 5.0 Smartphone
  23. #if !(defined(__SMARTPHONE__) && _WIN32_WCE >= 1200)
  24. #pragma comment(lib,"commdlg.lib")
  25. #endif
  26. #endif
  27. // this library is only available for PocketPC targets using recent SDK and is
  28. // needed for RTTI support
  29. #if (_WIN32_WCE >= 400) && !defined(__WINCE_NET__) && !defined(wxNO_RTTI)
  30. #pragma comment(lib,"ccrtrtti.lib")
  31. #endif
  32. #if defined(__WINCE_STANDARDSDK__)
  33. // DoDragDrop:
  34. #pragma comment(lib,"olece400.lib")
  35. #elif defined(__POCKETPC__) || defined(__SMARTPHONE__) || defined(__WINCE_NET__)
  36. #pragma comment(lib,"ceshell.lib")
  37. #pragma comment(lib,"aygshell.lib")
  38. #elif defined(__HANDHELDPC__)
  39. // Handheld PC builds. Maybe WindowsCE.NET 4.X needs another symbol.
  40. #pragma comment(lib,"ceshell.lib")
  41. #else
  42. #error "Unknown SDK, please fill-in missing pieces"
  43. #endif
  44. #endif // __VISUALC__ && __WXWINCE__
  45. #endif // _WX_LIBRARIES_H_