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

Side by Side Diff: source/patched-ffmpeg-mt/configure

Issue 3384002: ffmpeg source update for sep 09 (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
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/patched-ffmpeg-mt/common.mak ('k') | source/patched-ffmpeg-mt/doc/APIchanges » ('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 # FFmpeg configure script 3 # FFmpeg configure script
4 # 4 #
5 # Copyright (c) 2000-2002 Fabrice Bellard 5 # Copyright (c) 2000-2002 Fabrice Bellard
6 # Copyright (c) 2005-2008 Diego Biurrun 6 # Copyright (c) 2005-2008 Diego Biurrun
7 # Copyright (c) 2005-2008 Mans Rullgard 7 # Copyright (c) 2005-2008 Mans Rullgard
8 # 8 #
9 9
10 # Prevent locale nonsense from breaking basic text processing. 10 # Prevent locale nonsense from breaking basic text processing.
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 eval dep_extralibs="\$${cfg}_extralibs" 488 eval dep_extralibs="\$${cfg}_extralibs"
489 test -n "$dep_extralibs" && add_extralibs $dep_extralibs 489 test -n "$dep_extralibs" && add_extralibs $dep_extralibs
490 enable_deep $dep_sel 490 enable_deep $dep_sel
491 enable_deep_weak $dep_sgs 491 enable_deep_weak $dep_sgs
492 fi 492 fi
493 493
494 disable ${cfg}_checking 494 disable ${cfg}_checking
495 done 495 done
496 } 496 }
497 497
498 print_config_h(){
499 enabled $1 && v=1 || v=0
500 echo "#define $2 $v"
501 }
502
503 print_config_mak(){
504 enabled $1 && v= || v=!
505 echo "$v$2=yes"
506 }
507
508 print_config_asm(){
509 enabled $1 && echo "%define $2"
510 }
511
498 print_config(){ 512 print_config(){
499 pfx=$1 513 pfx=$1
500 header=$2 514 files=$2
501 makefile=$3 515 shift 2
502 shift 3
503 for cfg; do 516 for cfg; do
504 ucname="$(toupper $cfg)" 517 ucname="$(toupper $cfg)"
505 if enabled $cfg; then 518 for f in $files; do
506 echo "#define ${pfx}${ucname} 1" >> $header 519 "print_config_${f##*.}" $cfg ${pfx}${ucname} >>$f
507 echo "${pfx}${ucname}=yes" >> $makefile 520 done
508 else
509 echo "#define ${pfx}${ucname} 0" >> $header
510 echo "!${pfx}${ucname}=yes" >> $makefile
511 fi
512 done 521 done
513 } 522 }
514 523
515 print_enabled(){ 524 print_enabled(){
516 test "$1" = -n && end=" " && shift || end="\n" 525 test "$1" = -n && end=" " && shift || end="\n"
517 suf=$1 526 suf=$1
518 shift 527 shift
519 for v; do 528 for v; do
520 enabled $v && printf "%s$end" ${v%$suf}; 529 enabled $v && printf "%s$end" ${v%$suf};
521 done 530 done
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
1367 v4l2_indev_deps_any="linux_videodev2_h sys_videoio_h" 1376 v4l2_indev_deps_any="linux_videodev2_h sys_videoio_h"
1368 vfwcap_indev_deps="capCreateCaptureWindow vfwcap_defines" 1377 vfwcap_indev_deps="capCreateCaptureWindow vfwcap_defines"
1369 vfwcap_indev_extralibs="-lavicap32" 1378 vfwcap_indev_extralibs="-lavicap32"
1370 x11_grab_device_indev_deps="x11grab XShmCreateImage" 1379 x11_grab_device_indev_deps="x11grab XShmCreateImage"
1371 x11_grab_device_indev_extralibs="-lX11 -lXext -lXfixes" 1380 x11_grab_device_indev_extralibs="-lX11 -lXext -lXfixes"
1372 1381
1373 # protocols 1382 # protocols
1374 gopher_protocol_deps="network" 1383 gopher_protocol_deps="network"
1375 http_protocol_deps="network" 1384 http_protocol_deps="network"
1376 http_protocol_select="tcp_protocol" 1385 http_protocol_select="tcp_protocol"
1386 mmsh_protocol_select="http_protocol"
1377 mmst_protocol_deps="network" 1387 mmst_protocol_deps="network"
1378 rtmp_protocol_select="tcp_protocol" 1388 rtmp_protocol_select="tcp_protocol"
1379 rtp_protocol_select="udp_protocol" 1389 rtp_protocol_select="udp_protocol"
1380 tcp_protocol_deps="network" 1390 tcp_protocol_deps="network"
1381 udp_protocol_deps="network" 1391 udp_protocol_deps="network"
1382 1392
1383 # libraries 1393 # libraries
1384 avdevice_deps="avcodec avformat" 1394 avdevice_deps="avcodec avformat"
1385 avformat_deps="avcodec" 1395 avformat_deps="avcodec"
1386 1396
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 adpcm_g726=g726 \ 1430 adpcm_g726=g726 \
1421 adpcm_ima_qt \ 1431 adpcm_ima_qt \
1422 adpcm_ima_wav \ 1432 adpcm_ima_wav \
1423 adpcm_ms \ 1433 adpcm_ms \
1424 adpcm_swf \ 1434 adpcm_swf \
1425 adpcm_yamaha=adpcm_yam \ 1435 adpcm_yamaha=adpcm_yam \
1426 alac \ 1436 alac \
1427 asv1 \ 1437 asv1 \
1428 asv2 \ 1438 asv2 \
1429 bmp \ 1439 bmp \
1430 dnxhd="hdxhd_1080i dnxhd_720p dnxhd_720p_rd" \ 1440 dnxhd="dnxhd_1080i dnxhd_720p dnxhd_720p_rd" \
1431 dvvideo="dv dv50" \ 1441 dvvideo="dv dv50" \
1432 ffv1 \ 1442 ffv1 \
1433 flac \ 1443 flac \
1434 flashsv \ 1444 flashsv \
1435 flv \ 1445 flv \
1436 gif \ 1446 gif \
1437 h261 \ 1447 h261 \
1438 h263="h263 h263p" \ 1448 h263="h263 h263p" \
1439 huffyuv \ 1449 huffyuv \
1440 jpegls \ 1450 jpegls \
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1485 swf \ 1495 swf \
1486 mpegts=ts \ 1496 mpegts=ts \
1487 voc \ 1497 voc \
1488 wav \ 1498 wav \
1489 yuv4mpegpipe=yuv4mpeg \ 1499 yuv4mpegpipe=yuv4mpeg \
1490 1500
1491 mpg_test_deps="mpeg1system_muxer mpegps_demuxer" 1501 mpg_test_deps="mpeg1system_muxer mpegps_demuxer"
1492 1502
1493 set_ne_test_deps pixdesc 1503 set_ne_test_deps pixdesc
1494 set_ne_test_deps pixfmts_crop 1504 set_ne_test_deps pixfmts_crop
1505 set_ne_test_deps pixfmts_hflip
1495 set_ne_test_deps pixfmts_null 1506 set_ne_test_deps pixfmts_null
1496 set_ne_test_deps pixfmts_pad 1507 set_ne_test_deps pixfmts_pad
1497 set_ne_test_deps pixfmts_scale 1508 set_ne_test_deps pixfmts_scale
1498 set_ne_test_deps pixfmts_vflip 1509 set_ne_test_deps pixfmts_vflip
1499 1510
1500 # default parameters 1511 # default parameters
1501 1512
1502 logfile="config.log" 1513 logfile="config.log"
1503 1514
1504 # installation paths 1515 # installation paths
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 trap 'rm -f -- $TMPFILES' EXIT 1781 trap 'rm -f -- $TMPFILES' EXIT
1771 trap exit HUP INT TERM 1782 trap exit HUP INT TERM
1772 1783
1773 tmpfile TMPC .c 1784 tmpfile TMPC .c
1774 tmpfile TMPE $EXESUF 1785 tmpfile TMPE $EXESUF
1775 tmpfile TMPH .h 1786 tmpfile TMPH .h
1776 tmpfile TMPO .o 1787 tmpfile TMPO .o
1777 tmpfile TMPS .S 1788 tmpfile TMPS .S
1778 tmpfile TMPV .ver 1789 tmpfile TMPV .ver
1779 tmpfile TMPSH .sh 1790 tmpfile TMPSH .sh
1791 tmpfile TMPASM .asm
1780 1792
1781 unset -f mktemp 1793 unset -f mktemp
1782 1794
1783 # make sure we can execute files in $TMPDIR 1795 # make sure we can execute files in $TMPDIR
1784 cat > $TMPSH 2>> $logfile <<EOF 1796 cat > $TMPSH 2>> $logfile <<EOF
1785 #! /bin/sh 1797 #! /bin/sh
1786 EOF 1798 EOF
1787 chmod +x $TMPSH >> $logfile 2>&1 1799 chmod +x $TMPSH >> $logfile 2>&1
1788 if ! $TMPSH >> $logfile 2>&1; then 1800 if ! $TMPSH >> $logfile 2>&1; then
1789 cat <<EOF 1801 cat <<EOF
1790 Unable to create and execute files in $TMPDIR. Set the TMPDIR environment 1802 Unable to create and execute files in $TMPDIR. Set the TMPDIR environment
1791 variable to another directory and make sure that it is not mounted noexec. 1803 variable to another directory and make sure that it is not mounted noexec.
1792 EOF 1804 EOF
1793 die "Sanity test failed." 1805 die "Sanity test failed."
1794 fi 1806 fi
1795 1807
1796 filter_cflags=echo 1808 filter_cflags=echo
1797 filter_cppflags=echo 1809 filter_cppflags=echo
1798 filter_asflags=echo 1810 filter_asflags=echo
1799 1811
1800 if $cc -v 2>&1 | grep -qi ^gcc; then 1812 if $cc -v 2>&1 | grep -q '^gcc.*LLVM'; then
1813 cc_type=llvm_gcc
1814 cc_version=__VERSION__
1815 gcc_extra_ver=$(expr "$($cc --version | head -n1)" : '.*\((.*)\)')
1816 cc_ident="llvm-gcc $($cc -dumpversion) $gcc_extra_ver"
1817 CC_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@'
1818 AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@'
1819 speed_cflags='-O3'
1820 size_cflags='-Os'
1821 elif $cc -v 2>&1 | grep -qi ^gcc; then
1801 cc_type=gcc 1822 cc_type=gcc
1802 cc_version=__VERSION__ 1823 cc_version=__VERSION__
1803 gcc_extra_ver=$(expr "$($cc --version | head -n1)" : '.*\((.*)\)') 1824 gcc_extra_ver=$(expr "$($cc --version | head -n1)" : '.*\((.*)\)')
1804 cc_ident="gcc $($cc -dumpversion) $gcc_extra_ver" 1825 cc_ident="gcc $($cc -dumpversion) $gcc_extra_ver"
1805 if ! $cc -dumpversion | grep -q '^2\.'; then 1826 if ! $cc -dumpversion | grep -q '^2\.'; then
1806 CC_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' 1827 CC_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@'
1807 AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' 1828 AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@'
1808 fi 1829 fi
1809 speed_cflags='-O2' 1830 speed_cflags='-O2'
1810 size_cflags='-Os' 1831 size_cflags='-Os'
(...skipping 25 matching lines...) Expand all
1836 test -d "$sysroot" || die "No valid sysroot specified." 1857 test -d "$sysroot" || die "No valid sysroot specified."
1837 cc_type=armcc 1858 cc_type=armcc
1838 cc_version="AV_STRINGIFY(__ARMCC_VERSION)" 1859 cc_version="AV_STRINGIFY(__ARMCC_VERSION)"
1839 cc_ident=$($cc --vsn | head -n1) 1860 cc_ident=$($cc --vsn | head -n1)
1840 armcc_conf="$PWD/armcc.conf" 1861 armcc_conf="$PWD/armcc.conf"
1841 $cc --arm_linux_configure \ 1862 $cc --arm_linux_configure \
1842 --arm_linux_config_file="$armcc_conf" \ 1863 --arm_linux_config_file="$armcc_conf" \
1843 --configure_sysroot="$sysroot" \ 1864 --configure_sysroot="$sysroot" \
1844 --configure_cpp_headers="$sysinclude" >>$logfile 2>&1 || 1865 --configure_cpp_headers="$sysinclude" >>$logfile 2>&1 ||
1845 die "Error creating armcc configuration file." 1866 die "Error creating armcc configuration file."
1867 $cc --vsn | grep -q RVCT && armcc_opt=rvct || armcc_opt=armcc
1846 cc="$cc --arm_linux_config_file=$armcc_conf --translate_gcc" 1868 cc="$cc --arm_linux_config_file=$armcc_conf --translate_gcc"
1847 as_default="${cross_prefix}gcc" 1869 as_default="${cross_prefix}gcc"
1848 CC_DEPFLAGS='-MMD' 1870 CC_DEPFLAGS='-MMD'
1849 AS_DEPFLAGS='-MMD' 1871 AS_DEPFLAGS='-MMD'
1850 speed_cflags='-O3' 1872 speed_cflags='-O3'
1851 size_cflags='-Os' 1873 size_cflags='-Os'
1852 elif $cc -version 2>/dev/null | grep -q TMS470; then 1874 elif $cc -version 2>/dev/null | grep -q TMS470; then
1853 cc_type=tms470 1875 cc_type=tms470
1854 cc_version="AV_STRINGIFY(__TI_COMPILER_VERSION__)" 1876 cc_version="AV_STRINGIFY(__TI_COMPILER_VERSION__)"
1855 cc_ident=$($cc -version | head -n1 | tr -s ' ') 1877 cc_ident=$($cc -version | head -n1 | tr -s ' ')
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1959 set_default ar as dep_cc ld 1981 set_default ar as dep_cc ld
1960 1982
1961 test -n "$CC_DEPFLAGS" || CCDEP=$DEPEND_CMD 1983 test -n "$CC_DEPFLAGS" || CCDEP=$DEPEND_CMD
1962 test -n "$AS_DEPFLAGS" || ASDEP=$DEPEND_CMD 1984 test -n "$AS_DEPFLAGS" || ASDEP=$DEPEND_CMD
1963 1985
1964 add_cflags $extra_cflags 1986 add_cflags $extra_cflags
1965 add_asflags $extra_cflags 1987 add_asflags $extra_cflags
1966 1988
1967 if test -n "$sysroot"; then 1989 if test -n "$sysroot"; then
1968 case "$cc_type" in 1990 case "$cc_type" in
1969 gcc) 1991 gcc|llvm_gcc)
1970 add_cppflags --sysroot="$sysroot" 1992 add_cppflags --sysroot="$sysroot"
1971 add_ldflags --sysroot="$sysroot" 1993 add_ldflags --sysroot="$sysroot"
1972 ;; 1994 ;;
1973 tms470) 1995 tms470)
1974 add_cppflags -I"$sysinclude" 1996 add_cppflags -I"$sysinclude"
1975 add_ldflags --sysroot="$sysroot" 1997 add_ldflags --sysroot="$sysroot"
1976 ;; 1998 ;;
1977 clang) 1999 clang)
1978 add_cppflags -isysroot "$sysroot" 2000 add_cppflags -isysroot "$sysroot"
1979 add_ldflags -isysroot "$sysroot" 2001 add_ldflags -isysroot "$sysroot"
1980 ;; 2002 ;;
1981 esac 2003 esac
1982 fi 2004 fi
1983 2005
1984 if test "$cpu" = host; then 2006 if test "$cpu" = host; then
1985 enabled cross_compile && die "--cpu=host makes no sense when cross-compiling ." 2007 enabled cross_compile && die "--cpu=host makes no sense when cross-compiling ."
1986 2008
1987 case "$cc_type" in 2009 case "$cc_type" in
1988 gcc) 2010 gcc|llvm_gcc)
1989 check_native(){ 2011 check_native(){
1990 $cc $1=native -v -c -o $TMPO $TMPC >$TMPE 2>&1 || return 2012 $cc $1=native -v -c -o $TMPO $TMPC >$TMPE 2>&1 || return
1991 sed -n "/$1=/{ 2013 sed -n "/$1=/{
1992 s/.*$1=\\([^ ]*\\).*/\\1/ 2014 s/.*$1=\\([^ ]*\\).*/\\1/
1993 p 2015 p
1994 q 2016 q
1995 }" $TMPE 2017 }" $TMPE
1996 } 2018 }
1997 cpu=$(check_native -march || check_native -mcpu) 2019 cpu=$(check_native -march || check_native -mcpu)
1998 ;; 2020 ;;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
2096 i[345]86|pentium) 2118 i[345]86|pentium)
2097 cpuflags="-march=$cpu" 2119 cpuflags="-march=$cpu"
2098 disable mmx 2120 disable mmx
2099 ;; 2121 ;;
2100 # targets that do NOT support conditional mov (cmov) 2122 # targets that do NOT support conditional mov (cmov)
2101 pentium-mmx|k6|k6-[23]|winchip-c6|winchip2|c3) 2123 pentium-mmx|k6|k6-[23]|winchip-c6|winchip2|c3)
2102 cpuflags="-march=$cpu" 2124 cpuflags="-march=$cpu"
2103 disable cmov 2125 disable cmov
2104 ;; 2126 ;;
2105 # targets that do support conditional mov (cmov) 2127 # targets that do support conditional mov (cmov)
2106 i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlo n-[mx]p|athlon64|k8|opteron|athlon-fx|core2|amdfam10|barcelona) 2128 i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlo n-[mx]p|athlon64|k8|opteron|athlon-fx|core2|amdfam10|barcelona|atom)
2107 cpuflags="-march=$cpu" 2129 cpuflags="-march=$cpu"
2108 enable cmov 2130 enable cmov
2109 enable fast_cmov 2131 enable fast_cmov
2110 ;; 2132 ;;
2111 # targets that do support conditional mov but on which it's slow 2133 # targets that do support conditional mov but on which it's slow
2112 pentium4|pentium4m|prescott|nocona) 2134 pentium4|pentium4m|prescott|nocona)
2113 cpuflags="-march=$cpu" 2135 cpuflags="-march=$cpu"
2114 enable cmov 2136 enable cmov
2115 disable fast_cmov 2137 disable fast_cmov
2116 ;; 2138 ;;
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
2368 ;; 2390 ;;
2369 gnu) 2391 gnu)
2370 ;; 2392 ;;
2371 none) 2393 none)
2372 ;; 2394 ;;
2373 *) 2395 *)
2374 die "Unknown OS '$target_os'." 2396 die "Unknown OS '$target_os'."
2375 ;; 2397 ;;
2376 esac 2398 esac
2377 2399
2400 echo "config:$arch:$subarch:$cpu:$target_os:$cc_ident:$FFMPEG_CONFIGURATION" >co nfig.fate
2401
2378 check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PI C)" && enable pic 2402 check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PI C)" && enable pic
2379 2403
2380 set_default $PATHS_LIST 2404 set_default $PATHS_LIST
2381 2405
2382 # we need to build at least one lib type 2406 # we need to build at least one lib type
2383 if ! enabled_any static shared; then 2407 if ! enabled_any static shared; then
2384 cat <<EOF 2408 cat <<EOF
2385 At least one library type must be built. 2409 At least one library type must be built.
2386 Specify --enable-static to build the static libraries or --enable-shared to 2410 Specify --enable-static to build the static libraries or --enable-shared to
2387 build the shared libraries as well. To only build the shared libraries specify 2411 build the shared libraries as well. To only build the shared libraries specify
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
2552 return 0; 2576 return 0;
2553 } 2577 }
2554 EOF 2578 EOF
2555 2579
2556 # check whether binutils is new enough to compile SSSE3/MMX2 2580 # check whether binutils is new enough to compile SSSE3/MMX2
2557 enabled ssse3 && check_asm ssse3 '"pabsw %xmm0, %xmm0"' 2581 enabled ssse3 && check_asm ssse3 '"pabsw %xmm0, %xmm0"'
2558 enabled mmx2 && check_asm mmx2 '"pmaxub %mm0, %mm1"' 2582 enabled mmx2 && check_asm mmx2 '"pmaxub %mm0, %mm1"'
2559 2583
2560 check_asm bswap '"bswap %%eax" ::: "%eax"' 2584 check_asm bswap '"bswap %%eax" ::: "%eax"'
2561 2585
2562 YASMFLAGS="-f $objformat -DARCH_$(toupper $subarch)" 2586 YASMFLAGS="-f $objformat"
2563 enabled x86_64 && append YASMFLAGS "-m amd64" 2587 enabled x86_64 && append YASMFLAGS "-m amd64"
2564 enabled pic && append YASMFLAGS "-DPIC" 2588 enabled pic && append YASMFLAGS "-DPIC"
2565 test -n "$extern_prefix" && append YASMFLAGS "-DPREFIX" 2589 test -n "$extern_prefix" && append YASMFLAGS "-DPREFIX"
2566 case "$objformat" in 2590 case "$objformat" in
2567 elf) enabled debug && append YASMFLAGS "-g dwarf2" ;; 2591 elf) enabled debug && append YASMFLAGS "-g dwarf2" ;;
2568 esac 2592 esac
2569 if ! disabled yasm; then 2593 if ! disabled_any asm mmx yasm; then
2570 check_yasm "pabsw xmm0, xmm0" && enable yasm || 2594 check_yasm "pabsw xmm0, xmm0" && enable yasm ||
2571 warn "yasm not found, performance will suffer" 2595 die "yasm not found, use --disable-yasm for a crippled build"
2572 fi 2596 fi
2573 2597
2574 case "$cpu" in 2598 case "$cpu" in
2575 athlon*|opteron*|k8*|pentium|pentium-mmx|prescott|nocona|atom|geode) 2599 athlon*|opteron*|k8*|pentium|pentium-mmx|prescott|nocona|atom|geode)
2576 disable fast_clz 2600 disable fast_clz
2577 ;; 2601 ;;
2578 esac 2602 esac
2579 2603
2580 fi 2604 fi
2581 2605
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
2866 # disable some annoying warnings 2890 # disable some annoying warnings
2867 add_cflags -msg_disable cvtu32to64 2891 add_cflags -msg_disable cvtu32to64
2868 add_cflags -msg_disable embedcomment 2892 add_cflags -msg_disable embedcomment
2869 add_cflags -msg_disable needconstext 2893 add_cflags -msg_disable needconstext
2870 add_cflags -msg_disable nomainieee 2894 add_cflags -msg_disable nomainieee
2871 add_cflags -msg_disable ptrmismatch1 2895 add_cflags -msg_disable ptrmismatch1
2872 add_cflags -msg_disable unreachcode 2896 add_cflags -msg_disable unreachcode
2873 elif enabled gcc; then 2897 elif enabled gcc; then
2874 check_cflags -fno-tree-vectorize 2898 check_cflags -fno-tree-vectorize
2875 check_cflags -Werror=implicit-function-declaration 2899 check_cflags -Werror=implicit-function-declaration
2900 check_cflags -Werror=missing-prototypes
2901 elif enabled llvm_gcc; then
2902 check_cflags -mllvm -stack-alignment=16
2876 elif enabled clang; then 2903 elif enabled clang; then
2904 check_cflags -mllvm -stack-alignment=16
2877 check_cflags -Qunused-arguments 2905 check_cflags -Qunused-arguments
2878 elif enabled armcc; then 2906 elif enabled armcc; then
2879 # 2523: use of inline assembler is deprecated 2907 # 2523: use of inline assembler is deprecated
2880 add_cflags -Wrvct,--diag_suppress=2523 2908 add_cflags -W${armcc_opt},--diag_suppress=2523
2881 add_cflags -Wrvct,--diag_suppress=1207 2909 add_cflags -W${armcc_opt},--diag_suppress=1207
2882 elif enabled tms470; then 2910 elif enabled tms470; then
2883 add_cflags -pds=824 -pds=837 2911 add_cflags -pds=824 -pds=837
2884 fi 2912 fi
2885 2913
2886 enabled_any $THREADS_LIST && enable threads 2914 enabled_any $THREADS_LIST && enable threads
2887 2915
2888 check_deps $CONFIG_LIST \ 2916 check_deps $CONFIG_LIST \
2889 $CONFIG_EXTRA \ 2917 $CONFIG_EXTRA \
2890 $HAVE_LIST \ 2918 $HAVE_LIST \
2891 $DECODER_LIST \ 2919 $DECODER_LIST \
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
3040 libavutil/Makefile 3068 libavutil/Makefile
3041 libpostproc/Makefile 3069 libpostproc/Makefile
3042 libswscale/Makefile 3070 libswscale/Makefile
3043 " 3071 "
3044 map 'mkdir -p $v' $DIRS; 3072 map 'mkdir -p $v' $DIRS;
3045 map 'test -f "$source_path/$v" && $ln_s "$source_path/$v" $v' $FILES 3073 map 'test -f "$source_path/$v" && $ln_s "$source_path/$v" $v' $FILES
3046 fi 3074 fi
3047 3075
3048 enabled stripping || strip="echo skipping strip" 3076 enabled stripping || strip="echo skipping strip"
3049 3077
3078 config_files="$TMPH config.mak"
3079
3050 cat > config.mak <<EOF 3080 cat > config.mak <<EOF
3051 # Automatically generated by configure - do not modify! 3081 # Automatically generated by configure - do not modify!
3052 ifndef FFMPEG_CONFIG_MAK 3082 ifndef FFMPEG_CONFIG_MAK
3053 FFMPEG_CONFIG_MAK=1 3083 FFMPEG_CONFIG_MAK=1
3054 FFMPEG_CONFIGURATION=$FFMPEG_CONFIGURATION 3084 FFMPEG_CONFIGURATION=$FFMPEG_CONFIGURATION
3055 prefix=$prefix 3085 prefix=$prefix
3056 LIBDIR=\$(DESTDIR)$libdir 3086 LIBDIR=\$(DESTDIR)$libdir
3057 SHLIBDIR=\$(DESTDIR)$shlibdir 3087 SHLIBDIR=\$(DESTDIR)$shlibdir
3058 INCDIR=\$(DESTDIR)$incdir 3088 INCDIR=\$(DESTDIR)$incdir
3059 BINDIR=\$(DESTDIR)$bindir 3089 BINDIR=\$(DESTDIR)$bindir
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
3155 EOF 3185 EOF
3156 3186
3157 test -n "$malloc_prefix" && 3187 test -n "$malloc_prefix" &&
3158 echo "#define MALLOC_PREFIX $malloc_prefix" >>$TMPH 3188 echo "#define MALLOC_PREFIX $malloc_prefix" >>$TMPH
3159 3189
3160 if enabled small || disabled optimizations; then 3190 if enabled small || disabled optimizations; then
3161 echo "#undef av_always_inline" >> $TMPH 3191 echo "#undef av_always_inline" >> $TMPH
3162 echo "#define av_always_inline" >> $TMPH 3192 echo "#define av_always_inline" >> $TMPH
3163 fi 3193 fi
3164 3194
3165 print_config ARCH_ $TMPH config.mak $ARCH_LIST 3195 if enabled yasm; then
3166 print_config HAVE_ $TMPH config.mak $HAVE_LIST 3196 append config_files $TMPASM
3167 print_config CONFIG_ $TMPH config.mak $CONFIG_LIST \ 3197 printf '' >$TMPASM
3168 $CONFIG_EXTRA \ 3198 fi
3169 $DECODER_LIST \ 3199
3170 $ENCODER_LIST \ 3200 print_config ARCH_ "$config_files" $ARCH_LIST
3171 $HWACCEL_LIST \ 3201 print_config HAVE_ "$config_files" $HAVE_LIST
3172 $PARSER_LIST \ 3202 print_config CONFIG_ "$config_files" $CONFIG_LIST \
3173 $BSF_LIST \ 3203 $CONFIG_EXTRA \
3174 $DEMUXER_LIST \ 3204 $DECODER_LIST \
3175 $MUXER_LIST \ 3205 $ENCODER_LIST \
3176 $FILTER_LIST \ 3206 $HWACCEL_LIST \
3177 $PROTOCOL_LIST \ 3207 $PARSER_LIST \
3178 $INDEV_LIST \ 3208 $BSF_LIST \
3179 $OUTDEV_LIST \ 3209 $DEMUXER_LIST \
3210 $MUXER_LIST \
3211 $FILTER_LIST \
3212 $PROTOCOL_LIST \
3213 $INDEV_LIST \
3214 $OUTDEV_LIST \
3180 3215
3181 cat >>config.mak <<EOF 3216 cat >>config.mak <<EOF
3182 ACODEC_TESTS=$(print_enabled -n _test $ACODEC_TESTS) 3217 ACODEC_TESTS=$(print_enabled -n _test $ACODEC_TESTS)
3183 VCODEC_TESTS=$(print_enabled -n _test $VCODEC_TESTS) 3218 VCODEC_TESTS=$(print_enabled -n _test $VCODEC_TESTS)
3184 LAVF_TESTS=$(print_enabled -n _test $LAVF_TESTS) 3219 LAVF_TESTS=$(print_enabled -n _test $LAVF_TESTS)
3185 LAVFI_TESTS=$(print_enabled -n _test $LAVFI_TESTS) 3220 LAVFI_TESTS=$(print_enabled -n _test $LAVFI_TESTS)
3186 SEEK_TESTS=$(print_enabled -n _test $SEEK_TESTS) 3221 SEEK_TESTS=$(print_enabled -n _test $SEEK_TESTS)
3187 EOF 3222 EOF
3188 3223
3189 echo "#endif /* FFMPEG_CONFIG_H */" >> $TMPH 3224 echo "#endif /* FFMPEG_CONFIG_H */" >> $TMPH
3190 echo "endif # FFMPEG_CONFIG_MAK" >> config.mak 3225 echo "endif # FFMPEG_CONFIG_MAK" >> config.mak
3191 3226
3192 # Do not overwrite an unchanged config.h to avoid superfluous rebuilds. 3227 # Do not overwrite an unchanged config.h to avoid superfluous rebuilds.
3193 cp_if_changed $TMPH config.h 3228 cp_if_changed $TMPH config.h
3194 touch .config 3229 touch .config
3195 3230
3231 enabled yasm && cp_if_changed $TMPASM config.asm
3232
3196 cat > $TMPH <<EOF 3233 cat > $TMPH <<EOF
3197 /* Generated by ffconf */ 3234 /* Generated by ffconf */
3198 #ifndef AVUTIL_AVCONFIG_H 3235 #ifndef AVUTIL_AVCONFIG_H
3199 #define AVUTIL_AVCONFIG_H 3236 #define AVUTIL_AVCONFIG_H
3200 EOF 3237 EOF
3201 3238
3202 print_config AV_HAVE_ $TMPH /dev/null $HAVE_LIST_PUB 3239 print_config AV_HAVE_ $TMPH $HAVE_LIST_PUB
3203 3240
3204 echo "#endif /* AVUTIL_AVCONFIG_H */" >> $TMPH 3241 echo "#endif /* AVUTIL_AVCONFIG_H */" >> $TMPH
3205 3242
3206 cp_if_changed $TMPH libavutil/avconfig.h 3243 cp_if_changed $TMPH libavutil/avconfig.h
3207 3244
3208 echo "config:$arch:$subarch:$cpu:$target_os:$cc_ident:$FFMPEG_CONFIGURATION" >co nfig.fate
3209
3210 test -n "$WARNINGS" && printf "\n$WARNINGS" 3245 test -n "$WARNINGS" && printf "\n$WARNINGS"
3211 3246
3212 # build pkg-config files 3247 # build pkg-config files
3213 3248
3214 pkgconfig_generate(){ 3249 pkgconfig_generate(){
3215 name=$1 3250 name=$1
3216 shortname=${name#lib}${build_suffix} 3251 shortname=${name#lib}${build_suffix}
3217 comment=$2 3252 comment=$2
3218 version=$3 3253 version=$3
3219 libs=$4 3254 libs=$4
3220 requires=$5 3255 requires=$5
3221 enabled $shortname || return 0 3256 enabled ${name#lib} || return 0
3222 cat <<EOF > $name/$name.pc 3257 cat <<EOF > $name/$name.pc
3223 prefix=$prefix 3258 prefix=$prefix
3224 exec_prefix=\${prefix} 3259 exec_prefix=\${prefix}
3225 libdir=$libdir 3260 libdir=$libdir
3226 includedir=$incdir 3261 includedir=$incdir
3227 3262
3228 Name: $name 3263 Name: $name
3229 Description: $comment 3264 Description: $comment
3230 Version: $version 3265 Version: $version
3231 Requires: $(enabled shared || echo $requires) 3266 Requires: $(enabled shared || echo $requires)
(...skipping 20 matching lines...) Expand all
3252 } 3287 }
3253 3288
3254 pkgconfig_generate libavutil "FFmpeg utility library" "$LIBAVUTIL_VERSION" 3289 pkgconfig_generate libavutil "FFmpeg utility library" "$LIBAVUTIL_VERSION"
3255 pkgconfig_generate libavcore "FFmpeg multimedia shared core utilities library" " $LIBAVCORE_VERSION" "" "libavutil = $LIBAVUTIL_VERSION" 3290 pkgconfig_generate libavcore "FFmpeg multimedia shared core utilities library" " $LIBAVCORE_VERSION" "" "libavutil = $LIBAVUTIL_VERSION"
3256 pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$ext ralibs" "libavcore = $LIBAVCORE_VERSION" 3291 pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$ext ralibs" "libavcore = $LIBAVCORE_VERSION"
3257 pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_V ERSION" "$extralibs" "libavcodec = $LIBAVCODEC_VERSION" 3292 pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_V ERSION" "$extralibs" "libavcodec = $LIBAVCODEC_VERSION"
3258 pkgconfig_generate libavdevice "FFmpeg device handling library" "$LIBAVDEVICE_VE RSION" "$extralibs" "libavformat = $LIBAVFORMAT_VERSION" 3293 pkgconfig_generate libavdevice "FFmpeg device handling library" "$LIBAVDEVICE_VE RSION" "$extralibs" "libavformat = $LIBAVFORMAT_VERSION"
3259 pkgconfig_generate libavfilter "FFmpeg video filtering library" "$LIBAVFILTER_VE RSION" "$extralibs" "libavcore = $LIBAVCORE_VERSION" 3294 pkgconfig_generate libavfilter "FFmpeg video filtering library" "$LIBAVFILTER_VE RSION" "$extralibs" "libavcore = $LIBAVCORE_VERSION"
3260 pkgconfig_generate libpostproc "FFmpeg post processing library" "$LIBPOSTPROC_VE RSION" 3295 pkgconfig_generate libpostproc "FFmpeg post processing library" "$LIBPOSTPROC_VE RSION"
3261 pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERS ION" "" "libavutil = $LIBAVUTIL_VERSION" 3296 pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERS ION" "" "libavutil = $LIBAVUTIL_VERSION"
OLDNEW
« no previous file with comments | « source/patched-ffmpeg-mt/common.mak ('k') | source/patched-ffmpeg-mt/doc/APIchanges » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698