mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 16:33:02 +00:00
FFmpeg-style conditional dependency declaration
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21225 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e912584ae0
commit
e2d12a60b4
116
Makefile
116
Makefile
@ -38,9 +38,7 @@ SRCS_COMMON = asxparser.c \
|
|||||||
subreader.c \
|
subreader.c \
|
||||||
vobsub.c \
|
vobsub.c \
|
||||||
|
|
||||||
ifeq ($(UNRARLIB),yes)
|
SRCS_COMMON-$(UNRARLIB) += unrarlib.c
|
||||||
SRCS_COMMON += unrarlib.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
SRCS_MPLAYER = mplayer.c \
|
SRCS_MPLAYER = mplayer.c \
|
||||||
m_property.c \
|
m_property.c \
|
||||||
@ -89,70 +87,38 @@ PARTS = libmpdemux \
|
|||||||
libvo \
|
libvo \
|
||||||
libaf \
|
libaf \
|
||||||
|
|
||||||
ifeq ($(CONFIG_LIBAVFORMAT),yes)
|
COMMON_LIBS-$(CONFIG_LIBAVFORMAT) += libavformat/libavformat.a
|
||||||
COMMON_LIBS += libavformat/libavformat.a
|
PARTS-$(CONFIG_LIBAVFORMAT) += libavformat
|
||||||
PARTS += libavformat
|
COMMON_LIBS-$(CONFIG_LIBAVCODEC) += libavcodec/libavcodec.a
|
||||||
endif
|
PARTS-$(CONFIG_LIBAVCODEC) += libavcodec
|
||||||
ifeq ($(CONFIG_LIBAVCODEC),yes)
|
COMMON_LIBS-$(CONFIG_LIBAVUTIL) += libavutil/libavutil.a
|
||||||
COMMON_LIBS += libavcodec/libavcodec.a
|
PARTS-$(CONFIG_LIBAVUTIL) += libavutil
|
||||||
PARTS += libavcodec
|
COMMON_LIBS-$(CONFIG_LIBPOSTPROC) += libpostproc/libpostproc.a
|
||||||
endif
|
PARTS-$(CONFIG_LIBPOSTPROC) += libpostproc
|
||||||
ifeq ($(CONFIG_LIBAVUTIL),yes)
|
COMMON_LIBS-$(WIN32DLL) += loader/libloader.a
|
||||||
COMMON_LIBS += libavutil/libavutil.a
|
PARTS-$(WIN32DLL) += loader
|
||||||
PARTS += libavutil
|
COMMON_LIBS-$(MP3LIB) += mp3lib/libMP3.a
|
||||||
endif
|
PARTS-$(MP3LIB) += mp3lib
|
||||||
ifeq ($(CONFIG_LIBPOSTPROC),yes)
|
COMMON_LIBS-$(LIBA52) += liba52/liba52.a
|
||||||
COMMON_LIBS += libpostproc/libpostproc.a
|
PARTS-$(LIBA52) += liba52
|
||||||
PARTS += libpostproc
|
COMMON_LIBS-$(LIBMPEG2) += libmpeg2/libmpeg2.a
|
||||||
endif
|
PARTS-$(LIBMPEG2) += libmpeg2
|
||||||
ifeq ($(WIN32DLL),yes)
|
COMMON_LIBS-$(FAAD_INTERNAL) += libfaad2/libfaad2.a
|
||||||
COMMON_LIBS += loader/libloader.a
|
PARTS-$(FAAD_INTERNAL) += libfaad2
|
||||||
PARTS += loader
|
COMMON_LIBS-$(TREMOR_INTERNAL) += tremor/libvorbisidec.a
|
||||||
endif
|
PARTS-$(TREMOR_INTERNAL) += tremor
|
||||||
ifeq ($(MP3LIB),yes)
|
LIBS_MPLAYER-$(VIDIX) += vidix/libvidix.a
|
||||||
COMMON_LIBS += mp3lib/libMP3.a
|
PARTS-$(VIDIX) += libdha vidix
|
||||||
PARTS += mp3lib
|
COMMON_LIBS-$(DVDREAD_INTERNAL) += dvdread/libdvdread.a
|
||||||
endif
|
PARTS-$(DVDREAD_INTERNAL) += dvdread
|
||||||
ifeq ($(LIBA52),yes)
|
COMMON_LIBS-$(DVDCSS_INTERNAL) += libdvdcss/libdvdcss.a
|
||||||
COMMON_LIBS += liba52/liba52.a
|
PARTS-$(DVDCSS_INTERNAL) += libdvdcss
|
||||||
PARTS += liba52
|
COMMON_LIBS-$(CONFIG_ASS) += libass/libass.a
|
||||||
endif
|
PARTS-$(CONFIG_ASS) += libass
|
||||||
ifeq ($(LIBMPEG2),yes)
|
LIBS_MPLAYER-$(GUI) += Gui/libgui.a
|
||||||
COMMON_LIBS += libmpeg2/libmpeg2.a
|
PARTS-$(GUI) += Gui
|
||||||
PARTS += libmpeg2
|
LIBS_MPLAYER-$(LIBMENU) += libmenu/libmenu.a
|
||||||
endif
|
PARTS-$(LIBMENU) += libmenu
|
||||||
ifeq ($(FAAD_INTERNAL),yes)
|
|
||||||
COMMON_LIBS += libfaad2/libfaad2.a
|
|
||||||
PARTS += libfaad2
|
|
||||||
endif
|
|
||||||
ifeq ($(TREMOR_INTERNAL),yes)
|
|
||||||
COMMON_LIBS += tremor/libvorbisidec.a
|
|
||||||
PARTS += tremor
|
|
||||||
endif
|
|
||||||
ifeq ($(VIDIX),yes)
|
|
||||||
LIBS_MPLAYER += vidix/libvidix.a
|
|
||||||
PARTS += libdha vidix
|
|
||||||
endif
|
|
||||||
ifeq ($(DVDREAD_INTERNAL),yes)
|
|
||||||
COMMON_LIBS += dvdread/libdvdread.a
|
|
||||||
PARTS += dvdread
|
|
||||||
endif
|
|
||||||
ifeq ($(DVDCSS_INTERNAL),yes)
|
|
||||||
COMMON_LIBS += libdvdcss/libdvdcss.a
|
|
||||||
PARTS += libdvdcss
|
|
||||||
endif
|
|
||||||
ifeq ($(CONFIG_ASS),yes)
|
|
||||||
COMMON_LIBS += libass/libass.a
|
|
||||||
PARTS += libass
|
|
||||||
endif
|
|
||||||
ifeq ($(GUI),yes)
|
|
||||||
LIBS_MPLAYER += Gui/libgui.a
|
|
||||||
PARTS += Gui
|
|
||||||
endif
|
|
||||||
ifeq ($(LIBMENU),yes)
|
|
||||||
LIBS_MPLAYER += libmenu/libmenu.a
|
|
||||||
PARTS += libmenu
|
|
||||||
endif
|
|
||||||
|
|
||||||
COMMON_LIBS += osdep/libosdep.a
|
COMMON_LIBS += osdep/libosdep.a
|
||||||
|
|
||||||
@ -165,12 +131,16 @@ LDFLAGS_MPLAYER = $(EXTRALIBS_MPLAYER) \
|
|||||||
LDFLAGS_MENCODER = $(EXTRALIBS_MENCODER) \
|
LDFLAGS_MENCODER = $(EXTRALIBS_MENCODER) \
|
||||||
$(COMMON_LDFLAGS) \
|
$(COMMON_LDFLAGS) \
|
||||||
|
|
||||||
ifeq ($(MPLAYER),yes)
|
ALL_PRG-$(MPLAYER) += mplayer$(EXESUF)
|
||||||
ALL_PRG = mplayer$(EXESUF)
|
ALL_PRG-$(MENCODER) += mencoder$(EXESUF)
|
||||||
endif
|
|
||||||
ifeq ($(MENCODER),yes)
|
SRCS_COMMON += $(SRCS_COMMON-yes)
|
||||||
ALL_PRG += mencoder$(EXESUF)
|
COMMON_LIBS += $(COMMON_LIBS-yes)
|
||||||
endif
|
LIBS_MPLAYER += $(LIBS_MPLAYER-yes)
|
||||||
|
OBJS_MPLAYER += $(OBJS_MPLAYER-yes)
|
||||||
|
PARTS += $(PARTS-yes)
|
||||||
|
ALL_PRG += $(ALL_PRG-yes)
|
||||||
|
|
||||||
|
|
||||||
.SUFFIXES: .cc .c .o
|
.SUFFIXES: .cc .c .o
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user