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

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

Issue 394353005: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « source/config/win/x64/vpx_config.asm ('k') | source/libvpx/build/make/iosbuild.sh » ('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 ## configure.sh 3 ## configure.sh
4 ## 4 ##
5 ## This script is sourced by the main configure script and contains 5 ## This script is sourced by the main configure script and contains
6 ## utility functions and other common bits that aren't strictly libvpx 6 ## utility functions and other common bits that aren't strictly libvpx
7 ## related. 7 ## related.
8 ## 8 ##
9 ## This build system is based in part on the FFmpeg configure script. 9 ## This build system is based in part on the FFmpeg configure script.
10 ## 10 ##
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 cat >> ${TMP_H} << EOF 478 cat >> ${TMP_H} << EOF
479 /* This file automatically generated by configure. Do not edit! */ 479 /* This file automatically generated by configure. Do not edit! */
480 #ifndef VPX_CONFIG_H 480 #ifndef VPX_CONFIG_H
481 #define VPX_CONFIG_H 481 #define VPX_CONFIG_H
482 #define RESTRICT ${RESTRICT} 482 #define RESTRICT ${RESTRICT}
483 #define INLINE ${INLINE} 483 #define INLINE ${INLINE}
484 EOF 484 EOF
485 print_config_h ARCH "${TMP_H}" ${ARCH_LIST} 485 print_config_h ARCH "${TMP_H}" ${ARCH_LIST}
486 print_config_h HAVE "${TMP_H}" ${HAVE_LIST} 486 print_config_h HAVE "${TMP_H}" ${HAVE_LIST}
487 print_config_h CONFIG "${TMP_H}" ${CONFIG_LIST} 487 print_config_h CONFIG "${TMP_H}" ${CONFIG_LIST}
488 print_config_vars_h "${TMP_H}" ${VAR_LIST}
488 echo "#endif /* VPX_CONFIG_H */" >> ${TMP_H} 489 echo "#endif /* VPX_CONFIG_H */" >> ${TMP_H}
489 mkdir -p `dirname "$1"` 490 mkdir -p `dirname "$1"`
490 cmp "$1" ${TMP_H} >/dev/null 2>&1 || mv ${TMP_H} "$1" 491 cmp "$1" ${TMP_H} >/dev/null 2>&1 || mv ${TMP_H} "$1"
491 } 492 }
492 493
493 process_common_cmdline() { 494 process_common_cmdline() {
494 for opt in "$@"; do 495 for opt in "$@"; do
495 optval="${opt#*=}" 496 optval="${opt#*=}"
496 case "$opt" in 497 case "$opt" in
497 --child) enable_feature child 498 --child) enable_feature child
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 --libc=*) 544 --libc=*)
544 [ -d "${optval}" ] || die "Not a directory: ${optval}" 545 [ -d "${optval}" ] || die "Not a directory: ${optval}"
545 disable_feature builtin_libc 546 disable_feature builtin_libc
546 alt_libc="${optval}" 547 alt_libc="${optval}"
547 ;; 548 ;;
548 --as=*) 549 --as=*)
549 [ "${optval}" = yasm -o "${optval}" = nasm -o "${optval}" = auto ] \ 550 [ "${optval}" = yasm -o "${optval}" = nasm -o "${optval}" = auto ] \
550 || die "Must be yasm, nasm or auto: ${optval}" 551 || die "Must be yasm, nasm or auto: ${optval}"
551 alt_as="${optval}" 552 alt_as="${optval}"
552 ;; 553 ;;
554 --size-limit=*)
555 w="${optval%%x*}"
556 h="${optval##*x}"
557 VAR_LIST="DECODE_WIDTH_LIMIT ${w} DECODE_HEIGHT_LIMIT ${h}"
558 [ ${w} -gt 0 -a ${h} -gt 0 ] || die "Invalid size-limit: too small."
559 [ ${w} -lt 65536 -a ${h} -lt 65536 ] \
560 || die "Invalid size-limit: too big."
561 enable_feature size_limit
562 ;;
553 --prefix=*) 563 --prefix=*)
554 prefix="${optval}" 564 prefix="${optval}"
555 ;; 565 ;;
556 --libdir=*) 566 --libdir=*)
557 libdir="${optval}" 567 libdir="${optval}"
558 ;; 568 ;;
559 --sdk-path=*) 569 --sdk-path=*)
560 [ -d "${optval}" ] || die "Not a directory: ${optval}" 570 [ -d "${optval}" ] || die "Not a directory: ${optval}"
561 sdk_path="${optval}" 571 sdk_path="${optval}"
562 ;; 572 ;;
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 for cfg; do 1327 for cfg; do
1318 upname="`toupper $cfg`" 1328 upname="`toupper $cfg`"
1319 if enabled $cfg; then 1329 if enabled $cfg; then
1320 echo "#define ${prefix}_${upname} 1" >> $header 1330 echo "#define ${prefix}_${upname} 1" >> $header
1321 else 1331 else
1322 echo "#define ${prefix}_${upname} 0" >> $header 1332 echo "#define ${prefix}_${upname} 0" >> $header
1323 fi 1333 fi
1324 done 1334 done
1325 } 1335 }
1326 1336
1337 print_config_vars_h() {
1338 local header=$1
1339 shift
1340 while [ $# -gt 0 ]; do
1341 upname="`toupper $1`"
1342 echo "#define ${upname} $2" >> $header
1343 shift 2
1344 done
1345 }
1346
1327 print_webm_license() { 1347 print_webm_license() {
1328 local destination=$1 1348 local destination=$1
1329 local prefix="$2" 1349 local prefix="$2"
1330 local suffix="$3" 1350 local suffix="$3"
1331 shift 3 1351 shift 3
1332 cat <<EOF > ${destination} 1352 cat <<EOF > ${destination}
1333 ${prefix} Copyright (c) 2011 The WebM project authors. All Rights Reserved.${suf fix} 1353 ${prefix} Copyright (c) 2011 The WebM project authors. All Rights Reserved.${suf fix}
1334 ${prefix} ${suffix} 1354 ${prefix} ${suffix}
1335 ${prefix} Use of this source code is governed by a BSD-style license${suffix} 1355 ${prefix} Use of this source code is governed by a BSD-style license${suffix}
1336 ${prefix} that can be found in the LICENSE file in the root of the source${suffi x} 1356 ${prefix} that can be found in the LICENSE file in the root of the source${suffi x}
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 # Prepare the PWD for building. 1390 # Prepare the PWD for building.
1371 for f in ${OOT_INSTALLS}; do 1391 for f in ${OOT_INSTALLS}; do
1372 install -D "${source_path}/$f" "$f" 1392 install -D "${source_path}/$f" "$f"
1373 done 1393 done
1374 fi 1394 fi
1375 cp "${source_path}/build/make/Makefile" . 1395 cp "${source_path}/build/make/Makefile" .
1376 1396
1377 clean_temp_files 1397 clean_temp_files
1378 true 1398 true
1379 } 1399 }
OLDNEW
« no previous file with comments | « source/config/win/x64/vpx_config.asm ('k') | source/libvpx/build/make/iosbuild.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698