2017-10-01 21:21:02 +00:00
|
|
|
AVPROGS-$(CONFIG_FFMPEG) += ffmpeg
|
|
|
|
AVPROGS-$(CONFIG_FFPLAY) += ffplay
|
|
|
|
AVPROGS-$(CONFIG_FFPROBE) += ffprobe
|
|
|
|
|
|
|
|
AVPROGS := $(AVPROGS-yes:%=%$(PROGSSUF)$(EXESUF))
|
|
|
|
PROGS += $(AVPROGS)
|
|
|
|
|
2017-10-21 18:31:44 +00:00
|
|
|
AVBASENAMES = ffmpeg ffplay ffprobe
|
2017-10-01 21:21:02 +00:00
|
|
|
ALLAVPROGS = $(AVBASENAMES:%=%$(PROGSSUF)$(EXESUF))
|
|
|
|
ALLAVPROGS_G = $(AVBASENAMES:%=%$(PROGSSUF)_g$(EXESUF))
|
|
|
|
|
2021-11-10 13:51:48 +00:00
|
|
|
OBJS-ffmpeg += \
|
2023-04-11 11:21:56 +00:00
|
|
|
fftools/ffmpeg_dec.o \
|
2022-08-03 12:08:44 +00:00
|
|
|
fftools/ffmpeg_demux.o \
|
2023-03-25 03:36:28 +00:00
|
|
|
fftools/ffmpeg_enc.o \
|
2021-11-10 13:51:48 +00:00
|
|
|
fftools/ffmpeg_filter.o \
|
|
|
|
fftools/ffmpeg_hw.o \
|
|
|
|
fftools/ffmpeg_mux.o \
|
2022-10-13 10:24:43 +00:00
|
|
|
fftools/ffmpeg_mux_init.o \
|
2021-11-10 13:51:48 +00:00
|
|
|
fftools/ffmpeg_opt.o \
|
2023-05-18 14:56:15 +00:00
|
|
|
fftools/ffmpeg_sched.o \
|
2022-06-10 12:21:42 +00:00
|
|
|
fftools/objpool.o \
|
|
|
|
fftools/sync_queue.o \
|
2022-04-03 11:59:14 +00:00
|
|
|
fftools/thread_queue.o \
|
2017-10-01 21:21:02 +00:00
|
|
|
|
2023-11-07 16:45:04 +00:00
|
|
|
OBJS-ffplay += fftools/ffplay_renderer.o
|
|
|
|
|
2017-10-01 21:21:02 +00:00
|
|
|
define DOFFTOOL
|
2022-03-09 11:11:09 +00:00
|
|
|
OBJS-$(1) += fftools/cmdutils.o fftools/opt_common.o fftools/$(1).o $(OBJS-$(1)-yes)
|
2022-08-07 13:28:24 +00:00
|
|
|
ifdef HAVE_GNU_WINDRES
|
|
|
|
OBJS-$(1) += fftools/fftoolsres.o
|
|
|
|
endif
|
2017-10-01 21:21:02 +00:00
|
|
|
$(1)$(PROGSSUF)_g$(EXESUF): $$(OBJS-$(1))
|
|
|
|
$$(OBJS-$(1)): | fftools
|
|
|
|
$$(OBJS-$(1)): CFLAGS += $(CFLAGS-$(1))
|
|
|
|
$(1)$(PROGSSUF)_g$(EXESUF): LDFLAGS += $(LDFLAGS-$(1))
|
|
|
|
$(1)$(PROGSSUF)_g$(EXESUF): FF_EXTRALIBS += $(EXTRALIBS-$(1))
|
|
|
|
-include $$(OBJS-$(1):.o=.d)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach P,$(AVPROGS-yes),$(eval $(call DOFFTOOL,$(P))))
|
|
|
|
|
|
|
|
all: $(AVPROGS)
|
|
|
|
|
|
|
|
fftools/ffprobe.o fftools/cmdutils.o: libavutil/ffversion.h | fftools
|
2019-03-10 22:31:13 +00:00
|
|
|
OUTDIRS += fftools
|
2017-10-01 21:21:02 +00:00
|
|
|
|
|
|
|
ifdef AVPROGS
|
|
|
|
install: install-progs install-data
|
|
|
|
endif
|
|
|
|
|
|
|
|
install-progs-yes:
|
|
|
|
install-progs-$(CONFIG_SHARED): install-libs
|
|
|
|
|
|
|
|
install-progs: install-progs-yes $(AVPROGS)
|
|
|
|
$(Q)mkdir -p "$(BINDIR)"
|
|
|
|
$(INSTALL) -c -m 755 $(AVPROGS) "$(BINDIR)"
|
|
|
|
|
|
|
|
uninstall: uninstall-progs
|
|
|
|
|
|
|
|
uninstall-progs:
|
|
|
|
$(RM) $(addprefix "$(BINDIR)/", $(ALLAVPROGS))
|
|
|
|
|
|
|
|
clean::
|
|
|
|
$(RM) $(ALLAVPROGS) $(ALLAVPROGS_G) $(CLEANSUFFIXES:%=fftools/%)
|