ref: 6d38ad414623d49ff542230a09c243e4f2e4cf5a
parent: eacc3b4ccfa7541ee69bb37b7e72c0bbcf60c126
author: Jerome Jiang <jianj@google.com>
date: Thu Jan 26 12:53:00 EST 2017
Add macOS Sierra support in configure BUG=webm:1367 Change-Id: I3000b6d9f93ec49ca86d08151348d33d86bf0034
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-README - 9 January 2017
+README - 26 January 2017
Welcome to the WebM VP8/VP9 Codec SDK!
@@ -74,6 +74,7 @@
x86-darwin13-gcc
x86-darwin14-gcc
x86-darwin15-gcc
+ x86-darwin16-gcc
x86-iphonesimulator-gcc
x86-linux-gcc
x86-linux-icc
@@ -92,6 +93,7 @@
x86_64-darwin13-gcc
x86_64-darwin14-gcc
x86_64-darwin15-gcc
+ x86_64-darwin16-gcc
x86_64-iphonesimulator-gcc
x86_64-linux-gcc
x86_64-linux-icc
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -725,6 +725,10 @@
tgt_isa=x86_64
tgt_os=darwin15
;;
+ *darwin16*)
+ tgt_isa=x86_64
+ tgt_os=darwin16
+ ;;
x86_64*mingw32*)
tgt_os=win64
;;
@@ -845,6 +849,10 @@
*-darwin15-*)
add_cflags "-mmacosx-version-min=10.11"
add_ldflags "-mmacosx-version-min=10.11"
+ ;;
+ *-darwin16-*)
+ add_cflags "-mmacosx-version-min=10.12"
+ add_ldflags "-mmacosx-version-min=10.12"
;;
*-iphonesimulator-*)
add_cflags "-miphoneos-version-min=${IOS_VERSION_MIN}"
--- a/build/make/iosbuild.sh
+++ b/build/make/iosbuild.sh
@@ -35,8 +35,8 @@
armv7s-darwin-gcc"
SIM_TARGETS="x86-iphonesimulator-gcc
x86_64-iphonesimulator-gcc"
-OSX_TARGETS="x86-darwin15-gcc
- x86_64-darwin15-gcc"
+OSX_TARGETS="x86-darwin16-gcc
+ x86_64-darwin16-gcc"
TARGETS="${ARM_TARGETS} ${SIM_TARGETS}"
# Configures for the target specified by $1, and invokes make with the dist
@@ -271,7 +271,7 @@
--help: Display this message and exit.
--enable-shared: Build a dynamic framework for use on iOS 8 or later.
--extra-configure-args <args>: Extra args to pass when configuring libvpx.
- --macosx: Uses darwin15 targets instead of iphonesimulator targets for x86
+ --macosx: Uses darwin16 targets instead of iphonesimulator targets for x86
and x86_64. Allows linking to framework when builds target MacOSX
instead of iOS.
--preserve-build-output: Do not delete the build directory.
--- a/configure
+++ b/configure
@@ -125,6 +125,7 @@
all_platforms="${all_platforms} x86-darwin13-gcc"
all_platforms="${all_platforms} x86-darwin14-gcc"
all_platforms="${all_platforms} x86-darwin15-gcc"
+all_platforms="${all_platforms} x86-darwin16-gcc"
all_platforms="${all_platforms} x86-iphonesimulator-gcc"
all_platforms="${all_platforms} x86-linux-gcc"
all_platforms="${all_platforms} x86-linux-icc"
@@ -143,6 +144,7 @@
all_platforms="${all_platforms} x86_64-darwin13-gcc"
all_platforms="${all_platforms} x86_64-darwin14-gcc"
all_platforms="${all_platforms} x86_64-darwin15-gcc"
+all_platforms="${all_platforms} x86_64-darwin16-gcc"
all_platforms="${all_platforms} x86_64-iphonesimulator-gcc"
all_platforms="${all_platforms} x86_64-linux-gcc"
all_platforms="${all_platforms} x86_64-linux-icc"