~ubuntu-dev/wxwidgets2.6/upstream-debian

« back to all changes in this revision

Viewing changes to include/wx/msw/wince/libraries.h

  • Committer: Daniel T Chen
  • Date: 2006-06-26 10:15:11 UTC
  • Revision ID: crimsun@ubuntu.com-20060626101511-a4436cec4c6d9b35
ImportĀ DebianĀ 2.6.3.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
// RCS-ID:      $Id: libraries.h,v 1.11.2.1 2006/03/16 11:03:22 JS Exp $
 
8
// Copyright:   (c) 2004 Vaclav Slavik
 
9
// Licence:     wxWindows licence
 
10
/////////////////////////////////////////////////////////////////////////////
 
11
 
 
12
#ifndef _WX_LIBRARIES_H_
 
13
#define _WX_LIBRARIES_H_
 
14
 
 
15
// NB: According to Microsoft, it is up to the OEM to decide whether
 
16
//     some of libraries will be included in the system or not. For example,
 
17
//     MS' STANDARDSDK does not include cyshell.lib and aygshell.lib, while
 
18
//     Pocket PC 2003 SDK does. We depend on some symbols that are in these
 
19
//     libraries in some SDKs and in different libs in others. Fortunately we
 
20
//     can detect what SDK is used in C++ code, so we take advantage of
 
21
//     VC++'s #pragma to link against the libraries conditionally, instead of
 
22
//     including libraries in project files.
 
23
 
 
24
#if defined(__VISUALC__) && defined(__WXWINCE__)
 
25
 
 
26
#if (_WIN32_WCE >= 400) || defined(__POCKETPC__)
 
27
    // No commdlg.lib in Mobile 5.0 Smartphone
 
28
#if !(defined(__SMARTPHONE__) && _WIN32_WCE >= 1200)
 
29
    #pragma comment(lib,"commdlg.lib")
 
30
#endif
 
31
#endif
 
32
 
 
33
#if (_WIN32_WCE >= 400) && !defined(wxNO_RTTI)
 
34
    #pragma comment(lib,"ccrtrtti.lib")
 
35
#endif
 
36
 
 
37
#if defined(__WINCE_STANDARDSDK__)
 
38
    // DoDragDrop:
 
39
    #pragma comment(lib,"olece400.lib")
 
40
#elif defined(__POCKETPC__)
 
41
    // PocketPC build:
 
42
    // DoDragDrop:
 
43
    #pragma comment(lib,"ceshell.lib")
 
44
 
 
45
    #pragma comment(lib,"aygshell.lib")
 
46
#elif defined(__HANDHELDPC__)
 
47
    // Handheld PC builds. Maybe WindowsCE.NET 4.X needs another symbol.
 
48
    #pragma comment(lib,"ceshell.lib")
 
49
#elif defined(__SMARTPHONE__)
 
50
    // Smartphone build:
 
51
    #pragma comment(lib,"ceshell.lib")
 
52
    #pragma comment(lib,"aygshell.lib")
 
53
#else
 
54
    #error "Unknown SDK, please fill-in missing pieces"
 
55
#endif
 
56
 
 
57
#endif // __VISUALC__ && __WXWINCE__
 
58
 
 
59
#endif // _WX_LIBRARIES_H_