]>
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)
7 * Copyright: (c) 2005 Vadim Zeitlin <vadim@wxwidgets.org>
8 * Licence: wxWindows licence
11 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
13 #ifndef _WX_OSX_CHKCONF_H_
14 #define _WX_OSX_CHKCONF_H_
17 * check graphics context option, must be on for every os x platform
18 * we only use core graphics now on all builds, try to catch attempts
19 * to configure the build otherwise and give error messages
22 #if wxUSE_GUI && (!wxUSE_GRAPHICS_CONTEXT || \
23 ( defined( wxMAC_USE_CORE_GRAPHICS ) && !wxMAC_USE_CORE_GRAPHICS ))
24 # error "OS X builds use CoreGraphics in this wx version, you cannot turn back to QuickDraw completely"
28 * using mixins of cocoa functionality
31 #ifdef __WXOSX_COCOA__
32 #define wxOSX_USE_COCOA 1
34 #define wxOSX_USE_COCOA 0
37 #ifdef __WXOSX_CARBON__
38 #define wxOSX_USE_CARBON 1
40 #define wxOSX_USE_CARBON 0
44 * setting flags according to the platform
48 #if wxOSX_USE_COCOA == 0
49 #undef wxOSX_USE_COCOA
50 #define wxOSX_USE_COCOA 1
53 #error "Carbon does not support 64bit"
55 #define wxOSX_USE_IPHONE 0
57 #ifdef __WXOSX_IPHONE__
58 #define wxOSX_USE_IPHONE 1
60 #define wxOSX_USE_IPHONE 0
68 #if wxOSX_USE_COCOA || wxOSX_USE_CARBON
69 #define wxOSX_USE_COCOA_OR_CARBON 1
71 #define wxOSX_USE_COCOA_OR_CARBON 0
74 #if wxOSX_USE_COCOA || wxOSX_USE_IPHONE
75 #define wxOSX_USE_COCOA_OR_IPHONE 1
77 #define wxOSX_USE_COCOA_OR_IPHONE 0
81 #include "wx/osx/iphone/chkconf.h"
82 #elif wxOSX_USE_CARBON
83 #include "wx/osx/carbon/chkconf.h"
85 #include "wx/osx/cocoa/chkconf.h"
88 #endif /* _WX_OSX_CHKCONF_H_ */