| Index: source/libvpx/configure
|
| diff --git a/source/libvpx/configure b/source/libvpx/configure
|
| index 98542855a3efa979ea8ad3a1b49ebe136b49b276..d3d6e67320b5f00350b38b2aee21d146d6e57fc1 100755
|
| --- a/source/libvpx/configure
|
| +++ b/source/libvpx/configure
|
| @@ -148,13 +148,6 @@ all_platforms="${all_platforms} x86_64-win64-vs9"
|
| all_platforms="${all_platforms} x86_64-win64-vs10"
|
| all_platforms="${all_platforms} x86_64-win64-vs11"
|
| all_platforms="${all_platforms} x86_64-win64-vs12"
|
| -all_platforms="${all_platforms} universal-darwin8-gcc"
|
| -all_platforms="${all_platforms} universal-darwin9-gcc"
|
| -all_platforms="${all_platforms} universal-darwin10-gcc"
|
| -all_platforms="${all_platforms} universal-darwin11-gcc"
|
| -all_platforms="${all_platforms} universal-darwin12-gcc"
|
| -all_platforms="${all_platforms} universal-darwin13-gcc"
|
| -all_platforms="${all_platforms} universal-darwin14-gcc"
|
| all_platforms="${all_platforms} generic-gnu"
|
|
|
| # all_targets is a list of all targets that can be configured
|
| @@ -191,6 +184,10 @@ if [ ${doxy_major:-0} -ge 1 ]; then
|
| [ $doxy_minor -eq 5 ] && [ $doxy_patch -ge 3 ] && enable_feature doxygen
|
| fi
|
|
|
| +# disable codecs when their source directory does not exist
|
| +[ -d "${source_path}/vp8" ] || disable_feature vp8
|
| +[ -d "${source_path}/vp9" ] || disable_feature vp9
|
| +
|
| # install everything except the sources, by default. sources will have
|
| # to be enabled when doing dist builds, since that's no longer a common
|
| # case.
|
| @@ -206,31 +203,16 @@ enable_feature multithread
|
| enable_feature os_support
|
| enable_feature temporal_denoising
|
|
|
| -[ -d "${source_path}/../include" ] && enable_feature alt_tree_layout
|
| -for d in vp8 vp9; do
|
| - [ -d "${source_path}/${d}" ] && disable_feature alt_tree_layout;
|
| -done
|
| -
|
| -if ! enabled alt_tree_layout; then
|
| -# development environment
|
| -[ -d "${source_path}/vp8" ] && CODECS="${CODECS} vp8_encoder vp8_decoder"
|
| -[ -d "${source_path}/vp9" ] && CODECS="${CODECS} vp9_encoder vp9_decoder"
|
| -else
|
| -# customer environment
|
| -[ -f "${source_path}/../include/vpx/vp8cx.h" ] && CODECS="${CODECS} vp8_encoder"
|
| -[ -f "${source_path}/../include/vpx/vp8dx.h" ] && CODECS="${CODECS} vp8_decoder"
|
| -[ -f "${source_path}/../include/vpx/vp9cx.h" ] && CODECS="${CODECS} vp9_encoder"
|
| -[ -f "${source_path}/../include/vpx/vp9dx.h" ] && CODECS="${CODECS} vp9_decoder"
|
| -[ -f "${source_path}/../include/vpx/vp8cx.h" ] || disable_feature vp8_encoder
|
| -[ -f "${source_path}/../include/vpx/vp8dx.h" ] || disable_feature vp8_decoder
|
| -[ -f "${source_path}/../include/vpx/vp9cx.h" ] || disable_feature vp9_encoder
|
| -[ -f "${source_path}/../include/vpx/vp9dx.h" ] || disable_feature vp9_decoder
|
| -
|
| -[ -f "${source_path}/../lib/*/*mt.lib" ] && soft_enable static_msvcrt
|
| -fi
|
| -
|
| -CODECS="$(echo ${CODECS} | tr ' ' '\n')"
|
| -CODEC_FAMILIES="$(for c in ${CODECS}; do echo ${c%_*}; done | sort | uniq)"
|
| +CODECS="
|
| + vp8_encoder
|
| + vp8_decoder
|
| + vp9_encoder
|
| + vp9_decoder
|
| +"
|
| +CODEC_FAMILIES="
|
| + vp8
|
| + vp9
|
| +"
|
|
|
| ARCH_LIST="
|
| arm
|
| @@ -262,7 +244,6 @@ HAVE_LIST="
|
| ${ARCH_EXT_LIST}
|
| vpx_ports
|
| stdint_h
|
| - alt_tree_layout
|
| pthread_h
|
| sys_mman_h
|
| unistd_h
|
| @@ -436,22 +417,8 @@ post_process_cmdline() {
|
|
|
| process_targets() {
|
| enabled child || write_common_config_banner
|
| - enabled universal || write_common_target_config_h ${BUILD_PFX}vpx_config.h
|
| -
|
| - # For fat binaries, call configure recursively to configure for each
|
| - # binary architecture to be included.
|
| - if enabled universal; then
|
| - # Call configure (ourselves) for each subarchitecture
|
| - for arch in $fat_bin_archs; do
|
| - BUILD_PFX=${arch}/ toolchain=${arch} $self --child $cmdline_args || exit $?
|
| - done
|
| - fi
|
| -
|
| - # The write_common_config (config.mk) logic is deferred until after the
|
| - # recursive calls to configure complete, because we want our universal
|
| - # targets to be executed last.
|
| + write_common_target_config_h ${BUILD_PFX}vpx_config.h
|
| write_common_config_targets
|
| - enabled universal && echo "FAT_ARCHS=${fat_bin_archs}" >> config.mk
|
|
|
| # Calculate the default distribution name, based on the enabled features
|
| cf=""
|
| @@ -596,24 +563,6 @@ EOF
|
| process_toolchain() {
|
| process_common_toolchain
|
|
|
| - # Handle universal binaries for this architecture
|
| - case $toolchain in
|
| - universal-darwin*)
|
| - darwin_ver=${tgt_os##darwin}
|
| -
|
| - # Tiger (10.4/darwin8) brought support for x86
|
| - if [ $darwin_ver -ge 8 ]; then
|
| - fat_bin_archs="$fat_bin_archs x86-${tgt_os}-${tgt_cc}"
|
| - fi
|
| -
|
| - # Leopard (10.5/darwin9) brought 64 bit support
|
| - if [ $darwin_ver -ge 9 ]; then
|
| - fat_bin_archs="$fat_bin_archs x86_64-${tgt_os}-${tgt_cc}"
|
| - fi
|
| - ;;
|
| - esac
|
| -
|
| -
|
| # Enable some useful compiler flags
|
| if enabled gcc; then
|
| enabled werror && check_add_cflags -Werror
|
| @@ -701,7 +650,7 @@ process_toolchain() {
|
| esac
|
|
|
| # Other toolchain specific defaults
|
| - case $toolchain in x86*|universal*) soft_enable postproc;; esac
|
| + case $toolchain in x86*) soft_enable postproc;; esac
|
|
|
| if enabled postproc_visualizer; then
|
| enabled postproc || die "postproc_visualizer requires postproc to be enabled"
|
| @@ -765,6 +714,7 @@ CONFIGURE_ARGS="$@"
|
| process "$@"
|
| print_webm_license ${BUILD_PFX}vpx_config.c "/*" " */"
|
| cat <<EOF >> ${BUILD_PFX}vpx_config.c
|
| +#include "vpx/vpx_codec.h"
|
| static const char* const cfg = "$CONFIGURE_ARGS";
|
| const char *vpx_codec_build_config(void) {return cfg;}
|
| EOF
|
|
|