Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: source/libvpx/build/make/configure.sh

Issue 11974002: libvpx: Pull from upstream (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/libvpx/build/make/ads2gas.pl ('k') | source/libvpx/configure » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 ARFLAGS = -rus\$(if \$(quiet),c,v) 429 ARFLAGS = -rus\$(if \$(quiet),c,v)
430 LDFLAGS = ${LDFLAGS} 430 LDFLAGS = ${LDFLAGS}
431 ASFLAGS = ${ASFLAGS} 431 ASFLAGS = ${ASFLAGS}
432 extralibs = ${extralibs} 432 extralibs = ${extralibs}
433 AS_SFX = ${AS_SFX:-.asm} 433 AS_SFX = ${AS_SFX:-.asm}
434 EXE_SFX = ${EXE_SFX} 434 EXE_SFX = ${EXE_SFX}
435 RTCD_OPTIONS = ${RTCD_OPTIONS} 435 RTCD_OPTIONS = ${RTCD_OPTIONS}
436 EOF 436 EOF
437 437
438 if enabled rvct; then cat >> $1 << EOF 438 if enabled rvct; then cat >> $1 << EOF
439 fmt_deps = sed -e 's;^__image.axf;\$\${@:.d=.o} \$\$@;' #hide 439 fmt_deps = sed -e 's;^__image.axf;\${@:.d=.o} \$@;' #hide
440 EOF 440 EOF
441 else cat >> $1 << EOF 441 else cat >> $1 << EOF
442 fmt_deps = sed -e 's;^\([a-zA-Z0-9_]*\)\.o;\$\${@:.d=.o} \$\$@;' 442 fmt_deps = sed -e 's;^\([a-zA-Z0-9_]*\)\.o;\${@:.d=.o} \$@;'
443 EOF 443 EOF
444 fi 444 fi
445 445
446 print_config_mk ARCH "${1}" ${ARCH_LIST} 446 print_config_mk ARCH "${1}" ${ARCH_LIST}
447 print_config_mk HAVE "${1}" ${HAVE_LIST} 447 print_config_mk HAVE "${1}" ${HAVE_LIST}
448 print_config_mk CONFIG "${1}" ${CONFIG_LIST} 448 print_config_mk CONFIG "${1}" ${CONFIG_LIST}
449 print_config_mk HAVE "${1}" gnu_strip 449 print_config_mk HAVE "${1}" gnu_strip
450 450
451 enabled msvs && echo "CONFIG_VS_VERSION=${vs_version}" >> "${1}" 451 enabled msvs && echo "CONFIG_VS_VERSION=${vs_version}" >> "${1}"
452 452
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 590
591 process_common_toolchain() { 591 process_common_toolchain() {
592 if [ -z "$toolchain" ]; then 592 if [ -z "$toolchain" ]; then
593 gcctarget="${CHOST:-$(gcc -dumpmachine 2> /dev/null)}" 593 gcctarget="${CHOST:-$(gcc -dumpmachine 2> /dev/null)}"
594 594
595 # detect tgt_isa 595 # detect tgt_isa
596 case "$gcctarget" in 596 case "$gcctarget" in
597 armv6*) 597 armv6*)
598 tgt_isa=armv6 598 tgt_isa=armv6
599 ;; 599 ;;
600 armv7*-hardfloat*)
601 tgt_isa=armv7
602 float_abi=hard
603 ;;
600 armv7*) 604 armv7*)
601 tgt_isa=armv7 605 tgt_isa=armv7
606 float_abi=softfp
602 ;; 607 ;;
603 armv5te*) 608 armv5te*)
604 tgt_isa=armv5te 609 tgt_isa=armv5te
605 ;; 610 ;;
606 *x86_64*|*amd64*) 611 *x86_64*|*amd64*)
607 tgt_isa=x86_64 612 tgt_isa=x86_64
608 ;; 613 ;;
609 *i[3456]86*) 614 *i[3456]86*)
610 tgt_isa=x86 615 tgt_isa=x86
611 ;; 616 ;;
(...skipping 23 matching lines...) Expand all
635 tgt_os=darwin10 640 tgt_os=darwin10
636 ;; 641 ;;
637 *darwin11*) 642 *darwin11*)
638 tgt_isa=x86_64 643 tgt_isa=x86_64
639 tgt_os=darwin11 644 tgt_os=darwin11
640 ;; 645 ;;
641 *darwin12*) 646 *darwin12*)
642 tgt_isa=x86_64 647 tgt_isa=x86_64
643 tgt_os=darwin12 648 tgt_os=darwin12
644 ;; 649 ;;
650 x86_64*mingw32*)
651 tgt_os=win64
652 ;;
645 *mingw32*|*cygwin*) 653 *mingw32*|*cygwin*)
646 [ -z "$tgt_isa" ] && tgt_isa=x86 654 [ -z "$tgt_isa" ] && tgt_isa=x86
647 tgt_os=win32 655 tgt_os=win32
648 ;; 656 ;;
649 *linux*|*bsd*) 657 *linux*|*bsd*)
650 tgt_os=linux 658 tgt_os=linux
651 ;; 659 ;;
652 *solaris2.10) 660 *solaris2.10)
653 tgt_os=solaris 661 tgt_os=solaris
654 ;; 662 ;;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 soft_enable edsp 769 soft_enable edsp
762 soft_enable fast_unaligned 770 soft_enable fast_unaligned
763 ;; 771 ;;
764 armv6) 772 armv6)
765 soft_enable media 773 soft_enable media
766 soft_enable edsp 774 soft_enable edsp
767 soft_enable fast_unaligned 775 soft_enable fast_unaligned
768 ;; 776 ;;
769 armv5te) 777 armv5te)
770 soft_enable edsp 778 soft_enable edsp
779 disable fast_unaligned
771 ;; 780 ;;
772 esac 781 esac
773 782
774 asm_conversion_cmd="cat" 783 asm_conversion_cmd="cat"
775 784
776 case ${tgt_cc} in 785 case ${tgt_cc} in
777 gcc) 786 gcc)
778 CROSS=${CROSS:-arm-none-linux-gnueabi-} 787 CROSS=${CROSS:-arm-none-linux-gnueabi-}
779 link_with_cc=gcc 788 link_with_cc=gcc
780 setup_gnu_toolchain 789 setup_gnu_toolchain
781 arch_int=${tgt_isa##armv} 790 arch_int=${tgt_isa##armv}
782 arch_int=${arch_int%%te} 791 arch_int=${arch_int%%te}
783 check_add_asflags --defsym ARCHITECTURE=${arch_int} 792 check_add_asflags --defsym ARCHITECTURE=${arch_int}
784 tune_cflags="-mtune=" 793 tune_cflags="-mtune="
785 if [ ${tgt_isa} == "armv7" ]; then 794 if [ ${tgt_isa} == "armv7" ]; then
786 check_add_cflags -march=armv7-a -mfloat-abi=softfp 795 [ -z "${float_abi}" ] && float_abi=softfp
787 check_add_asflags -march=armv7-a -mfloat-abi=softfp 796 check_add_cflags -march=armv7-a -mfloat-abi=${float_abi}
797 check_add_asflags -march=armv7-a -mfloat-abi=${float_abi}
788 798
789 if enabled neon 799 if enabled neon
790 then 800 then
791 check_add_cflags -mfpu=neon #-ftree-vectorize 801 check_add_cflags -mfpu=neon #-ftree-vectorize
792 check_add_asflags -mfpu=neon 802 check_add_asflags -mfpu=neon
793 fi 803 fi
794 804
795 if [ -z "${tune_cpu}" ]; then 805 if [ -z "${tune_cpu}" ]; then
796 tune_cpu=cortex-a8 806 tune_cpu=cortex-a8
797 fi 807 fi
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 #ifndef __ILP32__ 1004 #ifndef __ILP32__
995 #error "not x32" 1005 #error "not x32"
996 #endif 1006 #endif
997 EOF 1007 EOF
998 soft_enable runtime_cpu_detect 1008 soft_enable runtime_cpu_detect
999 soft_enable mmx 1009 soft_enable mmx
1000 soft_enable sse 1010 soft_enable sse
1001 soft_enable sse2 1011 soft_enable sse2
1002 soft_enable sse3 1012 soft_enable sse3
1003 soft_enable ssse3 1013 soft_enable ssse3
1004 soft_enable sse4_1 1014 if enabled gcc && ! disabled sse4_1 && ! check_cflags -msse4; then
1015 RTCD_OPTIONS="${RTCD_OPTIONS}--disable-sse4_1 "
1016 else
1017 soft_enable sse4_1
1018 fi
1005 1019
1006 case ${tgt_os} in 1020 case ${tgt_os} in
1007 win*) 1021 win*)
1008 enabled gcc && add_cflags -fno-common 1022 enabled gcc && add_cflags -fno-common
1009 ;; 1023 ;;
1010 solaris*) 1024 solaris*)
1011 CC=${CC:-${CROSS}gcc} 1025 CC=${CC:-${CROSS}gcc}
1012 CXX=${CXX:-${CROSS}g++} 1026 CXX=${CXX:-${CROSS}g++}
1013 LD=${LD:-${CROSS}gcc} 1027 LD=${LD:-${CROSS}gcc}
1014 CROSS=${CROSS:-g} 1028 CROSS=${CROSS:-g}
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 AS_SFX=.asm 1082 AS_SFX=.asm
1069 case ${tgt_os} in 1083 case ${tgt_os} in
1070 win32) 1084 win32)
1071 add_asflags -f win32 1085 add_asflags -f win32
1072 enabled debug && add_asflags -g cv8 1086 enabled debug && add_asflags -g cv8
1073 ;; 1087 ;;
1074 win64) 1088 win64)
1075 add_asflags -f x64 1089 add_asflags -f x64
1076 enabled debug && add_asflags -g cv8 1090 enabled debug && add_asflags -g cv8
1077 ;; 1091 ;;
1078 linux*|solaris*) 1092 linux*|solaris*|android*)
1079 add_asflags -f elf${bits} 1093 add_asflags -f elf${bits}
1080 enabled debug && [ "${AS}" = yasm ] && add_asflags -g dwarf2 1094 enabled debug && [ "${AS}" = yasm ] && add_asflags -g dwarf2
1081 enabled debug && [ "${AS}" = nasm ] && add_asflags -g 1095 enabled debug && [ "${AS}" = nasm ] && add_asflags -g
1082 [ "${AS##*/}" = nasm ] && check_asm_align 1096 [ "${AS##*/}" = nasm ] && check_asm_align
1083 ;; 1097 ;;
1084 darwin*) 1098 darwin*)
1085 add_asflags -f macho${bits} 1099 add_asflags -f macho${bits}
1086 enabled x86 && darwin_arch="-arch i386" || darwin_arch="-arch x8 6_64" 1100 enabled x86 && darwin_arch="-arch i386" || darwin_arch="-arch x8 6_64"
1087 add_cflags ${darwin_arch} 1101 add_cflags ${darwin_arch}
1088 add_ldflags ${darwin_arch} 1102 add_ldflags ${darwin_arch}
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 # Prepare the PWD for building. 1279 # Prepare the PWD for building.
1266 for f in ${OOT_INSTALLS}; do 1280 for f in ${OOT_INSTALLS}; do
1267 install -D ${source_path}/$f $f 1281 install -D ${source_path}/$f $f
1268 done 1282 done
1269 fi 1283 fi
1270 cp ${source_path}/build/make/Makefile . 1284 cp ${source_path}/build/make/Makefile .
1271 1285
1272 clean_temp_files 1286 clean_temp_files
1273 true 1287 true
1274 } 1288 }
OLDNEW
« no previous file with comments | « source/libvpx/build/make/ads2gas.pl ('k') | source/libvpx/configure » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698