diff options
Diffstat (limited to 'gst-libs/gst/codecparsers/Makefile.am')
-rw-r--r-- | gst-libs/gst/codecparsers/Makefile.am | 37 |
1 files changed, 29 insertions, 8 deletions
diff --git a/gst-libs/gst/codecparsers/Makefile.am b/gst-libs/gst/codecparsers/Makefile.am index aa10113b..4660a7dc 100644 --- a/gst-libs/gst/codecparsers/Makefile.am +++ b/gst-libs/gst/codecparsers/Makefile.am @@ -2,6 +2,9 @@ noinst_LTLIBRARIES = \ libgstvaapi-codecparsers.la \ $(NULL) +local_codecparsers_srcdir = \ + $(top_srcdir)/ext/codecparsers/gst-libs/gst/codecparsers + libgstvaapi_codecparsers_cflags = \ -DGST_USE_UNSTABLE_API \ -I$(top_srcdir)/gst-libs \ @@ -14,17 +17,23 @@ libgstvaapi_codecparsers_libs = \ $(GST_LIBS) \ $(NULL) -libgstvaapi_codecparsers_source_c = \ - gstjpegparser.c \ - $(NULL) +gen_source_c = +gen_source_h = -libgstvaapi_codecparsers_source_h = \ - gstjpegparser.h \ +if USE_LOCAL_CODEC_PARSERS_JPEG +gen_source_c += gstjpegparser.c +gen_source_h += gstjpegparser.h +endif + +GENFILES = \ + $(gen_source_c) \ + $(gen_source_h) \ $(NULL) -libgstvaapi_codecparsers_la_SOURCES = \ - $(libgstvaapi_codecparsers_source_c) \ - $(libgstvaapi_codecparsers_source_h) \ +nodist_EXTRA_libgstvaapi_codecparsers_la_SOURCES = dummy.c + +nodist_libgstvaapi_codecparsers_la_SOURCES = \ + $(gen_source_c) \ $(NULL) libgstvaapi_codecparsers_la_CFLAGS = \ @@ -39,5 +48,17 @@ libgstvaapi_codecparsers_la_LDFLAGS = \ $(GST_ALL_LDFLAGS) \ $(NULL) +all-local: .timestamp.symlinks + +.timestamp.symlinks: $(GENFILES) + touch $@ + +$(gen_source_c): %.c: $(local_codecparsers_srcdir)/%.c + $(LN_S) -f $< $@ +$(gen_source_h): %.h: $(local_codecparsers_srcdir)/%.h + $(LN_S) -f $< $@ + +DISTCLEANFILES = $(GENFILES) .timestamp.symlinks + # Extra clean files so that maintainer-clean removes *everything* MAINTAINERCLEANFILES = Makefile.in |