From b339182eba34f28de5f1a477cdd2c84f1ef35d90 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sat, 15 Feb 2014 15:50:29 +0100 Subject: [PATCH] Move all example programs to doc/examples Also drop support for building examples in library directories. --- common.mak | 1 - configure | 4 ++++ doc/Makefile | 4 +++- doc/doxy-wrapper.sh | 2 +- libavcodec/api-example.c => doc/examples/avcodec.c | 2 +- .../metadata-example.c => doc/examples/metadata.c | 2 +- doc/examples/output.c | 2 +- doc/examples/transcode_aac.c | 2 +- libavcodec/Makefile | 2 -- libavformat/Makefile | 2 -- library.mak | 14 ++++++-------- 11 files changed, 18 insertions(+), 19 deletions(-) rename libavcodec/api-example.c => doc/examples/avcodec.c (99%) rename libavformat/metadata-example.c => doc/examples/metadata.c (97%) diff --git a/common.mak b/common.mak index 6836c11241..ade9376191 100644 --- a/common.mak +++ b/common.mak @@ -14,7 +14,6 @@ TESTPROGS += $(TESTPROGS-yes) LDLIBS = $(FFLIBS:%=%$(BUILDSUF)) FFEXTRALIBS := $(LDLIBS:%=$(LD_LIB)) $(EXTRALIBS) -EXAMPLES := $(EXAMPLES:%=$(SUBDIR)%-example$(EXESUF)) OBJS := $(sort $(OBJS:%=$(SUBDIR)%)) TESTOBJS := $(TESTOBJS:%=$(SUBDIR)%) $(TESTPROGS:%=$(SUBDIR)%-test.o) TESTPROGS := $(TESTPROGS:%=$(SUBDIR)%-test$(EXESUF)) diff --git a/configure b/configure index a5407c7c5b..292da47f72 100755 --- a/configure +++ b/configure @@ -1095,6 +1095,8 @@ COMPONENT_LIST=" " EXAMPLE_LIST=" + avcodec_example + metadata_example output_example transcode_aac_example " @@ -2020,6 +2022,8 @@ ocv_filter_deps="libopencv" scale_filter_deps="swscale" # examples +avcodec_example_deps="avcodec avutil" +metadata_example_deps="avformat avutil" output_example_deps="avcodec avformat avutil swscale" transcode_aac_example_deps="avcodec avformat avresample" diff --git a/doc/Makefile b/doc/Makefile index 6af8116533..0cb2335768 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -15,9 +15,11 @@ DOCS-$(CONFIG_POD2MAN) += $(MANPAGES) $(PODPAGES) DOCS-$(CONFIG_TEXI2HTML) += $(HTMLPAGES) DOCS = $(DOCS-yes) +DOC_EXAMPLES-$(CONFIG_AVCODEC_EXAMPLE) += avcodec +DOC_EXAMPLES-$(CONFIG_METADATA_EXAMPLE) += metadata DOC_EXAMPLES-$(CONFIG_OUTPUT_EXAMPLE) += output DOC_EXAMPLES-$(CONFIG_TRANSCODE_AAC_EXAMPLE) += transcode_aac -ALL_DOC_EXAMPLES = output transcode_aac +ALL_DOC_EXAMPLES = avcodec metadata output transcode_aac DOC_EXAMPLES := $(DOC_EXAMPLES-yes:%=doc/examples/%$(EXESUF)) ALL_DOC_EXAMPLES := $(ALL_DOC_EXAMPLES:%=doc/examples/%$(EXESUF)) diff --git a/doc/doxy-wrapper.sh b/doc/doxy-wrapper.sh index e1b8363e5f..d38dd0bcdd 100755 --- a/doc/doxy-wrapper.sh +++ b/doc/doxy-wrapper.sh @@ -8,7 +8,7 @@ shift 2 doxygen - <