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. |
11 ## | 11 ## |
12 ## This build system is based in part on the FFmpeg configure script. | 12 ## This build system is based in part on the FFmpeg configure script. |
13 ## | 13 ## |
14 | 14 |
15 #source_path="`dirname \"$0\"`" | 15 #source_path="`dirname \"$0\"`" |
16 source_path=${0%/*} | 16 source_path=${0%/*} |
17 . "${source_path}/build/make/configure.sh" | 17 . "${source_path}/build/make/configure.sh" |
18 | 18 |
19 show_help(){ | 19 show_help(){ |
20 show_help_pre | 20 show_help_pre |
21 cat << EOF | 21 cat << EOF |
22 Advanced options: | 22 Advanced options: |
23 ${toggle_libs} libraries | 23 ${toggle_libs} libraries |
24 ${toggle_examples} examples | 24 ${toggle_examples} examples |
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 --size-limit=WxH max size to allow in the decoder |
29 --as={yasm|nasm|auto} use specified assembler [auto, yasm preferred] | 30 --as={yasm|nasm|auto} use specified assembler [auto, yasm preferred] |
30 --sdk-path=PATH path to root of sdk (android builds only) | 31 --sdk-path=PATH path to root of sdk (android builds only) |
31 ${toggle_fast_unaligned} don't use unaligned accesses, even when | 32 ${toggle_fast_unaligned} don't use unaligned accesses, even when |
32 supported by hardware [auto] | 33 supported by hardware [auto] |
33 ${toggle_codec_srcs} in/exclude codec library source code | 34 ${toggle_codec_srcs} in/exclude codec library source code |
34 ${toggle_debug_libs} in/exclude debug version of libraries | 35 ${toggle_debug_libs} in/exclude debug version of libraries |
35 ${toggle_static_msvcrt} use static MSVCRT (VS builds only) | 36 ${toggle_static_msvcrt} use static MSVCRT (VS builds only) |
36 ${toggle_vp8} VP8 codec support | 37 ${toggle_vp8} VP8 codec support |
37 ${toggle_vp9} VP9 codec support | 38 ${toggle_vp9} VP9 codec support |
38 ${toggle_internal_stats} output of encoder internal stats for debug, if
supported (encoders) | 39 ${toggle_internal_stats} output of encoder internal stats for debug, if
supported (encoders) |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 small | 321 small |
321 postproc_visualizer | 322 postproc_visualizer |
322 os_support | 323 os_support |
323 unit_tests | 324 unit_tests |
324 webm_io | 325 webm_io |
325 libyuv | 326 libyuv |
326 decode_perf_tests | 327 decode_perf_tests |
327 multi_res_encoding | 328 multi_res_encoding |
328 temporal_denoising | 329 temporal_denoising |
329 experimental | 330 experimental |
| 331 size_limit |
330 ${EXPERIMENT_LIST} | 332 ${EXPERIMENT_LIST} |
331 " | 333 " |
332 CMDLINE_SELECT=" | 334 CMDLINE_SELECT=" |
333 external_build | 335 external_build |
334 extra_warnings | 336 extra_warnings |
335 werror | 337 werror |
336 install_docs | 338 install_docs |
337 install_bins | 339 install_bins |
338 install_libs | 340 install_libs |
339 install_srcs | 341 install_srcs |
340 debug | 342 debug |
341 gprof | 343 gprof |
342 gcov | 344 gcov |
343 pic | 345 pic |
344 use_x86inc | 346 use_x86inc |
345 optimizations | 347 optimizations |
346 ccache | 348 ccache |
347 runtime_cpu_detect | 349 runtime_cpu_detect |
348 thumb | 350 thumb |
349 | 351 |
350 libs | 352 libs |
351 examples | 353 examples |
352 docs | 354 docs |
353 libc | 355 libc |
354 as | 356 as |
| 357 size_limit |
355 fast_unaligned | 358 fast_unaligned |
356 codec_srcs | 359 codec_srcs |
357 debug_libs | 360 debug_libs |
358 | 361 |
359 dequant_tokens | 362 dequant_tokens |
360 dc_recon | 363 dc_recon |
361 postproc | 364 postproc |
362 vp9_postproc | 365 vp9_postproc |
363 multithread | 366 multithread |
364 internal_stats | 367 internal_stats |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 ## | 770 ## |
768 ## END APPLICATION SPECIFIC CONFIGURATION | 771 ## END APPLICATION SPECIFIC CONFIGURATION |
769 ## | 772 ## |
770 CONFIGURE_ARGS="$@" | 773 CONFIGURE_ARGS="$@" |
771 process "$@" | 774 process "$@" |
772 print_webm_license ${BUILD_PFX}vpx_config.c "/*" " */" | 775 print_webm_license ${BUILD_PFX}vpx_config.c "/*" " */" |
773 cat <<EOF >> ${BUILD_PFX}vpx_config.c | 776 cat <<EOF >> ${BUILD_PFX}vpx_config.c |
774 static const char* const cfg = "$CONFIGURE_ARGS"; | 777 static const char* const cfg = "$CONFIGURE_ARGS"; |
775 const char *vpx_codec_build_config(void) {return cfg;} | 778 const char *vpx_codec_build_config(void) {return cfg;} |
776 EOF | 779 EOF |
OLD | NEW |