| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 ## | 2 ## |
| 3 ## configure.sh | 3 ## configure.sh |
| 4 ## | 4 ## |
| 5 ## This script is sourced by the main configure script and contains | 5 ## This script is sourced by the main configure script and contains |
| 6 ## utility functions and other common bits that aren't strictly libvpx | 6 ## utility functions and other common bits that aren't strictly libvpx |
| 7 ## related. | 7 ## related. |
| 8 ## | 8 ## |
| 9 ## This build system is based in part on the FFmpeg configure script. | 9 ## This build system is based in part on the FFmpeg configure script. |
| 10 ## | 10 ## |
| (...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1215 fi | 1215 fi |
| 1216 if [ -n "${tune_asflags}" ]; then | 1216 if [ -n "${tune_asflags}" ]; then |
| 1217 check_add_asflags ${tune_asflags}${tune_cpu} || \ | 1217 check_add_asflags ${tune_asflags}${tune_cpu} || \ |
| 1218 die "Requested CPU '${tune_cpu}' not supported by assembler" | 1218 die "Requested CPU '${tune_cpu}' not supported by assembler" |
| 1219 fi | 1219 fi |
| 1220 if [ -z "${tune_cflags}${tune_asflags}" ]; then | 1220 if [ -z "${tune_cflags}${tune_asflags}" ]; then |
| 1221 log_echo "Warning: CPU tuning not supported by this toolchain" | 1221 log_echo "Warning: CPU tuning not supported by this toolchain" |
| 1222 fi | 1222 fi |
| 1223 fi | 1223 fi |
| 1224 | 1224 |
| 1225 enabled debug && check_add_cflags -g && check_add_ldflags -g | 1225 if enabled debug; then |
| 1226 check_add_cflags -g && check_add_ldflags -g |
| 1227 else |
| 1228 check_add_cflags -DNDEBUG |
| 1229 fi |
| 1230 |
| 1226 enabled gprof && check_add_cflags -pg && check_add_ldflags -pg | 1231 enabled gprof && check_add_cflags -pg && check_add_ldflags -pg |
| 1227 enabled gcov && | 1232 enabled gcov && |
| 1228 check_add_cflags -fprofile-arcs -ftest-coverage && | 1233 check_add_cflags -fprofile-arcs -ftest-coverage && |
| 1229 check_add_ldflags -fprofile-arcs -ftest-coverage | 1234 check_add_ldflags -fprofile-arcs -ftest-coverage |
| 1230 | 1235 |
| 1231 if enabled optimizations; then | 1236 if enabled optimizations; then |
| 1232 if enabled rvct; then | 1237 if enabled rvct; then |
| 1233 enabled small && check_add_cflags -Ospace || check_add_cflags -Otime | 1238 enabled small && check_add_cflags -Ospace || check_add_cflags -Otime |
| 1234 else | 1239 else |
| 1235 enabled small && check_add_cflags -O2 || check_add_cflags -O3 | 1240 enabled small && check_add_cflags -O2 || check_add_cflags -O3 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1390 # Prepare the PWD for building. | 1395 # Prepare the PWD for building. |
| 1391 for f in ${OOT_INSTALLS}; do | 1396 for f in ${OOT_INSTALLS}; do |
| 1392 install -D "${source_path}/$f" "$f" | 1397 install -D "${source_path}/$f" "$f" |
| 1393 done | 1398 done |
| 1394 fi | 1399 fi |
| 1395 cp "${source_path}/build/make/Makefile" . | 1400 cp "${source_path}/build/make/Makefile" . |
| 1396 | 1401 |
| 1397 clean_temp_files | 1402 clean_temp_files |
| 1398 true | 1403 true |
| 1399 } | 1404 } |
| OLD | NEW |