2023-01-15 11:44:04 +00:00
|
|
|
EXAMPLES-$(CONFIG_AVIO_HTTP_SERVE_FILES) += avio_http_serve_files
|
2020-01-10 11:10:09 +00:00
|
|
|
EXAMPLES-$(CONFIG_AVIO_LIST_DIR_EXAMPLE) += avio_list_dir
|
2023-01-15 02:06:39 +00:00
|
|
|
EXAMPLES-$(CONFIG_AVIO_READ_CALLBACK_EXAMPLE) += avio_read_callback
|
2017-10-04 01:11:58 +00:00
|
|
|
EXAMPLES-$(CONFIG_DECODE_AUDIO_EXAMPLE) += decode_audio
|
2023-01-15 11:26:30 +00:00
|
|
|
EXAMPLES-$(CONFIG_DECODE_FILTER_AUDIO_EXAMPLE) += decode_filter_audio
|
2023-01-15 11:33:11 +00:00
|
|
|
EXAMPLES-$(CONFIG_DECODE_FILTER_VIDEO_EXAMPLE) += decode_filter_video
|
2017-10-04 01:11:58 +00:00
|
|
|
EXAMPLES-$(CONFIG_DECODE_VIDEO_EXAMPLE) += decode_video
|
2023-01-15 02:13:01 +00:00
|
|
|
EXAMPLES-$(CONFIG_DEMUX_DECODE_EXAMPLE) += demux_decode
|
2017-10-04 01:11:58 +00:00
|
|
|
EXAMPLES-$(CONFIG_ENCODE_AUDIO_EXAMPLE) += encode_audio
|
|
|
|
EXAMPLES-$(CONFIG_ENCODE_VIDEO_EXAMPLE) += encode_video
|
|
|
|
EXAMPLES-$(CONFIG_EXTRACT_MVS_EXAMPLE) += extract_mvs
|
|
|
|
EXAMPLES-$(CONFIG_FILTER_AUDIO_EXAMPLE) += filter_audio
|
|
|
|
EXAMPLES-$(CONFIG_HW_DECODE_EXAMPLE) += hw_decode
|
2023-01-15 11:53:31 +00:00
|
|
|
EXAMPLES-$(CONFIG_MUX_EXAMPLE) += mux
|
2023-01-15 11:56:54 +00:00
|
|
|
EXAMPLES-$(CONFIG_QSV_DECODE_EXAMPLE) += qsv_decode
|
2023-01-15 12:03:47 +00:00
|
|
|
EXAMPLES-$(CONFIG_REMUX_EXAMPLE) += remux
|
2023-01-15 15:43:06 +00:00
|
|
|
EXAMPLES-$(CONFIG_RESAMPLE_AUDIO_EXAMPLE) += resample_audio
|
2023-01-15 15:44:25 +00:00
|
|
|
EXAMPLES-$(CONFIG_SCALE_VIDEO_EXAMPLE) += scale_video
|
2023-01-15 11:49:32 +00:00
|
|
|
EXAMPLES-$(CONFIG_SHOW_METADATA_EXAMPLE) += show_metadata
|
2017-10-04 01:11:58 +00:00
|
|
|
EXAMPLES-$(CONFIG_TRANSCODE_AAC_EXAMPLE) += transcode_aac
|
2023-01-15 12:11:09 +00:00
|
|
|
EXAMPLES-$(CONFIG_TRANSCODE_EXAMPLE) += transcode
|
2017-11-06 06:45:27 +00:00
|
|
|
EXAMPLES-$(CONFIG_VAAPI_ENCODE_EXAMPLE) += vaapi_encode
|
2018-01-11 07:00:30 +00:00
|
|
|
EXAMPLES-$(CONFIG_VAAPI_TRANSCODE_EXAMPLE) += vaapi_transcode
|
2022-10-31 07:22:25 +00:00
|
|
|
EXAMPLES-$(CONFIG_QSV_TRANSCODE_EXAMPLE) += qsv_transcode
|
2017-10-04 01:11:58 +00:00
|
|
|
|
|
|
|
EXAMPLES := $(EXAMPLES-yes:%=doc/examples/%$(PROGSSUF)$(EXESUF))
|
|
|
|
EXAMPLES_G := $(EXAMPLES-yes:%=doc/examples/%$(PROGSSUF)_g$(EXESUF))
|
|
|
|
ALL_EXAMPLES := $(EXAMPLES) $(EXAMPLES-:%=doc/examples/%$(PROGSSUF)$(EXESUF))
|
|
|
|
ALL_EXAMPLES_G := $(EXAMPLES_G) $(EXAMPLES-:%=doc/examples/%$(PROGSSUF)_g$(EXESUF))
|
|
|
|
PROGS += $(EXAMPLES)
|
2017-09-29 18:09:19 +00:00
|
|
|
|
|
|
|
EXAMPLE_MAKEFILE := $(SRC_PATH)/doc/examples/Makefile
|
2017-10-05 03:47:41 +00:00
|
|
|
EXAMPLES_FILES := $(wildcard $(SRC_PATH)/doc/examples/*.c) $(SRC_PATH)/doc/examples/README $(EXAMPLE_MAKEFILE)
|
2017-02-15 12:31:52 +00:00
|
|
|
|
2017-10-04 01:11:58 +00:00
|
|
|
$(foreach P,$(EXAMPLES),$(eval OBJS-$(P:%$(PROGSSUF)$(EXESUF)=%) = $(P:%$(PROGSSUF)$(EXESUF)=%).o))
|
|
|
|
$(EXAMPLES_G): %$(PROGSSUF)_g$(EXESUF): %.o
|
2017-02-14 12:15:25 +00:00
|
|
|
|
2017-02-22 13:18:47 +00:00
|
|
|
examples: $(EXAMPLES)
|
2017-02-15 12:31:52 +00:00
|
|
|
|
2017-10-04 01:11:58 +00:00
|
|
|
$(EXAMPLES:%$(PROGSSUF)$(EXESUF)=%.o): | doc/examples
|
2019-02-03 11:59:57 +00:00
|
|
|
OUTDIRS += doc/examples
|
2017-02-15 12:31:52 +00:00
|
|
|
|
2017-10-04 01:11:58 +00:00
|
|
|
DOXY_INPUT += $(EXAMPLES:%$(PROGSSUF)$(EXESUF)=%.c)
|
2017-02-15 12:31:52 +00:00
|
|
|
|
2017-10-05 03:47:41 +00:00
|
|
|
install: install-examples
|
|
|
|
|
|
|
|
install-examples: $(EXAMPLES_FILES)
|
|
|
|
$(Q)mkdir -p "$(DATADIR)/examples"
|
|
|
|
$(INSTALL) -m 644 $(EXAMPLES_FILES) "$(DATADIR)/examples"
|
|
|
|
$(INSTALL) -m 644 $(EXAMPLE_MAKEFILE:%=%.example) "$(DATADIR)/examples/Makefile"
|
|
|
|
|
|
|
|
uninstall: uninstall-examples
|
|
|
|
|
|
|
|
uninstall-examples:
|
|
|
|
$(RM) -r "$(DATADIR)/examples"
|
|
|
|
|
2017-09-29 18:09:19 +00:00
|
|
|
examplesclean:
|
2017-10-04 01:11:58 +00:00
|
|
|
$(RM) $(ALL_EXAMPLES) $(ALL_EXAMPLES_G)
|
2017-02-15 12:31:52 +00:00
|
|
|
$(RM) $(CLEANSUFFIXES:%=doc/examples/%)
|
|
|
|
|
2017-09-29 18:09:19 +00:00
|
|
|
docclean:: examplesclean
|
|
|
|
|
2017-10-04 01:11:58 +00:00
|
|
|
-include $(wildcard $(EXAMPLES:%$(PROGSSUF)$(EXESUF)=%.d))
|
2017-02-14 12:15:25 +00:00
|
|
|
|
2017-02-15 12:31:52 +00:00
|
|
|
.PHONY: examples
|