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

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

Issue 668403002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 2 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/args.h ('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/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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 729
730 # Enable the architecture family 730 # Enable the architecture family
731 case ${tgt_isa} in 731 case ${tgt_isa} in
732 arm*) enable_feature arm;; 732 arm*) enable_feature arm;;
733 mips*) enable_feature mips;; 733 mips*) enable_feature mips;;
734 esac 734 esac
735 735
736 # PIC is probably what we want when building shared libs 736 # PIC is probably what we want when building shared libs
737 enabled shared && soft_enable pic 737 enabled shared && soft_enable pic
738 738
739 # Minimum iOS version for all target platforms (darwin and iphonesimulator).
740 IOS_VERSION_MIN="6.0"
741
739 # Handle darwin variants. Newer SDKs allow targeting older 742 # Handle darwin variants. Newer SDKs allow targeting older
740 # platforms, so find the newest SDK available. 743 # platforms, so find the newest SDK available.
741 case ${toolchain} in 744 case ${toolchain} in
742 *-darwin*) 745 *-darwin*)
743 if [ -z "${DEVELOPER_DIR}" ]; then 746 if [ -z "${DEVELOPER_DIR}" ]; then
744 DEVELOPER_DIR=`xcode-select -print-path 2> /dev/null` 747 DEVELOPER_DIR=`xcode-select -print-path 2> /dev/null`
745 [ $? -ne 0 ] && OSX_SKIP_DIR_CHECK=1 748 [ $? -ne 0 ] && OSX_SKIP_DIR_CHECK=1
746 fi 749 fi
747 if [ -z "${OSX_SKIP_DIR_CHECK}" ]; then 750 if [ -z "${OSX_SKIP_DIR_CHECK}" ]; then
748 OSX_SDK_ROOTS="${DEVELOPER_DIR}/SDKs" 751 OSX_SDK_ROOTS="${DEVELOPER_DIR}/SDKs"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 ;; 784 ;;
782 *-darwin12-*) 785 *-darwin12-*)
783 add_cflags "-mmacosx-version-min=10.8" 786 add_cflags "-mmacosx-version-min=10.8"
784 add_ldflags "-mmacosx-version-min=10.8" 787 add_ldflags "-mmacosx-version-min=10.8"
785 ;; 788 ;;
786 *-darwin13-*) 789 *-darwin13-*)
787 add_cflags "-mmacosx-version-min=10.9" 790 add_cflags "-mmacosx-version-min=10.9"
788 add_ldflags "-mmacosx-version-min=10.9" 791 add_ldflags "-mmacosx-version-min=10.9"
789 ;; 792 ;;
790 *-iphonesimulator-*) 793 *-iphonesimulator-*)
791 add_cflags "-miphoneos-version-min=5.0" 794 add_cflags "-miphoneos-version-min=${IOS_VERSION_MIN}"
792 add_ldflags "-miphoneos-version-min=5.0" 795 add_ldflags "-miphoneos-version-min=${IOS_VERSION_MIN}"
793 osx_sdk_dir="$(xcrun --sdk iphonesimulator --show-sdk-path)" 796 osx_sdk_dir="$(xcrun --sdk iphonesimulator --show-sdk-path)"
794 add_cflags "-isysroot ${osx_sdk_dir}" 797 add_cflags "-isysroot ${osx_sdk_dir}"
795 add_ldflags "-isysroot ${osx_sdk_dir}" 798 add_ldflags "-isysroot ${osx_sdk_dir}"
796 ;; 799 ;;
797 esac 800 esac
798 801
799 # Handle Solaris variants. Solaris 10 needs -lposix4 802 # Handle Solaris variants. Solaris 10 needs -lposix4
800 case ${toolchain} in 803 case ${toolchain} in
801 sparc-solaris-*) 804 sparc-solaris-*)
802 add_extralibs -lposix4 805 add_extralibs -lposix4
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 soft_enable realtime_only 966 soft_enable realtime_only
964 if [ ${tgt_isa} = "armv7" ]; then 967 if [ ${tgt_isa} = "armv7" ]; then
965 soft_enable runtime_cpu_detect 968 soft_enable runtime_cpu_detect
966 fi 969 fi
967 if enabled runtime_cpu_detect; then 970 if enabled runtime_cpu_detect; then
968 add_cflags "-I${SDK_PATH}/sources/android/cpufeatures" 971 add_cflags "-I${SDK_PATH}/sources/android/cpufeatures"
969 fi 972 fi
970 ;; 973 ;;
971 974
972 darwin*) 975 darwin*)
973
974 XCRUN_FIND="xcrun --sdk iphoneos -find" 976 XCRUN_FIND="xcrun --sdk iphoneos -find"
975 CXX="$(${XCRUN_FIND} clang++)" 977 CXX="$(${XCRUN_FIND} clang++)"
976 CC="$(${XCRUN_FIND} clang)" 978 CC="$(${XCRUN_FIND} clang)"
977 AR="$(${XCRUN_FIND} ar)" 979 AR="$(${XCRUN_FIND} ar)"
978 LD="$(${XCRUN_FIND} ld)"
979 AS="$(${XCRUN_FIND} as)" 980 AS="$(${XCRUN_FIND} as)"
980 STRIP="$(${XCRUN_FIND} strip)" 981 STRIP="$(${XCRUN_FIND} strip)"
981 NM="$(${XCRUN_FIND} nm)" 982 NM="$(${XCRUN_FIND} nm)"
982 RANLIB="$(${XCRUN_FIND} ranlib)" 983 RANLIB="$(${XCRUN_FIND} ranlib)"
983 AS_SFX=.s 984 AS_SFX=.s
984 985
986 # Special handling of ld for armv6 because libclang_rt.ios.a does
987 # not contain armv6 support in Apple's clang package:
988 # Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn).
989 # TODO(tomfinegan): Remove this. Our minimum iOS version (6.0)
990 # renders support for armv6 unnecessary because the 3GS and up
991 # support neon.
992 if [ "${tgt_isa}" = "armv6" ]; then
993 LD="$(${XCRUN_FIND} ld)"
994 else
995 LD="${CXX:-$(${XCRUN_FIND} ld)}"
996 fi
997
985 # ASFLAGS is written here instead of using check_add_asflags 998 # ASFLAGS is written here instead of using check_add_asflags
986 # because we need to overwrite all of ASFLAGS and purge the 999 # because we need to overwrite all of ASFLAGS and purge the
987 # options that were put in above 1000 # options that were put in above
988 ASFLAGS="-arch ${tgt_isa} -g" 1001 ASFLAGS="-arch ${tgt_isa} -g"
989 1002
990 alt_libc="$(xcrun --sdk iphoneos --show-sdk-path)" 1003 alt_libc="$(xcrun --sdk iphoneos --show-sdk-path)"
991 add_cflags -arch ${tgt_isa} -isysroot ${alt_libc} 1004 add_cflags -arch ${tgt_isa} -isysroot ${alt_libc}
992 add_ldflags -arch ${tgt_isa} -ios_version_min 7.0 1005 add_ldflags -arch ${tgt_isa}
1006
1007 if [ "${LD}" = "${CXX}" ]; then
1008 add_ldflags -miphoneos-version-min="${IOS_VERSION_MIN}"
1009 else
1010 add_ldflags -ios_version_min "${IOS_VERSION_MIN}"
1011 fi
993 1012
994 for d in lib usr/lib usr/lib/system; do 1013 for d in lib usr/lib usr/lib/system; do
995 try_dir="${alt_libc}/${d}" 1014 try_dir="${alt_libc}/${d}"
996 [ -d "${try_dir}" ] && add_ldflags -L"${try_dir}" 1015 [ -d "${try_dir}" ] && add_ldflags -L"${try_dir}"
997 done 1016 done
998 1017
999 asm_conversion_cmd="${source_path}/build/make/ads2gas_apple.pl" 1018 asm_conversion_cmd="${source_path}/build/make/ads2gas_apple.pl"
1000 ;; 1019 ;;
1001 1020
1002 linux*) 1021 linux*)
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1404 # Prepare the PWD for building. 1423 # Prepare the PWD for building.
1405 for f in ${OOT_INSTALLS}; do 1424 for f in ${OOT_INSTALLS}; do
1406 install -D "${source_path}/$f" "$f" 1425 install -D "${source_path}/$f" "$f"
1407 done 1426 done
1408 fi 1427 fi
1409 cp "${source_path}/build/make/Makefile" . 1428 cp "${source_path}/build/make/Makefile" .
1410 1429
1411 clean_temp_files 1430 clean_temp_files
1412 true 1431 true
1413 } 1432 }
OLDNEW
« no previous file with comments | « source/libvpx/args.h ('k') | source/libvpx/configure » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698