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

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

Issue 3417017: Update libvpx sources to v0.9.2-35-ga8a38bc. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 10 years, 3 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/armlink_adapter.sh ('k') | source/libvpx/build/make/gen_asm_deps.sh » ('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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 AR=${AR:-${CROSS}ar} 488 AR=${AR:-${CROSS}ar}
489 LD=${LD:-${CROSS}${link_with_cc:-ld}} 489 LD=${LD:-${CROSS}${link_with_cc:-ld}}
490 AS=${AS:-${CROSS}as} 490 AS=${AS:-${CROSS}as}
491 STRIP=${STRIP:-${CROSS}strip} 491 STRIP=${STRIP:-${CROSS}strip}
492 NM=${NM:-${CROSS}nm} 492 NM=${NM:-${CROSS}nm}
493 AS_SFX=.s 493 AS_SFX=.s
494 } 494 }
495 495
496 process_common_toolchain() { 496 process_common_toolchain() {
497 if [ -z "$toolchain" ]; then 497 if [ -z "$toolchain" ]; then
498 » gcctarget="$(gcc -dumpmachine 2> /dev/null)" 498 gcctarget="$(gcc -dumpmachine 2> /dev/null)"
499 499
500 # detect tgt_isa 500 # detect tgt_isa
501 case "$gcctarget" in 501 case "$gcctarget" in
502 *x86_64*|*amd64*) 502 *x86_64*|*amd64*)
503 tgt_isa=x86_64 503 tgt_isa=x86_64
504 ;; 504 ;;
505 *i[3456]86*) 505 *i[3456]86*)
506 tgt_isa=x86 506 tgt_isa=x86
507 ;; 507 ;;
508 *powerpc64*)
509 tgt_isa=ppc64
510 ;;
511 *powerpc*)
512 tgt_isa=ppc32
513 ;;
508 esac 514 esac
509 515
510 # detect tgt_os 516 # detect tgt_os
511 case "$gcctarget" in 517 case "$gcctarget" in
512 *darwin8*) 518 *darwin8*)
513 tgt_isa=universal 519 tgt_isa=universal
514 tgt_os=darwin8 520 tgt_os=darwin8
515 ;; 521 ;;
516 *darwin9*) 522 *darwin9*)
517 tgt_isa=universal 523 tgt_isa=universal
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 check_add_cflags -march=${tgt_isa} 754 check_add_cflags -march=${tgt_isa}
749 check_add_asflags -march=${tgt_isa} 755 check_add_asflags -march=${tgt_isa}
750 check_add_asflags -KPIC 756 check_add_asflags -KPIC
751 ;; 757 ;;
752 ppc*) 758 ppc*)
753 enable ppc 759 enable ppc
754 bits=${tgt_isa##ppc} 760 bits=${tgt_isa##ppc}
755 link_with_cc=gcc 761 link_with_cc=gcc
756 setup_gnu_toolchain 762 setup_gnu_toolchain
757 add_asflags -force_cpusubtype_ALL -I"\$(dir \$<)darwin" 763 add_asflags -force_cpusubtype_ALL -I"\$(dir \$<)darwin"
758 add_cflags -maltivec -faltivec
759 soft_enable altivec 764 soft_enable altivec
765 enabled altivec && add_cflags -maltivec
760 766
761 case "$tgt_os" in 767 case "$tgt_os" in
762 linux*) 768 linux*)
763 add_asflags -maltivec -mregnames -I"\$(dir \$<)linux" 769 add_asflags -maltivec -mregnames -I"\$(dir \$<)linux"
764 ;; 770 ;;
765 darwin*) 771 darwin*)
766 darwin_arch="-arch ppc" 772 darwin_arch="-arch ppc"
767 enabled ppc64 && darwin_arch="${darwin_arch}64" 773 enabled ppc64 && darwin_arch="${darwin_arch}64"
768 add_cflags ${darwin_arch} -m${bits} -fasm-blocks 774 add_cflags ${darwin_arch} -m${bits} -fasm-blocks
769 add_asflags ${darwin_arch} -force_cpusubtype_ALL -I"\$(dir \$<)darwi n" 775 add_asflags ${darwin_arch} -force_cpusubtype_ALL -I"\$(dir \$<)darwi n"
770 add_ldflags ${darwin_arch} -m${bits} 776 add_ldflags ${darwin_arch} -m${bits}
777 enabled altivec && add_cflags -faltivec
771 ;; 778 ;;
772 esac 779 esac
773 ;; 780 ;;
774 x86*) 781 x86*)
775 bits=32 782 bits=32
776 enabled x86_64 && bits=64 783 enabled x86_64 && bits=64
777 soft_enable runtime_cpu_detect 784 soft_enable runtime_cpu_detect
778 soft_enable mmx 785 soft_enable mmx
779 soft_enable sse 786 soft_enable sse
780 soft_enable sse2 787 soft_enable sse2
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 # Almost every platform uses pthreads. 902 # Almost every platform uses pthreads.
896 if enabled multithread; then 903 if enabled multithread; then
897 case ${toolchain} in 904 case ${toolchain} in
898 *-win*);; 905 *-win*);;
899 *) check_header pthread.h && add_extralibs -lpthread 906 *) check_header pthread.h && add_extralibs -lpthread
900 esac 907 esac
901 fi 908 fi
902 909
903 # glibc needs these 910 # glibc needs these
904 if enabled linux; then 911 if enabled linux; then
905 » add_cflags -D_LARGEFILE_SOURCE 912 add_cflags -D_LARGEFILE_SOURCE
906 » add_cflags -D_FILE_OFFSET_BITS=64 913 add_cflags -D_FILE_OFFSET_BITS=64
907 fi 914 fi
908 } 915 }
909 916
910 process_toolchain() { 917 process_toolchain() {
911 process_common_toolchain 918 process_common_toolchain
912 } 919 }
913 920
914 print_config_mk() { 921 print_config_mk() {
915 local prefix=$1 922 local prefix=$1
916 local makefile=$2 923 local makefile=$2
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 # Prepare the PWD for building. 974 # Prepare the PWD for building.
968 for f in ${OOT_INSTALLS}; do 975 for f in ${OOT_INSTALLS}; do
969 install -D ${source_path}/$f $f 976 install -D ${source_path}/$f $f
970 done 977 done
971 fi 978 fi
972 cp ${source_path}/build/make/Makefile . 979 cp ${source_path}/build/make/Makefile .
973 980
974 clean_temp_files 981 clean_temp_files
975 true 982 true
976 } 983 }
OLDNEW
« no previous file with comments | « source/libvpx/build/make/armlink_adapter.sh ('k') | source/libvpx/build/make/gen_asm_deps.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698