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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 case ${toolchain} in | 383 case ${toolchain} in |
384 *-linux-rvct) | 384 *-linux-rvct) |
385 echo "ALT_LIBC := ${alt_libc}" >> config.mk | 385 echo "ALT_LIBC := ${alt_libc}" >> config.mk |
386 ;; | 386 ;; |
387 esac | 387 esac |
388 } | 388 } |
389 | 389 |
390 write_common_config_targets() { | 390 write_common_config_targets() { |
391 for t in ${all_targets}; do | 391 for t in ${all_targets}; do |
392 if enabled ${t}; then | 392 if enabled ${t}; then |
393 if enabled universal || enabled child; then | 393 if enabled child; then |
394 fwrite config.mk "ALL_TARGETS += ${t}-${toolchain}" | 394 fwrite config.mk "ALL_TARGETS += ${t}-${toolchain}" |
395 else | 395 else |
396 fwrite config.mk "ALL_TARGETS += ${t}" | 396 fwrite config.mk "ALL_TARGETS += ${t}" |
397 fi | 397 fi |
398 fi | 398 fi |
399 true; | 399 true; |
400 done | 400 done |
401 true | 401 true |
402 } | 402 } |
403 | 403 |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 *i[3456]86*) | 640 *i[3456]86*) |
641 tgt_isa=x86 | 641 tgt_isa=x86 |
642 ;; | 642 ;; |
643 *sparc*) | 643 *sparc*) |
644 tgt_isa=sparc | 644 tgt_isa=sparc |
645 ;; | 645 ;; |
646 esac | 646 esac |
647 | 647 |
648 # detect tgt_os | 648 # detect tgt_os |
649 case "$gcctarget" in | 649 case "$gcctarget" in |
650 *darwin8*) | |
651 tgt_isa=universal | |
652 tgt_os=darwin8 | |
653 ;; | |
654 *darwin9*) | |
655 tgt_isa=universal | |
656 tgt_os=darwin9 | |
657 ;; | |
658 *darwin10*) | 650 *darwin10*) |
659 tgt_isa=x86_64 | 651 tgt_isa=x86_64 |
660 tgt_os=darwin10 | 652 tgt_os=darwin10 |
661 ;; | 653 ;; |
662 *darwin11*) | 654 *darwin11*) |
663 tgt_isa=x86_64 | 655 tgt_isa=x86_64 |
664 tgt_os=darwin11 | 656 tgt_os=darwin11 |
665 ;; | 657 ;; |
666 *darwin12*) | 658 *darwin12*) |
667 tgt_isa=x86_64 | 659 tgt_isa=x86_64 |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 os2) | 1200 os2) |
1209 add_asflags -f aout | 1201 add_asflags -f aout |
1210 enabled debug && add_asflags -g | 1202 enabled debug && add_asflags -g |
1211 EXE_SFX=.exe | 1203 EXE_SFX=.exe |
1212 ;; | 1204 ;; |
1213 *) | 1205 *) |
1214 log "Warning: Unknown os $tgt_os while setting up $AS flags" | 1206 log "Warning: Unknown os $tgt_os while setting up $AS flags" |
1215 ;; | 1207 ;; |
1216 esac | 1208 esac |
1217 ;; | 1209 ;; |
1218 universal*|*-gcc|generic-gnu) | 1210 *-gcc|generic-gnu) |
1219 link_with_cc=gcc | 1211 link_with_cc=gcc |
1220 enable_feature gcc | 1212 enable_feature gcc |
1221 setup_gnu_toolchain | 1213 setup_gnu_toolchain |
1222 ;; | 1214 ;; |
1223 esac | 1215 esac |
1224 | 1216 |
1225 # Try to enable CPU specific tuning | 1217 # Try to enable CPU specific tuning |
1226 if [ -n "${tune_cpu}" ]; then | 1218 if [ -n "${tune_cpu}" ]; then |
1227 if [ -n "${tune_cflags}" ]; then | 1219 if [ -n "${tune_cflags}" ]; then |
1228 check_add_cflags ${tune_cflags}${tune_cpu} || \ | 1220 check_add_cflags ${tune_cflags}${tune_cpu} || \ |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1417 # Prepare the PWD for building. | 1409 # Prepare the PWD for building. |
1418 for f in ${OOT_INSTALLS}; do | 1410 for f in ${OOT_INSTALLS}; do |
1419 install -D "${source_path}/$f" "$f" | 1411 install -D "${source_path}/$f" "$f" |
1420 done | 1412 done |
1421 fi | 1413 fi |
1422 cp "${source_path}/build/make/Makefile" . | 1414 cp "${source_path}/build/make/Makefile" . |
1423 | 1415 |
1424 clean_temp_files | 1416 clean_temp_files |
1425 true | 1417 true |
1426 } | 1418 } |
OLD | NEW |