| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 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 14 matching lines...) Expand all Loading... |
| 25 ${toggle_docs} documentation | 25 ${toggle_docs} documentation |
| 26 ${toggle_unit_tests} unit tests | 26 ${toggle_unit_tests} unit tests |
| 27 ${toggle_decode_perf_tests} build decoder perf tests with unit tests | 27 ${toggle_decode_perf_tests} build decoder perf tests with unit tests |
| 28 --libc=PATH path to alternate libc | 28 --libc=PATH path to alternate libc |
| 29 --as={yasm|nasm|auto} use specified assembler [auto, yasm preferred] | 29 --as={yasm|nasm|auto} use specified assembler [auto, yasm preferred] |
| 30 --sdk-path=PATH path to root of sdk (android builds only) | 30 --sdk-path=PATH path to root of sdk (android builds only) |
| 31 ${toggle_fast_unaligned} don't use unaligned accesses, even when | 31 ${toggle_fast_unaligned} don't use unaligned accesses, even when |
| 32 supported by hardware [auto] | 32 supported by hardware [auto] |
| 33 ${toggle_codec_srcs} in/exclude codec library source code | 33 ${toggle_codec_srcs} in/exclude codec library source code |
| 34 ${toggle_debug_libs} in/exclude debug version of libraries | 34 ${toggle_debug_libs} in/exclude debug version of libraries |
| 35 ${toggle_md5} support for output of checksum data | |
| 36 ${toggle_static_msvcrt} use static MSVCRT (VS builds only) | 35 ${toggle_static_msvcrt} use static MSVCRT (VS builds only) |
| 37 ${toggle_vp8} VP8 codec support | 36 ${toggle_vp8} VP8 codec support |
| 38 ${toggle_vp9} VP9 codec support | 37 ${toggle_vp9} VP9 codec support |
| 39 ${toggle_internal_stats} output of encoder internal stats for debug, if
supported (encoders) | 38 ${toggle_internal_stats} output of encoder internal stats for debug, if
supported (encoders) |
| 40 ${toggle_mem_tracker} track memory usage | 39 ${toggle_mem_tracker} track memory usage |
| 41 ${toggle_postproc} postprocessing | 40 ${toggle_postproc} postprocessing |
| 42 ${toggle_vp9_postproc} vp9 specific postprocessing | 41 ${toggle_vp9_postproc} vp9 specific postprocessing |
| 43 ${toggle_multithread} multithreaded encoding and decoding | 42 ${toggle_multithread} multithreaded encoding and decoding |
| 44 ${toggle_spatial_resampling} spatial sampling (scaling) support | 43 ${toggle_spatial_resampling} spatial sampling (scaling) support |
| 45 ${toggle_realtime_only} enable this option while building for real-tim
e encoding | 44 ${toggle_realtime_only} enable this option while building for real-tim
e encoding |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 # install everything except the sources, by default. sources will have | 176 # install everything except the sources, by default. sources will have |
| 178 # to be enabled when doing dist builds, since that's no longer a common | 177 # to be enabled when doing dist builds, since that's no longer a common |
| 179 # case. | 178 # case. |
| 180 enabled doxygen && php -v >/dev/null 2>&1 && enable_feature install_docs | 179 enabled doxygen && php -v >/dev/null 2>&1 && enable_feature install_docs |
| 181 enable_feature install_bins | 180 enable_feature install_bins |
| 182 enable_feature install_libs | 181 enable_feature install_libs |
| 183 | 182 |
| 184 enable_feature static | 183 enable_feature static |
| 185 enable_feature optimizations | 184 enable_feature optimizations |
| 186 enable_feature fast_unaligned #allow unaligned accesses, if supported by hw | 185 enable_feature fast_unaligned #allow unaligned accesses, if supported by hw |
| 187 enable_feature md5 | |
| 188 enable_feature spatial_resampling | 186 enable_feature spatial_resampling |
| 189 enable_feature multithread | 187 enable_feature multithread |
| 190 enable_feature os_support | 188 enable_feature os_support |
| 191 enable_feature temporal_denoising | 189 enable_feature temporal_denoising |
| 192 | 190 |
| 193 [ -d ${source_path}/../include ] && enable_feature alt_tree_layout | 191 [ -d ${source_path}/../include ] && enable_feature alt_tree_layout |
| 194 for d in vp8 vp9; do | 192 for d in vp8 vp9; do |
| 195 [ -d ${source_path}/${d} ] && disable_feature alt_tree_layout; | 193 [ -d ${source_path}/${d} ] && disable_feature alt_tree_layout; |
| 196 done | 194 done |
| 197 | 195 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 msvs | 270 msvs |
| 273 pic | 271 pic |
| 274 big_endian | 272 big_endian |
| 275 | 273 |
| 276 codec_srcs | 274 codec_srcs |
| 277 debug_libs | 275 debug_libs |
| 278 fast_unaligned | 276 fast_unaligned |
| 279 mem_manager | 277 mem_manager |
| 280 mem_tracker | 278 mem_tracker |
| 281 mem_checks | 279 mem_checks |
| 282 md5 | |
| 283 | 280 |
| 284 dequant_tokens | 281 dequant_tokens |
| 285 dc_recon | 282 dc_recon |
| 286 runtime_cpu_detect | 283 runtime_cpu_detect |
| 287 postproc | 284 postproc |
| 288 vp9_postproc | 285 vp9_postproc |
| 289 multithread | 286 multithread |
| 290 internal_stats | 287 internal_stats |
| 291 ${CODECS} | 288 ${CODECS} |
| 292 ${CODEC_FAMILIES} | 289 ${CODEC_FAMILIES} |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 thumb | 326 thumb |
| 330 | 327 |
| 331 libs | 328 libs |
| 332 examples | 329 examples |
| 333 docs | 330 docs |
| 334 libc | 331 libc |
| 335 as | 332 as |
| 336 fast_unaligned | 333 fast_unaligned |
| 337 codec_srcs | 334 codec_srcs |
| 338 debug_libs | 335 debug_libs |
| 339 md5 | |
| 340 | 336 |
| 341 dequant_tokens | 337 dequant_tokens |
| 342 dc_recon | 338 dc_recon |
| 343 postproc | 339 postproc |
| 344 vp9_postproc | 340 vp9_postproc |
| 345 multithread | 341 multithread |
| 346 internal_stats | 342 internal_stats |
| 347 ${CODECS} | 343 ${CODECS} |
| 348 ${CODEC_FAMILIES} | 344 ${CODEC_FAMILIES} |
| 349 static_msvcrt | 345 static_msvcrt |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 ## | 721 ## |
| 726 ## END APPLICATION SPECIFIC CONFIGURATION | 722 ## END APPLICATION SPECIFIC CONFIGURATION |
| 727 ## | 723 ## |
| 728 CONFIGURE_ARGS="$@" | 724 CONFIGURE_ARGS="$@" |
| 729 process "$@" | 725 process "$@" |
| 730 print_webm_license ${BUILD_PFX}vpx_config.c "/*" " */" | 726 print_webm_license ${BUILD_PFX}vpx_config.c "/*" " */" |
| 731 cat <<EOF >> ${BUILD_PFX}vpx_config.c | 727 cat <<EOF >> ${BUILD_PFX}vpx_config.c |
| 732 static const char* const cfg = "$CONFIGURE_ARGS"; | 728 static const char* const cfg = "$CONFIGURE_ARGS"; |
| 733 const char *vpx_codec_build_config(void) {return cfg;} | 729 const char *vpx_codec_build_config(void) {return cfg;} |
| 734 EOF | 730 EOF |
| OLD | NEW |