Commit 0b0545eb authored by Felix Paul Kühne's avatar Felix Paul Kühne

ios: unbreak freetype contrib compilation with Xcode 5 and simplify the FLAG handling quite a bit

parent 5d15f59a
...@@ -177,24 +177,6 @@ check_macosx_sdk() ...@@ -177,24 +177,6 @@ check_macosx_sdk()
add_make "OSX_VERSION ?= ${OSX_VERSION}" add_make "OSX_VERSION ?= ${OSX_VERSION}"
} }
check_ios_sdk()
{
if test -z "$SDKROOT"
then
SDKROOT=`xcode-select -print-path`/Platforms/iPhone${PLATFORM}.platform/Developer/SDKs/iPhone${PLATFORM}${SDK_VERSION}.sdk
echo "SDKROOT not specified, assuming $SDKROOT"
else
SDKROOT="$SDKROOT"
fi
if [ ! -d "${SDKROOT}" ]
then
echo "*** ${SDKROOT} does not exist, please install required SDK, or set SDKROOT manually. ***"
exit 1
fi
add_make "SDKROOT=${SDKROOT}"
}
check_android_sdk() check_android_sdk()
{ {
[ -z "${ANDROID_NDK}" ] && echo "You must set ANDROID_NDK environment variable" && exit 1 [ -z "${ANDROID_NDK}" ] && echo "You must set ANDROID_NDK environment variable" && exit 1
...@@ -224,7 +206,6 @@ case "${OS}" in ...@@ -224,7 +206,6 @@ case "${OS}" in
check_macosx_sdk check_macosx_sdk
add_make_enabled "HAVE_MACOSX" "HAVE_DARWIN_OS" "HAVE_BSD" add_make_enabled "HAVE_MACOSX" "HAVE_DARWIN_OS" "HAVE_BSD"
else else
check_ios_sdk
add_make_enabled "HAVE_IOS" "HAVE_DARWIN_OS" "HAVE_BSD" "HAVE_NEON" "HAVE_ARMV7A" add_make_enabled "HAVE_IOS" "HAVE_DARWIN_OS" "HAVE_BSD" "HAVE_NEON" "HAVE_ARMV7A"
fi fi
;; ;;
......
...@@ -138,8 +138,8 @@ AR=xcrun ar ...@@ -138,8 +138,8 @@ AR=xcrun ar
LD=xcrun ld LD=xcrun ld
STRIP=xcrun strip STRIP=xcrun strip
RANLIB=xcrun ranlib RANLIB=xcrun ranlib
EXTRA_CFLAGS += -isysroot $(SDKROOT) EXTRA_CFLAGS += $(CFLAGS)
EXTRA_LDFLAGS += -Wl,-syslibroot,$(SDKROOT) -isysroot $(SDKROOT) EXTRA_LDFLAGS += $(LDFLAGS)
endif endif
ifdef HAVE_WIN32 ifdef HAVE_WIN32
......
...@@ -137,7 +137,6 @@ export LD="xcrun ld" ...@@ -137,7 +137,6 @@ export LD="xcrun ld"
export STRIP="xcrun strip" export STRIP="xcrun strip"
export SDKROOT
CFLAGS="-isysroot ${SDKROOT} -arch ${ARCH} -miphoneos-version-min=${SDK_MIN} ${OPTIM}" CFLAGS="-isysroot ${SDKROOT} -arch ${ARCH} -miphoneos-version-min=${SDK_MIN} ${OPTIM}"
if [ "$ARCH" = "armv7" -o "$ARCH" = "armv7s" ]; then if [ "$ARCH" = "armv7" -o "$ARCH" = "armv7s" ]; then
CFLAGS+=" -mcpu=cortex-a8" CFLAGS+=" -mcpu=cortex-a8"
...@@ -157,11 +156,7 @@ if [ "$PLATFORM" = "Simulator" ]; then ...@@ -157,11 +156,7 @@ if [ "$PLATFORM" = "Simulator" ]; then
export OBJCFLAGS="-fobjc-abi-version=2 -fobjc-legacy-dispatch ${OBJCFLAGS}" export OBJCFLAGS="-fobjc-abi-version=2 -fobjc-legacy-dispatch ${OBJCFLAGS}"
fi fi
if [ "$PLATFORM" = "OS" ]; then export LDFLAGS="-L${SDKROOT}/usr/lib -arch ${ARCH} -isysroot ${SDKROOT} -miphoneos-version-min=${SDK_MIN}"
export LDFLAGS="-L${SDKROOT}/usr/lib -arch ${ARCH} -isysroot ${SDKROOT} -miphoneos-version-min=${SDK_MIN}"
else
export LDFLAGS="-syslibroot=${SDKROOT}/ -arch ${ARCH} -miphoneos-version-min=${SDK_MIN}"
fi
if [ "$PLATFORM" = "OS" ]; then if [ "$PLATFORM" = "OS" ]; then
EXTRA_CFLAGS="-arch ${ARCH} ${CFLAGS}" EXTRA_CFLAGS="-arch ${ARCH} ${CFLAGS}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment