From: Stefan Csomor Date: Thu, 20 May 2010 17:58:38 +0000 (+0000) Subject: support compiling for iphone X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/afd5d91cae0ef66ac743ffb26c55e33af4735c0f support compiling for iphone git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/osx/iphone/chkconf.h b/include/wx/osx/iphone/chkconf.h index caf0a2ff57..c4ddcfd1f2 100644 --- a/include/wx/osx/iphone/chkconf.h +++ b/include/wx/osx/iphone/chkconf.h @@ -289,6 +289,41 @@ #define wxOSX_USE_NATIVE_TOOLBAR 0 #endif +#if wxUSE_RIBBON +#undef wxUSE_RIBBON +#define wxUSE_RIBBON 0 +#endif + +#if wxUSE_INFOBAR +#undef wxUSE_INFOBAR +#define wxUSE_INFOBAR 0 +#endif + +#if wxUSE_FILE_HISTORY +#undef wxUSE_FILE_HISTORY +#define wxUSE_FILE_HISTORY 0 +#endif + +#if wxUSE_NOTIFICATION_MESSAGE +#undef wxUSE_NOTIFICATION_MESSAGE +#define wxUSE_NOTIFICATION_MESSAGE 0 +#endif + +#if wxUSE_PROPGRID +#undef wxUSE_PROPGRID +#define wxUSE_PROPGRID 0 +#endif + +#if wxUSE_WEBKIT +#undef wxUSE_WEBKIT +#define wxUSE_WEBKIT 0 +#endif + +#if wxUSE_DATAOBJ +#undef wxUSE_DATAOBJ +#define wxUSE_DATAOBJ 0 +#endif + #endif /* _WX_OSX_IPHONE_CHKCONF_H_ */ diff --git a/include/wx/osx/private/glgrab.h b/include/wx/osx/private/glgrab.h index 9961f51c2e..bca90cb457 100644 --- a/include/wx/osx/private/glgrab.h +++ b/include/wx/osx/private/glgrab.h @@ -4,7 +4,8 @@ extern "C" { #endif - CGImageRef grabViaOpenGL(CGDirectDisplayID display, CGRect srcRect); + CGImageRef grabViaOpenGL(CGDirectDisplayID display, + CGRect srcRect); #if defined __cplusplus } diff --git a/src/osx/carbon/dataobj.cpp b/src/osx/carbon/dataobj.cpp index a65b2b7dfe..bfb10702be 100644 --- a/src/osx/carbon/dataobj.cpp +++ b/src/osx/carbon/dataobj.cpp @@ -29,7 +29,7 @@ #include "wx/osx/private.h" -#ifdef __DARWIN__ +#if wxOSX_USE_COCOA_OR_CARBON #include #endif diff --git a/src/osx/carbon/icon.cpp b/src/osx/carbon/icon.cpp index 37c815e24d..fa46e15088 100644 --- a/src/osx/carbon/icon.cpp +++ b/src/osx/carbon/icon.cpp @@ -11,6 +11,8 @@ #include "wx/wxprec.h" +#if wxOSX_USE_COCOA_OR_CARBON + #include "wx/icon.h" #ifndef WX_PRECOMP @@ -361,3 +363,5 @@ bool wxICONResourceHandler::LoadFile( return false; } +#endif + diff --git a/src/osx/carbon/region.cpp b/src/osx/carbon/region.cpp index d5e113408a..20f586b946 100644 --- a/src/osx/carbon/region.cpp +++ b/src/osx/carbon/region.cpp @@ -10,6 +10,8 @@ #include "wx/wxprec.h" +#if wxOSX_USE_COCOA_OR_CARBON + #include "wx/region.h" #ifndef WX_PRECOMP @@ -606,3 +608,5 @@ long wxRegionIterator::GetH() const return 0; } + +#endif diff --git a/src/osx/carbon/renderer.cpp b/src/osx/carbon/renderer.cpp index fd3b471abf..cf8c734dc3 100644 --- a/src/osx/carbon/renderer.cpp +++ b/src/osx/carbon/renderer.cpp @@ -12,6 +12,8 @@ // for compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#if wxOSX_USE_COCOA_OR_CARBON + #ifdef __BORLANDC__ #pragma hdrstop #endif @@ -806,3 +808,5 @@ void wxRendererMac::DrawTitleBarBitmap(wxWindow *win, } #endif // wxHAS_DRAW_TITLE_BAR_BITMAP + +#endif \ No newline at end of file diff --git a/src/osx/core/glgrab.cpp b/src/osx/core/glgrab.cpp index ccb2ff76ad..99ffa2b085 100644 --- a/src/osx/core/glgrab.cpp +++ b/src/osx/core/glgrab.cpp @@ -30,6 +30,8 @@ OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if wxOSX_USE_COCOA_OR_CARBON + #import #import #import @@ -212,3 +214,4 @@ CGImageRef grabViaOpenGL(CGDirectDisplayID display, CGRect srcRect) return image; } +#endif diff --git a/src/osx/core/hid.cpp b/src/osx/core/hid.cpp index 3bc287cb17..0f00fca275 100644 --- a/src/osx/core/hid.cpp +++ b/src/osx/core/hid.cpp @@ -24,8 +24,7 @@ #pragma hdrstop #endif -//DARWIN _ONLY_ -#ifdef __DARWIN__ +#if wxOSX_USE_COCOA_OR_CARBON #include "wx/osx/core/hid.h" diff --git a/src/ribbon/art_aui.cpp b/src/ribbon/art_aui.cpp index 0e452bdd6b..a0f40869f5 100644 --- a/src/ribbon/art_aui.cpp +++ b/src/ribbon/art_aui.cpp @@ -33,8 +33,6 @@ #include "wx/msw/private.h" #elif defined(__WXMAC__) #include "wx/osx/private.h" -// only for kThemeBrushToolbarBackground -#include #endif wxRibbonAUIArtProvider::wxRibbonAUIArtProvider()