mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
configure: Add separate list for libraries and use where appropriate
This commit is contained in:
parent
947f933687
commit
d89f2fa970
47
configure
vendored
47
configure
vendored
@ -113,6 +113,7 @@ Component options:
|
|||||||
--disable-avdevice disable libavdevice build
|
--disable-avdevice disable libavdevice build
|
||||||
--disable-avcodec disable libavcodec build
|
--disable-avcodec disable libavcodec build
|
||||||
--disable-avformat disable libavformat build
|
--disable-avformat disable libavformat build
|
||||||
|
--disable-avutil disable libavutil build
|
||||||
--disable-swscale disable libswscale build
|
--disable-swscale disable libswscale build
|
||||||
--disable-avfilter disable video filter support [no]
|
--disable-avfilter disable video filter support [no]
|
||||||
--disable-avresample disable libavresample build [no]
|
--disable-avresample disable libavresample build [no]
|
||||||
@ -979,6 +980,16 @@ COMPONENT_LIST="
|
|||||||
protocols
|
protocols
|
||||||
"
|
"
|
||||||
|
|
||||||
|
LIBRARY_LIST="
|
||||||
|
avcodec
|
||||||
|
avdevice
|
||||||
|
avfilter
|
||||||
|
avformat
|
||||||
|
avresample
|
||||||
|
avutil
|
||||||
|
swscale
|
||||||
|
"
|
||||||
|
|
||||||
PROGRAM_LIST="
|
PROGRAM_LIST="
|
||||||
avconv
|
avconv
|
||||||
avplay
|
avplay
|
||||||
@ -988,12 +999,8 @@ PROGRAM_LIST="
|
|||||||
|
|
||||||
CONFIG_LIST="
|
CONFIG_LIST="
|
||||||
$COMPONENT_LIST
|
$COMPONENT_LIST
|
||||||
|
$LIBRARY_LIST
|
||||||
$PROGRAM_LIST
|
$PROGRAM_LIST
|
||||||
avcodec
|
|
||||||
avdevice
|
|
||||||
avfilter
|
|
||||||
avformat
|
|
||||||
avresample
|
|
||||||
avisynth
|
avisynth
|
||||||
bzlib
|
bzlib
|
||||||
dct
|
dct
|
||||||
@ -1046,7 +1053,6 @@ CONFIG_LIST="
|
|||||||
small
|
small
|
||||||
sram
|
sram
|
||||||
static
|
static
|
||||||
swscale
|
|
||||||
swscale_alpha
|
swscale_alpha
|
||||||
thumb
|
thumb
|
||||||
vaapi
|
vaapi
|
||||||
@ -1280,7 +1286,6 @@ HAVE_LIST="
|
|||||||
CONFIG_EXTRA="
|
CONFIG_EXTRA="
|
||||||
aandcttables
|
aandcttables
|
||||||
ac3dsp
|
ac3dsp
|
||||||
avutil
|
|
||||||
error_resilience
|
error_resilience
|
||||||
gcrypt
|
gcrypt
|
||||||
golomb
|
golomb
|
||||||
@ -1729,8 +1734,12 @@ scale_filter_deps="swscale"
|
|||||||
yadif_filter_deps="gpl"
|
yadif_filter_deps="gpl"
|
||||||
|
|
||||||
# libraries
|
# libraries
|
||||||
avdevice_deps="avcodec avformat"
|
avcodec_deps="avutil"
|
||||||
avformat_deps="avcodec"
|
avdevice_deps="avutil avcodec avformat"
|
||||||
|
avfilter_deps="avutil"
|
||||||
|
avformat_deps="avutil avcodec"
|
||||||
|
avresample_deps="avutil"
|
||||||
|
swscale_deps="avutil"
|
||||||
|
|
||||||
# programs
|
# programs
|
||||||
avconv_deps="avcodec avfilter avformat avresample swscale
|
avconv_deps="avcodec avfilter avformat avresample swscale
|
||||||
@ -1780,15 +1789,7 @@ target_os_default=$(tolower $(uname -s))
|
|||||||
host_os=$target_os_default
|
host_os=$target_os_default
|
||||||
|
|
||||||
# configurable options
|
# configurable options
|
||||||
enable $PROGRAM_LIST
|
enable $LIBRARY_LIST $PROGRAM_LIST
|
||||||
|
|
||||||
enable avcodec
|
|
||||||
enable avdevice
|
|
||||||
enable avfilter
|
|
||||||
enable avformat
|
|
||||||
enable avresample
|
|
||||||
enable avutil
|
|
||||||
enable swscale
|
|
||||||
|
|
||||||
enable asm
|
enable asm
|
||||||
enable debug
|
enable debug
|
||||||
@ -3844,7 +3845,7 @@ SAMPLES:=${samples:-\$(LIBAV_SAMPLES)}
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
get_version(){
|
get_version(){
|
||||||
lcname=$1
|
lcname=lib${1}
|
||||||
name=$(toupper $lcname)
|
name=$(toupper $lcname)
|
||||||
file=$source_path/$lcname/version.h
|
file=$source_path/$lcname/version.h
|
||||||
eval $(awk "/#define ${name}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file")
|
eval $(awk "/#define ${name}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file")
|
||||||
@ -3853,13 +3854,7 @@ get_version(){
|
|||||||
eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak
|
eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak
|
||||||
}
|
}
|
||||||
|
|
||||||
get_version libavcodec
|
map 'get_version $v' $LIBRARY_LIST
|
||||||
get_version libavdevice
|
|
||||||
get_version libavfilter
|
|
||||||
get_version libavformat
|
|
||||||
get_version libavresample
|
|
||||||
get_version libavutil
|
|
||||||
get_version libswscale
|
|
||||||
|
|
||||||
cat > $TMPH <<EOF
|
cat > $TMPH <<EOF
|
||||||
/* Automatically generated by configure - do not modify! */
|
/* Automatically generated by configure - do not modify! */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user