]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/carbon/chkconf.h
2 * Name: wx/mac/chkconf.h
3 * Purpose: Compiler-specific configuration checking
8 * Copyright: (c) Julian Smart
9 * Licence: wxWindows licence
12 #ifndef _WX_MAC_CHKCONF_H_
13 #define _WX_MAC_CHKCONF_H_
16 * disable the settings which don't work for some compilers
19 #if defined(__MWERKS__)
20 #undef wxUSE_DEBUG_NEW_ALWAYS
21 #define wxUSE_DEBUG_NEW_ALWAYS 0
23 /* DS: Fixes compilation when wxUSE_ON_FATAL_EXCEPTION is 1 */
24 #ifndef wxTYPE_SA_HANDLER
25 #define wxTYPE_SA_HANDLER int
30 * use OS X CoreGraphics (1) or QuickDraw (0) for rendering
33 #ifndef wxOSX_USE_CORE_GRAPHICS
34 #define wxOSX_USE_CORE_GRAPHICS 1
38 * wxOSX_USE_CORE_GRAPHICS is now implemented in terms of wxUSE_GRAPHICS_CONTEXT
41 #if wxOSX_USE_CORE_GRAPHICS
42 #undef wxUSE_GRAPHICS_CONTEXT
43 #define wxUSE_GRAPHICS_CONTEXT 1
47 * check graphics context option
49 #if wxUSE_GRAPHICS_CONTEXT && !wxOSX_USE_CORE_GRAPHICS
50 # error "wxUSE_GRAPHICS_CONTEXT on wxMac requires wxOSX_USE_CORE_GRAPHICS"
54 * native (1) or emulated (0) toolbar
57 #ifndef wxMAC_USE_NATIVE_TOOLBAR
58 #define wxMAC_USE_NATIVE_TOOLBAR 1
62 * using mixins of cocoa functionality
65 #ifndef wxOSX_USE_COCOA
66 #define wxOSX_USE_COCOA 0
70 * setting flags according to the platform
74 #if wxOSX_USE_COCOA == 0
75 #undef wxOSX_USE_COCOA
76 #define wxOSX_USE_COCOA 1
78 #define wxOSX_USE_QUICKDRAW 0
79 #define wxOSX_USE_CARBON 0
80 #define wxOSX_USE_IPHONE 0
82 #ifdef __WXOSX_IPHONE__
83 #define wxOSX_USE_QUICKDRAW 0
84 #define wxOSX_USE_CARBON 0
85 #define wxOSX_USE_IPHONE 1
87 #define wxOSX_USE_IPHONE 0
89 #define wxOSX_USE_QUICKDRAW 0
90 #define wxOSX_USE_CARBON 0
92 #define wxOSX_USE_QUICKDRAW 1
93 #define wxOSX_USE_CARBON 1
98 #if wxOSX_USE_COCOA || wxOSX_USE_CARBON
99 #define wxOSX_USE_COCOA_OR_CARBON 1
101 #define wxOSX_USE_COCOA_OR_CARBON 0
104 #if wxOSX_USE_COCOA || wxOSX_USE_IPHONE
105 #define wxOSX_USE_COCOA_OR_IPHONE 1
107 #define wxOSX_USE_COCOA_OR_IPHONE 0
111 * text rendering system
114 /* we have different options and we turn on all that make sense
115 * under a certain platform
118 #ifdef __WXOSX_IPHONE__
119 #define wxMAC_USE_CG_TEXT 1
120 #define wxMAC_USE_CORE_TEXT 0
121 #define wxMAC_USE_ATSU_TEXT 0
122 #else // !__WXOSX_IPHONE__
124 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
126 #define wxMAC_USE_CORE_TEXT 1
127 #define wxMAC_USE_ATSU_TEXT 0
128 #define wxMAC_USE_CG_TEXT 0
130 #else // platform < 10.5
132 #define wxMAC_USE_CG_TEXT 0
134 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
135 #define wxMAC_USE_CORE_TEXT 1
137 #define wxMAC_USE_CORE_TEXT 0
139 #define wxMAC_USE_ATSU_TEXT 1
143 #endif // !__WXOSX_IPHONE__
146 * turning off capabilities that don't work under 64 bit yet
149 #if wxOSX_USE_COCOA_OR_IPHONE
156 #if wxUSE_MDI_ARCHITECTURE
157 #undef wxUSE_MDI_ARCHITECTURE
158 #define wxUSE_MDI_ARCHITECTURE 0
161 #if wxUSE_DRAG_AND_DROP
162 #undef wxUSE_DRAG_AND_DROP
163 #define wxUSE_DRAG_AND_DROP 0
166 #if wxUSE_TASKBARICON
167 #undef wxUSE_TASKBARICON
168 #define wxUSE_TASKBARICON 0
172 #undef wxUSE_TOOLTIPS
173 #define wxUSE_TOOLTIPS 0
176 #if wxUSE_DATAVIEWCTRL
177 #undef wxUSE_DATAVIEWCTRL
178 #define wxUSE_DATAVIEWCTRL 0
181 #if wxUSE_DRAG_AND_DROP
182 #undef wxUSE_DRAG_AND_DROP
183 #define wxUSE_DRAG_AND_DROP 0
186 #if wxUSE_TASKBARICON
187 #undef wxUSE_TASKBARICON
188 #define wxUSE_TASKBARICON 0
193 #undef wxUSE_POPUPWIN
194 #define wxUSE_POPUPWIN 0
198 #undef wxUSE_COMBOBOX
199 #define wxUSE_COMBOBOX 0
205 #define wxUSE_MENUS 0
208 #if wxUSE_CALENDARCTRL
209 #undef wxUSE_CALENDARCTRL
210 #define wxUSE_CALENDARCTRL 0
213 #if wxUSE_WXHTML_HELP
214 #undef wxUSE_WXHTML_HELP
215 #define wxUSE_WXHTML_HELP 0
218 #if wxUSE_DOC_VIEW_ARCHITECTURE
219 #undef wxUSE_DOC_VIEW_ARCHITECTURE
220 #define wxUSE_DOC_VIEW_ARCHITECTURE 0
223 #if wxUSE_PRINTING_ARCHITECTURE
224 #undef wxUSE_PRINTING_ARCHITECTURE
225 #define wxUSE_PRINTING_ARCHITECTURE 0
231 #endif // wxOSX_USE_COCOA_OR_IPHON
236 #undef wxUSE_CLIPBOARD
237 #define wxUSE_CLIPBOARD 0
238 #endif // wxUSE_CLIPBOARD
240 #endif //wxOSX_USE_IPHONE
243 /* _WX_MAC_CHKCONF_H_ */