| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 ${toggle_coefficient_range_checking} | 51 ${toggle_coefficient_range_checking} |
| 52 enable decoder to check if intermediate | 52 enable decoder to check if intermediate |
| 53 transform coefficients are in valid range | 53 transform coefficients are in valid range |
| 54 ${toggle_runtime_cpu_detect} runtime cpu detection | 54 ${toggle_runtime_cpu_detect} runtime cpu detection |
| 55 ${toggle_shared} shared library support | 55 ${toggle_shared} shared library support |
| 56 ${toggle_static} static library support | 56 ${toggle_static} static library support |
| 57 ${toggle_small} favor smaller size over speed | 57 ${toggle_small} favor smaller size over speed |
| 58 ${toggle_postproc_visualizer} macro block / block level visualizers | 58 ${toggle_postproc_visualizer} macro block / block level visualizers |
| 59 ${toggle_multi_res_encoding} enable multiple-resolution encoding | 59 ${toggle_multi_res_encoding} enable multiple-resolution encoding |
| 60 ${toggle_temporal_denoising} enable temporal denoising and disable the spat
ial denoiser | 60 ${toggle_temporal_denoising} enable temporal denoising and disable the spat
ial denoiser |
| 61 ${toggle_vp9_highbitdepth} enable 10/12 bit support in VP9 | |
| 62 ${toggle_vp9_temporal_denoising} | 61 ${toggle_vp9_temporal_denoising} |
| 63 enable vp9 temporal denoising | 62 enable vp9 temporal denoising |
| 64 ${toggle_webm_io} enable input from and output to WebM container | 63 ${toggle_webm_io} enable input from and output to WebM container |
| 65 ${toggle_libyuv} enable libyuv | 64 ${toggle_libyuv} enable libyuv |
| 66 | 65 |
| 67 Codecs: | 66 Codecs: |
| 68 Codecs can be selectively enabled or disabled individually, or by family: | 67 Codecs can be selectively enabled or disabled individually, or by family: |
| 69 --disable-<codec> | 68 --disable-<codec> |
| 70 is equivalent to: | 69 is equivalent to: |
| 71 --disable-<codec>-encoder | 70 --disable-<codec>-encoder |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 all_platforms="${all_platforms} sparc-solaris-gcc" | 121 all_platforms="${all_platforms} sparc-solaris-gcc" |
| 123 all_platforms="${all_platforms} x86-android-gcc" | 122 all_platforms="${all_platforms} x86-android-gcc" |
| 124 all_platforms="${all_platforms} x86-darwin8-gcc" | 123 all_platforms="${all_platforms} x86-darwin8-gcc" |
| 125 all_platforms="${all_platforms} x86-darwin8-icc" | 124 all_platforms="${all_platforms} x86-darwin8-icc" |
| 126 all_platforms="${all_platforms} x86-darwin9-gcc" | 125 all_platforms="${all_platforms} x86-darwin9-gcc" |
| 127 all_platforms="${all_platforms} x86-darwin9-icc" | 126 all_platforms="${all_platforms} x86-darwin9-icc" |
| 128 all_platforms="${all_platforms} x86-darwin10-gcc" | 127 all_platforms="${all_platforms} x86-darwin10-gcc" |
| 129 all_platforms="${all_platforms} x86-darwin11-gcc" | 128 all_platforms="${all_platforms} x86-darwin11-gcc" |
| 130 all_platforms="${all_platforms} x86-darwin12-gcc" | 129 all_platforms="${all_platforms} x86-darwin12-gcc" |
| 131 all_platforms="${all_platforms} x86-darwin13-gcc" | 130 all_platforms="${all_platforms} x86-darwin13-gcc" |
| 131 all_platforms="${all_platforms} x86-darwin14-gcc" |
| 132 all_platforms="${all_platforms} x86-iphonesimulator-gcc" | 132 all_platforms="${all_platforms} x86-iphonesimulator-gcc" |
| 133 all_platforms="${all_platforms} x86-linux-gcc" | 133 all_platforms="${all_platforms} x86-linux-gcc" |
| 134 all_platforms="${all_platforms} x86-linux-icc" | 134 all_platforms="${all_platforms} x86-linux-icc" |
| 135 all_platforms="${all_platforms} x86-os2-gcc" | 135 all_platforms="${all_platforms} x86-os2-gcc" |
| 136 all_platforms="${all_platforms} x86-solaris-gcc" | 136 all_platforms="${all_platforms} x86-solaris-gcc" |
| 137 all_platforms="${all_platforms} x86-win32-gcc" | 137 all_platforms="${all_platforms} x86-win32-gcc" |
| 138 all_platforms="${all_platforms} x86-win32-vs7" | 138 all_platforms="${all_platforms} x86-win32-vs7" |
| 139 all_platforms="${all_platforms} x86-win32-vs8" | 139 all_platforms="${all_platforms} x86-win32-vs8" |
| 140 all_platforms="${all_platforms} x86-win32-vs9" | 140 all_platforms="${all_platforms} x86-win32-vs9" |
| 141 all_platforms="${all_platforms} x86-win32-vs10" | 141 all_platforms="${all_platforms} x86-win32-vs10" |
| 142 all_platforms="${all_platforms} x86-win32-vs11" | 142 all_platforms="${all_platforms} x86-win32-vs11" |
| 143 all_platforms="${all_platforms} x86-win32-vs12" | 143 all_platforms="${all_platforms} x86-win32-vs12" |
| 144 all_platforms="${all_platforms} x86_64-darwin9-gcc" | 144 all_platforms="${all_platforms} x86_64-darwin9-gcc" |
| 145 all_platforms="${all_platforms} x86_64-darwin10-gcc" | 145 all_platforms="${all_platforms} x86_64-darwin10-gcc" |
| 146 all_platforms="${all_platforms} x86_64-darwin11-gcc" | 146 all_platforms="${all_platforms} x86_64-darwin11-gcc" |
| 147 all_platforms="${all_platforms} x86_64-darwin12-gcc" | 147 all_platforms="${all_platforms} x86_64-darwin12-gcc" |
| 148 all_platforms="${all_platforms} x86_64-darwin13-gcc" | 148 all_platforms="${all_platforms} x86_64-darwin13-gcc" |
| 149 all_platforms="${all_platforms} x86_64-darwin14-gcc" |
| 149 all_platforms="${all_platforms} x86_64-iphonesimulator-gcc" | 150 all_platforms="${all_platforms} x86_64-iphonesimulator-gcc" |
| 150 all_platforms="${all_platforms} x86_64-linux-gcc" | 151 all_platforms="${all_platforms} x86_64-linux-gcc" |
| 151 all_platforms="${all_platforms} x86_64-linux-icc" | 152 all_platforms="${all_platforms} x86_64-linux-icc" |
| 152 all_platforms="${all_platforms} x86_64-solaris-gcc" | 153 all_platforms="${all_platforms} x86_64-solaris-gcc" |
| 153 all_platforms="${all_platforms} x86_64-win64-gcc" | 154 all_platforms="${all_platforms} x86_64-win64-gcc" |
| 154 all_platforms="${all_platforms} x86_64-win64-vs8" | 155 all_platforms="${all_platforms} x86_64-win64-vs8" |
| 155 all_platforms="${all_platforms} x86_64-win64-vs9" | 156 all_platforms="${all_platforms} x86_64-win64-vs9" |
| 156 all_platforms="${all_platforms} x86_64-win64-vs10" | 157 all_platforms="${all_platforms} x86_64-win64-vs10" |
| 157 all_platforms="${all_platforms} x86_64-win64-vs11" | 158 all_platforms="${all_platforms} x86_64-win64-vs11" |
| 158 all_platforms="${all_platforms} x86_64-win64-vs12" | 159 all_platforms="${all_platforms} x86_64-win64-vs12" |
| 159 all_platforms="${all_platforms} universal-darwin8-gcc" | 160 all_platforms="${all_platforms} universal-darwin8-gcc" |
| 160 all_platforms="${all_platforms} universal-darwin9-gcc" | 161 all_platforms="${all_platforms} universal-darwin9-gcc" |
| 161 all_platforms="${all_platforms} universal-darwin10-gcc" | 162 all_platforms="${all_platforms} universal-darwin10-gcc" |
| 162 all_platforms="${all_platforms} universal-darwin11-gcc" | 163 all_platforms="${all_platforms} universal-darwin11-gcc" |
| 163 all_platforms="${all_platforms} universal-darwin12-gcc" | 164 all_platforms="${all_platforms} universal-darwin12-gcc" |
| 164 all_platforms="${all_platforms} universal-darwin13-gcc" | 165 all_platforms="${all_platforms} universal-darwin13-gcc" |
| 166 all_platforms="${all_platforms} universal-darwin14-gcc" |
| 165 all_platforms="${all_platforms} generic-gnu" | 167 all_platforms="${all_platforms} generic-gnu" |
| 166 | 168 |
| 167 # all_targets is a list of all targets that can be configured | 169 # all_targets is a list of all targets that can be configured |
| 168 # note that these should be in dependency order for now. | 170 # note that these should be in dependency order for now. |
| 169 all_targets="libs examples docs" | 171 all_targets="libs examples docs" |
| 170 | 172 |
| 171 # all targets available are enabled, by default. | 173 # all targets available are enabled, by default. |
| 172 for t in ${all_targets}; do | 174 for t in ${all_targets}; do |
| 173 [ -f "${source_path}/${t}.mk" ] && enable_feature ${t} | 175 [ -f "${source_path}/${t}.mk" ] && enable_feature ${t} |
| 174 done | 176 done |
| (...skipping 25 matching lines...) Expand all Loading... |
| 200 | 202 |
| 201 # install everything except the sources, by default. sources will have | 203 # install everything except the sources, by default. sources will have |
| 202 # to be enabled when doing dist builds, since that's no longer a common | 204 # to be enabled when doing dist builds, since that's no longer a common |
| 203 # case. | 205 # case. |
| 204 enabled doxygen && enable_feature install_docs | 206 enabled doxygen && enable_feature install_docs |
| 205 enable_feature install_bins | 207 enable_feature install_bins |
| 206 enable_feature install_libs | 208 enable_feature install_libs |
| 207 | 209 |
| 208 enable_feature static | 210 enable_feature static |
| 209 enable_feature optimizations | 211 enable_feature optimizations |
| 212 enable_feature dependency_tracking |
| 210 enable_feature fast_unaligned #allow unaligned accesses, if supported by hw | 213 enable_feature fast_unaligned #allow unaligned accesses, if supported by hw |
| 211 enable_feature spatial_resampling | 214 enable_feature spatial_resampling |
| 212 enable_feature multithread | 215 enable_feature multithread |
| 213 enable_feature os_support | 216 enable_feature os_support |
| 214 enable_feature temporal_denoising | 217 enable_feature temporal_denoising |
| 215 | 218 |
| 216 [ -d "${source_path}/../include" ] && enable_feature alt_tree_layout | 219 [ -d "${source_path}/../include" ] && enable_feature alt_tree_layout |
| 217 for d in vp8 vp9; do | 220 for d in vp8 vp9; do |
| 218 [ -d "${source_path}/${d}" ] && disable_feature alt_tree_layout; | 221 [ -d "${source_path}/${d}" ] && disable_feature alt_tree_layout; |
| 219 done | 222 done |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 pthread_h | 280 pthread_h |
| 278 sys_mman_h | 281 sys_mman_h |
| 279 unistd_h | 282 unistd_h |
| 280 " | 283 " |
| 281 EXPERIMENT_LIST=" | 284 EXPERIMENT_LIST=" |
| 282 spatial_svc | 285 spatial_svc |
| 283 fp_mb_stats | 286 fp_mb_stats |
| 284 emulate_hardware | 287 emulate_hardware |
| 285 " | 288 " |
| 286 CONFIG_LIST=" | 289 CONFIG_LIST=" |
| 290 dependency_tracking |
| 287 external_build | 291 external_build |
| 288 install_docs | 292 install_docs |
| 289 install_bins | 293 install_bins |
| 290 install_libs | 294 install_libs |
| 291 install_srcs | 295 install_srcs |
| 292 use_x86inc | 296 use_x86inc |
| 293 debug | 297 debug |
| 294 gprof | 298 gprof |
| 295 gcov | 299 gcov |
| 296 rvct | 300 rvct |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 multi_res_encoding | 339 multi_res_encoding |
| 336 temporal_denoising | 340 temporal_denoising |
| 337 vp9_temporal_denoising | 341 vp9_temporal_denoising |
| 338 coefficient_range_checking | 342 coefficient_range_checking |
| 339 vp9_highbitdepth | 343 vp9_highbitdepth |
| 340 experimental | 344 experimental |
| 341 size_limit | 345 size_limit |
| 342 ${EXPERIMENT_LIST} | 346 ${EXPERIMENT_LIST} |
| 343 " | 347 " |
| 344 CMDLINE_SELECT=" | 348 CMDLINE_SELECT=" |
| 349 dependency_tracking |
| 345 external_build | 350 external_build |
| 346 extra_warnings | 351 extra_warnings |
| 347 werror | 352 werror |
| 348 install_docs | 353 install_docs |
| 349 install_bins | 354 install_bins |
| 350 install_libs | 355 install_libs |
| 351 install_srcs | 356 install_srcs |
| 352 debug | 357 debug |
| 353 gprof | 358 gprof |
| 354 gcov | 359 gcov |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 ## | 787 ## |
| 783 ## END APPLICATION SPECIFIC CONFIGURATION | 788 ## END APPLICATION SPECIFIC CONFIGURATION |
| 784 ## | 789 ## |
| 785 CONFIGURE_ARGS="$@" | 790 CONFIGURE_ARGS="$@" |
| 786 process "$@" | 791 process "$@" |
| 787 print_webm_license ${BUILD_PFX}vpx_config.c "/*" " */" | 792 print_webm_license ${BUILD_PFX}vpx_config.c "/*" " */" |
| 788 cat <<EOF >> ${BUILD_PFX}vpx_config.c | 793 cat <<EOF >> ${BUILD_PFX}vpx_config.c |
| 789 static const char* const cfg = "$CONFIGURE_ARGS"; | 794 static const char* const cfg = "$CONFIGURE_ARGS"; |
| 790 const char *vpx_codec_build_config(void) {return cfg;} | 795 const char *vpx_codec_build_config(void) {return cfg;} |
| 791 EOF | 796 EOF |
| OLD | NEW |