ref: 4e6c555995e22f83706a066bcb9fa7db5075d3e7
parent: b62ce36ea568d2fcefed2f4c7d1095ddb468d8e5
author: Tom Finegan <[email protected]>
date: Wed Jun 4 14:57:25 EDT 2014
Add x86-iphonesimulator-gcc target. macho32 i386 with: - -miphoneos-version-min=5.0 - -isysroot from xcrun --sdk iphonesimulator Change-Id: I6bb43eebab39a71cdb76264644eba14c22d736c2
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -774,6 +774,13 @@
add_cflags "-mmacosx-version-min=10.9"
add_ldflags "-mmacosx-version-min=10.9"
;;
+ *-iphonesimulator-*)
+ add_cflags "-miphoneos-version-min=5.0"
+ add_ldflags "-miphoneos-version-min=5.0"
+ osx_sdk_dir="$(xcrun --sdk iphonesimulator --show-sdk-path)"
+ add_cflags "-isysroot ${osx_sdk_dir}"
+ add_ldflags "-isysroot ${osx_sdk_dir}"
+ ;;
esac
# Handle Solaris variants. Solaris 10 needs -lposix4
@@ -1164,6 +1171,12 @@
# enabled icc && ! enabled pic && add_cflags -fno-pic -mdynamic-no-pic
enabled icc && ! enabled pic && add_cflags -fno-pic
;;
+ iphonesimulator)
+ add_asflags -f macho32
+ sim_arch="-arch i386"
+ add_cflags ${sim_arch}
+ add_ldflags ${sim_arch}
+ ;;
os2)
add_asflags -f aout
enabled debug && add_asflags -g
--- a/configure
+++ b/configure
@@ -120,6 +120,7 @@
all_platforms="${all_platforms} x86-darwin11-gcc"
all_platforms="${all_platforms} x86-darwin12-gcc"
all_platforms="${all_platforms} x86-darwin13-gcc"
+all_platforms="${all_platforms} x86-iphonesimulator-gcc"
all_platforms="${all_platforms} x86-linux-gcc"
all_platforms="${all_platforms} x86-linux-icc"
all_platforms="${all_platforms} x86-os2-gcc"
@@ -722,6 +723,10 @@
*-darwin-*)
# iOS/ARM builds do not work with gtest. This does not match
# x86 targets.
+ ;;
+ *-iphonesimulator-*)
+ soft_enable webm_io
+ soft_enable libyuv
;;
*-win*)
# Some mingw toolchains don't have pthread available by default.