Add --with-[osx_]iphone switch to configure.
This is another Mac (wxUSE_MAC is defined) port with TOOLKIT=OSX_IPHONE. Also use this port by default for arm-apple-darwin platforms. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
42
configure
vendored
42
configure
vendored
@@ -1919,9 +1919,11 @@ Optional Packages:
|
||||
--with-motif use Motif/Lesstif
|
||||
--with-osx_carbon use Mac OS X (Carbon)
|
||||
--with-osx_cocoa use Mac OS X (Cocoa)
|
||||
--with-osx_iphone use iPhone OS X port
|
||||
--with-osx use Mac OS X (default port, currently Carbon)
|
||||
--with-carbon same as --with-osx_carbon
|
||||
--with-cocoa same as --with-osx_cocoa
|
||||
--with-iphone same as --with-osx_iphone
|
||||
--with-mac same as --with-osx
|
||||
--with-old_cocoa use old, deprecated, Cocoa port
|
||||
--with-wine use Wine
|
||||
@@ -2608,12 +2610,13 @@ USE_ALPHA=
|
||||
|
||||
NEEDS_D_REENTRANT_FOR_R_FUNCS=0
|
||||
|
||||
ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA MGL MICROWIN MOTIF MSW PM X11 DFB"
|
||||
ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
|
||||
|
||||
DEFAULT_wxUSE_OLD_COCOA=0
|
||||
DEFAULT_wxUSE_GTK=0
|
||||
DEFAULT_wxUSE_OSX_CARBON=0
|
||||
DEFAULT_wxUSE_OSX_COCOA=0
|
||||
DEFAULT_wxUSE_OSX_IPHONE=0
|
||||
DEFAULT_wxUSE_MGL=0
|
||||
DEFAULT_wxUSE_MICROWIN=0
|
||||
DEFAULT_wxUSE_MOTIF=0
|
||||
@@ -2626,6 +2629,7 @@ DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
|
||||
DEFAULT_DEFAULT_wxUSE_GTK=0
|
||||
DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
|
||||
DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
|
||||
DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
|
||||
DEFAULT_DEFAULT_wxUSE_MGL=0
|
||||
DEFAULT_DEFAULT_wxUSE_MICROWIN=0
|
||||
DEFAULT_DEFAULT_wxUSE_MOTIF=0
|
||||
@@ -2890,6 +2894,20 @@ _ACEOF
|
||||
DEFAULT_STD_FLAG=no
|
||||
;;
|
||||
|
||||
arm-apple-darwin*)
|
||||
USE_BSD=1
|
||||
USE_DARWIN=1
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define __BSD__ 1
|
||||
_ACEOF
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define __DARWIN__ 1
|
||||
_ACEOF
|
||||
|
||||
DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
|
||||
;;
|
||||
|
||||
*-*-darwin* )
|
||||
USE_BSD=1
|
||||
USE_DARWIN=1
|
||||
@@ -3327,6 +3345,12 @@ if test "${with_osx_cocoa+set}" = set; then
|
||||
fi
|
||||
|
||||
|
||||
# Check whether --with-osx_iphone was given.
|
||||
if test "${with_osx_iphone+set}" = set; then
|
||||
withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
|
||||
fi
|
||||
|
||||
|
||||
# Check whether --with-osx was given.
|
||||
if test "${with_osx+set}" = set; then
|
||||
withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
|
||||
@@ -3345,6 +3369,12 @@ if test "${with_cocoa+set}" = set; then
|
||||
fi
|
||||
|
||||
|
||||
# Check whether --with-iphone was given.
|
||||
if test "${with_iphone+set}" = set; then
|
||||
withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1
|
||||
fi
|
||||
|
||||
|
||||
# Check whether --with-mac was given.
|
||||
if test "${with_mac+set}" = set; then
|
||||
withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
|
||||
@@ -3540,7 +3570,7 @@ echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
|
||||
fi
|
||||
|
||||
NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
|
||||
+ ${wxUSE_OSX_COCOA:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
|
||||
+ ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
|
||||
+ ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
|
||||
|
||||
case "${host}" in
|
||||
@@ -3589,7 +3619,9 @@ echo "${ECHO_T}base only" >&6; }
|
||||
fi
|
||||
|
||||
wxUSE_MAC=0
|
||||
if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1; then
|
||||
if test "$wxUSE_OSX_CARBON" = 1 \
|
||||
-o "$wxUSE_OSX_COCOA" = 1 \
|
||||
-o "$wxUSE_OSX_IPHONE" = 1; then
|
||||
wxUSE_MAC=1
|
||||
fi
|
||||
|
||||
@@ -33021,6 +33053,10 @@ echo "${ECHO_T}none" >&6; }
|
||||
TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
|
||||
fi
|
||||
|
||||
if test "$wxUSE_OSX_IPHONE" = 1; then
|
||||
TOOLKIT=OSX_IPHONE
|
||||
fi
|
||||
|
||||
if test "$wxUSE_OLD_COCOA" = 1; then
|
||||
TOOLKIT=COCOA
|
||||
GUIDIST=COCOA_DIST
|
||||
|
25
configure.in
25
configure.in
@@ -103,7 +103,7 @@ NEEDS_D_REENTRANT_FOR_R_FUNCS=0
|
||||
dnl the list of all available toolkits
|
||||
dnl
|
||||
dnl update NUM_TOOLKITS calculation below when adding a new toolkit here!
|
||||
ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA MGL MICROWIN MOTIF MSW PM X11 DFB"
|
||||
ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MGL MICROWIN MOTIF MSW PM X11 DFB"
|
||||
|
||||
dnl NB: these wxUSE_XXX constants have value of 0 or 1 unlike all the other ones
|
||||
dnl which are either yes or no
|
||||
@@ -111,6 +111,7 @@ DEFAULT_wxUSE_OLD_COCOA=0
|
||||
DEFAULT_wxUSE_GTK=0
|
||||
DEFAULT_wxUSE_OSX_CARBON=0
|
||||
DEFAULT_wxUSE_OSX_COCOA=0
|
||||
DEFAULT_wxUSE_OSX_IPHONE=0
|
||||
DEFAULT_wxUSE_MGL=0
|
||||
DEFAULT_wxUSE_MICROWIN=0
|
||||
DEFAULT_wxUSE_MOTIF=0
|
||||
@@ -126,6 +127,7 @@ DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0
|
||||
DEFAULT_DEFAULT_wxUSE_GTK=0
|
||||
DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
|
||||
DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
|
||||
DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0
|
||||
DEFAULT_DEFAULT_wxUSE_MGL=0
|
||||
DEFAULT_DEFAULT_wxUSE_MICROWIN=0
|
||||
DEFAULT_DEFAULT_wxUSE_MOTIF=0
|
||||
@@ -316,6 +318,15 @@ case "${host}" in
|
||||
DEFAULT_STD_FLAG=no
|
||||
;;
|
||||
|
||||
arm-apple-darwin*)
|
||||
dnl iPhone
|
||||
USE_BSD=1
|
||||
USE_DARWIN=1
|
||||
AC_DEFINE(__BSD__)
|
||||
AC_DEFINE(__DARWIN__)
|
||||
DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1
|
||||
;;
|
||||
|
||||
*-*-darwin* )
|
||||
dnl Darwin based distributions (including Mac OS X)
|
||||
USE_BSD=1
|
||||
@@ -455,9 +466,11 @@ AC_ARG_WITH(gtk, [[ --with-gtk[=VERSION] use GTK+, VERSION can be 2
|
||||
AC_ARG_WITH(motif, [ --with-motif use Motif/Lesstif], [wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1])
|
||||
AC_ARG_WITH(osx_carbon, [ --with-osx_carbon use Mac OS X (Carbon)], [wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1])
|
||||
AC_ARG_WITH(osx_cocoa, [ --with-osx_cocoa use Mac OS X (Cocoa)], [wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1])
|
||||
AC_ARG_WITH(osx_iphone, [ --with-osx_iphone use iPhone OS X port], [wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1])
|
||||
AC_ARG_WITH(osx, [ --with-osx use Mac OS X (default port, currently Carbon)], [wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1])
|
||||
AC_ARG_WITH(carbon, [ --with-carbon same as --with-osx_carbon], [wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1])
|
||||
AC_ARG_WITH(cocoa, [ --with-cocoa same as --with-osx_cocoa], [wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1])
|
||||
AC_ARG_WITH(iphone, [ --with-iphone same as --with-osx_iphone], [wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1])
|
||||
AC_ARG_WITH(mac, [ --with-mac same as --with-osx], [wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1])
|
||||
AC_ARG_WITH(old_cocoa, [ --with-old_cocoa use old, deprecated, Cocoa port], [wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1])
|
||||
AC_ARG_WITH(wine, [ --with-wine use Wine], [wxUSE_WINE="$withval" CACHE_WINE=1])
|
||||
@@ -522,7 +535,7 @@ if test "$wxUSE_GUI" = "yes"; then
|
||||
dnl we suppose that expr is available (maybe there is a better way to do
|
||||
dnl this? what about using ALL_TOOLKITS? TODO)
|
||||
NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
|
||||
+ ${wxUSE_OSX_COCOA:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
|
||||
+ ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
|
||||
+ ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
|
||||
|
||||
dnl Allow wxUSE_PM only for OS/2 with EMX.
|
||||
@@ -565,7 +578,9 @@ else
|
||||
fi
|
||||
|
||||
wxUSE_MAC=0
|
||||
if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1; then
|
||||
if test "$wxUSE_OSX_CARBON" = 1 \
|
||||
-o "$wxUSE_OSX_COCOA" = 1 \
|
||||
-o "$wxUSE_OSX_IPHONE" = 1; then
|
||||
wxUSE_MAC=1
|
||||
fi
|
||||
|
||||
@@ -3533,6 +3548,10 @@ libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
|
||||
TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__"
|
||||
fi
|
||||
|
||||
if test "$wxUSE_OSX_IPHONE" = 1; then
|
||||
TOOLKIT=OSX_IPHONE
|
||||
fi
|
||||
|
||||
if test "$wxUSE_OLD_COCOA" = 1; then
|
||||
TOOLKIT=COCOA
|
||||
GUIDIST=COCOA_DIST
|
||||
|
Reference in New Issue
Block a user