]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/chkconf.h
2 * Name: wx/osx/chkconf.h
3 * Purpose: Mac-specific config settings checks
4 * Author: Vadim Zeitlin
6 * Created: 2005-04-05 (extracted from wx/chkconf.h)
8 * Copyright: (c) 2005 Vadim Zeitlin <vadim@wxwidgets.org>
9 * Licence: wxWindows licence
12 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
14 #ifndef _WX_OSX_CHKCONF_H_
15 #define _WX_OSX_CHKCONF_H_
18 * check graphics context option, must be on for every os x platform
19 * we only use core graphics now on all builds, try to catch attempts
20 * to configure the build otherwise and give error messages
23 #if wxUSE_GUI && (!wxUSE_GRAPHICS_CONTEXT || \
24 ( defined( wxMAC_USE_CORE_GRAPHICS ) && !wxMAC_USE_CORE_GRAPHICS ))
25 # error "OS X builds use CoreGraphics in this wx version, you cannot turn back to QuickDraw completely"
29 * using mixins of cocoa functionality
32 #ifdef __WXOSX_COCOA__
33 #define wxOSX_USE_COCOA 1
35 #define wxOSX_USE_COCOA 0
38 #ifdef __WXOSX_CARBON__
39 #define wxOSX_USE_CARBON 1
41 #define wxOSX_USE_CARBON 0
45 * setting flags according to the platform
49 #if wxOSX_USE_COCOA == 0
50 #undef wxOSX_USE_COCOA
51 #define wxOSX_USE_COCOA 1
54 #error "Carbon does not support 64bit"
56 #define wxOSX_USE_IPHONE 0
58 #ifdef __WXOSX_IPHONE__
59 #define wxOSX_USE_IPHONE 1
61 #define wxOSX_USE_IPHONE 0
69 #if wxOSX_USE_COCOA || wxOSX_USE_CARBON
70 #define wxOSX_USE_COCOA_OR_CARBON 1
72 #define wxOSX_USE_COCOA_OR_CARBON 0
75 #if wxOSX_USE_COCOA || wxOSX_USE_IPHONE
76 #define wxOSX_USE_COCOA_OR_IPHONE 1
78 #define wxOSX_USE_COCOA_OR_IPHONE 0
82 #include "wx/osx/iphone/chkconf.h"
83 #elif wxOSX_USE_CARBON
84 #include "wx/osx/carbon/chkconf.h"
86 #include "wx/osx/cocoa/chkconf.h"
89 #endif /* _WX_OSX_CHKCONF_H_ */