2008-06-11 12:30:48 -04:00
|
|
|
/*
|
2008-07-30 11:00:41 -04:00
|
|
|
* Name: wx/osx/chkconf.h
|
2008-06-11 12:30:48 -04:00
|
|
|
* Purpose: Mac-specific config settings checks
|
|
|
|
* Author: Vadim Zeitlin
|
|
|
|
* Modified by:
|
|
|
|
* Created: 2005-04-05 (extracted from wx/chkconf.h)
|
|
|
|
* Copyright: (c) 2005 Vadim Zeitlin <vadim@wxwidgets.org>
|
|
|
|
* Licence: wxWindows licence
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
|
|
|
|
|
2008-07-30 11:00:41 -04:00
|
|
|
#ifndef _WX_OSX_CHKCONF_H_
|
|
|
|
#define _WX_OSX_CHKCONF_H_
|
|
|
|
|
|
|
|
/*
|
|
|
|
* check graphics context option, must be on for every os x platform
|
|
|
|
* we only use core graphics now on all builds, try to catch attempts
|
|
|
|
* to configure the build otherwise and give error messages
|
|
|
|
*/
|
2009-08-21 06:41:26 -04:00
|
|
|
|
2010-11-09 18:53:42 -05:00
|
|
|
#if wxUSE_GUI && (!wxUSE_GRAPHICS_CONTEXT || \
|
|
|
|
( defined( wxMAC_USE_CORE_GRAPHICS ) && !wxMAC_USE_CORE_GRAPHICS ))
|
2008-07-30 11:00:41 -04:00
|
|
|
# error "OS X builds use CoreGraphics in this wx version, you cannot turn back to QuickDraw completely"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* using mixins of cocoa functionality
|
|
|
|
*/
|
2009-08-21 06:41:26 -04:00
|
|
|
|
2008-09-06 12:30:42 -04:00
|
|
|
#ifdef __WXOSX_COCOA__
|
|
|
|
#define wxOSX_USE_COCOA 1
|
|
|
|
#else
|
2008-07-30 11:00:41 -04:00
|
|
|
#define wxOSX_USE_COCOA 0
|
|
|
|
#endif
|
|
|
|
|
2008-09-06 12:30:42 -04:00
|
|
|
#ifdef __WXOSX_CARBON__
|
|
|
|
#define wxOSX_USE_CARBON 1
|
|
|
|
#else
|
|
|
|
#define wxOSX_USE_CARBON 0
|
|
|
|
#endif
|
|
|
|
|
2014-07-06 06:33:22 -04:00
|
|
|
#ifdef __WXOSX_IPHONE__
|
|
|
|
#define wxOSX_USE_IPHONE 1
|
|
|
|
#else
|
|
|
|
#define wxOSX_USE_IPHONE 0
|
|
|
|
#endif
|
|
|
|
|
2008-07-30 11:00:41 -04:00
|
|
|
/*
|
|
|
|
* setting flags according to the platform
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __LP64__
|
2011-02-18 13:44:43 -05:00
|
|
|
#if wxOSX_USE_CARBON
|
|
|
|
#error "Carbon does not support 64bit"
|
|
|
|
#endif
|
2008-06-11 12:30:48 -04:00
|
|
|
#endif
|
2008-07-30 11:00:41 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* combination flags
|
|
|
|
*/
|
2009-08-21 06:41:26 -04:00
|
|
|
|
2008-07-30 11:00:41 -04:00
|
|
|
#if wxOSX_USE_COCOA || wxOSX_USE_CARBON
|
|
|
|
#define wxOSX_USE_COCOA_OR_CARBON 1
|
|
|
|
#else
|
|
|
|
#define wxOSX_USE_COCOA_OR_CARBON 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if wxOSX_USE_COCOA || wxOSX_USE_IPHONE
|
|
|
|
#define wxOSX_USE_COCOA_OR_IPHONE 1
|
|
|
|
#else
|
|
|
|
#define wxOSX_USE_COCOA_OR_IPHONE 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if wxOSX_USE_IPHONE
|
|
|
|
#include "wx/osx/iphone/chkconf.h"
|
|
|
|
#elif wxOSX_USE_CARBON
|
|
|
|
#include "wx/osx/carbon/chkconf.h"
|
|
|
|
#elif wxOSX_USE_COCOA
|
|
|
|
#include "wx/osx/cocoa/chkconf.h"
|
|
|
|
#endif
|
|
|
|
|
2011-04-15 15:18:34 -04:00
|
|
|
#endif /* _WX_OSX_CHKCONF_H_ */
|