| OLD | NEW | 
|---|
| 1 #!/bin/bash | 1 #!/bin/bash | 
| 2 ## | 2 ## | 
| 3 ##  configure | 3 ##  configure | 
| 4 ## | 4 ## | 
| 5 ##  This script is the front-end to the build system. It provides a similar | 5 ##  This script is the front-end to the build system. It provides a similar | 
| 6 ##  interface to standard configure scripts with some extra bits for dealing | 6 ##  interface to standard configure scripts with some extra bits for dealing | 
| 7 ##  with toolchains that differ from the standard POSIX interface and | 7 ##  with toolchains that differ from the standard POSIX interface and | 
| 8 ##  for extracting subsets of the source tree. In theory, reusable parts | 8 ##  for extracting subsets of the source tree. In theory, reusable parts | 
| 9 ##  of this script were intended to live in build/make/configure.sh, | 9 ##  of this script were intended to live in build/make/configure.sh, | 
| 10 ##  but in practice, the line is pretty blurry. | 10 ##  but in practice, the line is pretty blurry. | 
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 648         ;; | 648         ;; | 
| 649     esac | 649     esac | 
| 650 | 650 | 
| 651     # Other toolchain specific defaults | 651     # Other toolchain specific defaults | 
| 652     case $toolchain in x86*|ppc*|universal*) soft_enable postproc;; esac | 652     case $toolchain in x86*|ppc*|universal*) soft_enable postproc;; esac | 
| 653 | 653 | 
| 654     if enabled postproc_visualizer; then | 654     if enabled postproc_visualizer; then | 
| 655         enabled postproc || die "postproc_visualizer requires postproc to be ena
     bled" | 655         enabled postproc || die "postproc_visualizer requires postproc to be ena
     bled" | 
| 656     fi | 656     fi | 
| 657 | 657 | 
| 658     # Enable unit tests if we have a working C++ compiler | 658     # Enable unit tests by default if we have a working C++ compiler. | 
| 659     case "$toolchain" in | 659     case "$toolchain" in | 
| 660         *-vs*) | 660         *-vs*) | 
| 661             soft_enable unit_tests | 661             soft_enable unit_tests | 
| 662         ;; | 662         ;; | 
| 663         *-android-*) | 663         *-android-*) | 
| 664             # GTestLog must be modified to use Android logging utilities. | 664             # GTestLog must be modified to use Android logging utilities. | 
| 665         ;; | 665         ;; | 
| 666         *-darwin-*) | 666         *-darwin-*) | 
| 667             # iOS/ARM builds do not work with gtest. This does not match | 667             # iOS/ARM builds do not work with gtest. This does not match | 
| 668             # x86 targets. | 668             # x86 targets. | 
| 669         ;; | 669         ;; | 
| 670         *) | 670         *) | 
| 671             check_cxx "$@" <<EOF && soft_enable unit_tests | 671             enabled pthread_h && check_cxx "$@" <<EOF && soft_enable unit_tests | 
| 672 int z; | 672 int z; | 
| 673 EOF | 673 EOF | 
| 674         ;; | 674         ;; | 
| 675     esac | 675     esac | 
| 676 } | 676 } | 
| 677 | 677 | 
| 678 | 678 | 
| 679 ## | 679 ## | 
| 680 ## END APPLICATION SPECIFIC CONFIGURATION | 680 ## END APPLICATION SPECIFIC CONFIGURATION | 
| 681 ## | 681 ## | 
| 682 CONFIGURE_ARGS="$@" | 682 CONFIGURE_ARGS="$@" | 
| 683 process "$@" | 683 process "$@" | 
| 684 print_webm_license ${BUILD_PFX}vpx_config.c "/*" " */" | 684 print_webm_license ${BUILD_PFX}vpx_config.c "/*" " */" | 
| 685 cat <<EOF >> ${BUILD_PFX}vpx_config.c | 685 cat <<EOF >> ${BUILD_PFX}vpx_config.c | 
| 686 static const char* const cfg = "$CONFIGURE_ARGS"; | 686 static const char* const cfg = "$CONFIGURE_ARGS"; | 
| 687 const char *vpx_codec_build_config(void) {return cfg;} | 687 const char *vpx_codec_build_config(void) {return cfg;} | 
| 688 EOF | 688 EOF | 
| OLD | NEW | 
|---|