mirror of
https://github.com/videolan/vlc.git
synced 2025-01-07 16:28:29 +08:00
Contrib: use a simpler way to discriminate between libav and FFmpeg
This commit is contained in:
parent
42bf7e2080
commit
4bed85170f
@ -1,9 +1,16 @@
|
||||
# FFmpeg
|
||||
|
||||
HASH=HEAD
|
||||
#Uncomment the one you want
|
||||
#USE_LIBAV ?= 1
|
||||
#USE_FFMPEG ?= 1
|
||||
|
||||
#FFMPEG_SNAPURL := http://git.videolan.org/?p=ffmpeg.git;a=snapshot;h=$(HASH);sf=tgz
|
||||
ifdef USE_FFMPEG
|
||||
HASH=HEAD
|
||||
FFMPEG_SNAPURL := http://git.videolan.org/?p=ffmpeg.git;a=snapshot;h=$(HASH);sf=tgz
|
||||
else
|
||||
HASH=HEAD
|
||||
FFMPEG_SNAPURL := http://git.libav.org/?p=libav.git;a=snapshot;h=$(HASH);sf=tgz
|
||||
endif
|
||||
|
||||
FFMPEGCONF = \
|
||||
--cc="$(CC)" \
|
||||
@ -18,12 +25,16 @@ FFMPEGCONF = \
|
||||
--disable-avfilter \
|
||||
--disable-filters \
|
||||
--disable-bsfs \
|
||||
--disable-bzlib
|
||||
--disable-bzlib \
|
||||
--disable-programs \
|
||||
--disable-avresample
|
||||
|
||||
ifdef USE_FFMPEG
|
||||
FFMPEGCONF += \
|
||||
--disable-swresample \
|
||||
--disable-iconv
|
||||
endif
|
||||
|
||||
# Those tools are named differently in FFmpeg and Libav
|
||||
# --disable-ffserver \
|
||||
# --disable-ffplay \
|
||||
# --disable-ffprobe
|
||||
DEPS_ffmpeg = zlib gsm openjpeg
|
||||
|
||||
# Optional dependencies
|
||||
|
Loading…
Reference in New Issue
Block a user