Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: source/libvpx/build/make/iosbuild.sh

Issue 897063002: Revert "libvpx: Pull from upstream" (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/libvpx/build/make/configure.sh ('k') | source/libvpx/configure » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 ## 2 ##
3 ## Copyright (c) 2014 The WebM project authors. All Rights Reserved. 3 ## Copyright (c) 2014 The WebM project authors. All Rights Reserved.
4 ## 4 ##
5 ## Use of this source code is governed by a BSD-style license 5 ## Use of this source code is governed by a BSD-style license
6 ## that can be found in the LICENSE file in the root of the source 6 ## that can be found in the LICENSE file in the root of the source
7 ## tree. An additional intellectual property rights grant can be found 7 ## tree. An additional intellectual property rights grant can be found
8 ## in the file PATENTS. All contributing project authors may 8 ## in the file PATENTS. All contributing project authors may
9 ## be found in the AUTHORS file in the root of the source tree. 9 ## be found in the AUTHORS file in the root of the source tree.
10 ## 10 ##
11 ## 11 ##
12 ## This script generates 'VPX.framework'. An iOS app can encode and decode VPx 12 ## This script generates 'VPX.framework'. An iOS app can encode and decode VPx
13 ## video by including 'VPX.framework'. 13 ## video by including 'VPX.framework'.
14 ## 14 ##
15 ## Run iosbuild.sh to create 'VPX.framework' in the current directory. 15 ## Run iosbuild.sh to create 'VPX.framework' in the current directory.
16 ## 16 ##
17 set -e 17 set -e
18 devnull='> /dev/null 2>&1' 18 devnull='> /dev/null 2>&1'
19 19
20 BUILD_ROOT="_iosbuild" 20 BUILD_ROOT="_iosbuild"
21 CONFIGURE_ARGS="--disable-docs
22 --disable-examples
23 --disable-libyuv
24 --disable-unit-tests"
25 DIST_DIR="_dist" 21 DIST_DIR="_dist"
26 FRAMEWORK_DIR="VPX.framework" 22 FRAMEWORK_DIR="VPX.framework"
27 HEADER_DIR="${FRAMEWORK_DIR}/Headers/vpx" 23 HEADER_DIR="${FRAMEWORK_DIR}/Headers/vpx"
28 MAKE_JOBS=1 24 MAKE_JOBS=1
29 SCRIPT_DIR=$(dirname "$0") 25 SCRIPT_DIR=$(dirname "$0")
30 LIBVPX_SOURCE_DIR=$(cd ${SCRIPT_DIR}/../..; pwd) 26 LIBVPX_SOURCE_DIR=$(cd ${SCRIPT_DIR}/../..; pwd)
31 LIPO=$(xcrun -sdk iphoneos${SDK} -find lipo) 27 LIPO=$(xcrun -sdk iphoneos${SDK} -find lipo)
32 ORIG_PWD="$(pwd)" 28 ORIG_PWD="$(pwd)"
33 TARGETS="arm64-darwin-gcc 29 TARGETS="arm64-darwin-gcc
34 armv7-darwin-gcc 30 armv7-darwin-gcc
35 armv7s-darwin-gcc 31 armv7s-darwin-gcc
36 x86-iphonesimulator-gcc 32 x86-iphonesimulator-gcc
37 x86_64-iphonesimulator-gcc" 33 x86_64-iphonesimulator-gcc"
38 34
39 # Configures for the target specified by $1, and invokes make with the dist 35 # Configures for the target specified by $1, and invokes make with the dist
40 # target using $DIST_DIR as the distribution output directory. 36 # target using $DIST_DIR as the distribution output directory.
41 build_target() { 37 build_target() {
42 local target="$1" 38 local target="$1"
43 local old_pwd="$(pwd)" 39 local old_pwd="$(pwd)"
44 40
45 vlog "***Building target: ${target}***" 41 vlog "***Building target: ${target}***"
46 42
47 mkdir "${target}" 43 mkdir "${target}"
48 cd "${target}" 44 cd "${target}"
49 eval "${LIBVPX_SOURCE_DIR}/configure" --target="${target}" \ 45 eval "${LIBVPX_SOURCE_DIR}/configure" --target="${target}" \
50 ${CONFIGURE_ARGS} ${EXTRA_CONFIGURE_ARGS} ${devnull} 46 --disable-docs ${EXTRA_CONFIGURE_ARGS} ${devnull}
51 export DIST_DIR 47 export DIST_DIR
52 eval make -j ${MAKE_JOBS} dist ${devnull} 48 eval make -j ${MAKE_JOBS} dist ${devnull}
53 cd "${old_pwd}" 49 cd "${old_pwd}"
54 50
55 vlog "***Done building target: ${target}***" 51 vlog "***Done building target: ${target}***"
56 } 52 }
57 53
58 # Returns the preprocessor symbol for the target specified by $1. 54 # Returns the preprocessor symbol for the target specified by $1.
59 target_to_preproc_symbol() { 55 target_to_preproc_symbol() {
60 target="$1" 56 target="$1"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 exit 1 245 exit 1
250 ;; 246 ;;
251 esac 247 esac
252 shift 248 shift
253 done 249 done
254 250
255 if [ "${VERBOSE}" = "yes" ]; then 251 if [ "${VERBOSE}" = "yes" ]; then
256 cat << EOF 252 cat << EOF
257 BUILD_ROOT=${BUILD_ROOT} 253 BUILD_ROOT=${BUILD_ROOT}
258 DIST_DIR=${DIST_DIR} 254 DIST_DIR=${DIST_DIR}
259 CONFIGURE_ARGS=${CONFIGURE_ARGS}
260 EXTRA_CONFIGURE_ARGS=${EXTRA_CONFIGURE_ARGS} 255 EXTRA_CONFIGURE_ARGS=${EXTRA_CONFIGURE_ARGS}
261 FRAMEWORK_DIR=${FRAMEWORK_DIR} 256 FRAMEWORK_DIR=${FRAMEWORK_DIR}
262 HEADER_DIR=${HEADER_DIR} 257 HEADER_DIR=${HEADER_DIR}
263 MAKE_JOBS=${MAKE_JOBS} 258 MAKE_JOBS=${MAKE_JOBS}
264 PRESERVE_BUILD_OUTPUT=${PRESERVE_BUILD_OUTPUT} 259 PRESERVE_BUILD_OUTPUT=${PRESERVE_BUILD_OUTPUT}
265 LIBVPX_SOURCE_DIR=${LIBVPX_SOURCE_DIR} 260 LIBVPX_SOURCE_DIR=${LIBVPX_SOURCE_DIR}
266 LIPO=${LIPO} 261 LIPO=${LIPO}
267 ORIG_PWD=${ORIG_PWD} 262 ORIG_PWD=${ORIG_PWD}
268 TARGETS="${TARGETS}" 263 TARGETS="${TARGETS}"
269 EOF 264 EOF
270 fi 265 fi
271 266
272 build_framework "${TARGETS}" 267 build_framework "${TARGETS}"
273 echo "Successfully built '${FRAMEWORK_DIR}' for:" 268 echo "Successfully built '${FRAMEWORK_DIR}' for:"
274 echo " ${TARGETS}" 269 echo " ${TARGETS}"
OLDNEW
« no previous file with comments | « source/libvpx/build/make/configure.sh ('k') | source/libvpx/configure » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698