summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2015-09-24 10:35:44 +0000
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2015-11-18 20:56:44 +0100
commitfc8a0d121c157720ae25b684f28e909e79d56e24 (patch)
tree2f23ae3405cf64ee92b1aa4b06184e7c2574883a
parenta24918037d3d3638ad785bde2a334e29d2a656a1 (diff)
downloadgst-vaapi-fc8a0d121c157720ae25b684f28e909e79d56e24.tar.gz
build: declare real built files
When runnig the `make dist` target from a clean tree, it fails because if could not find the copied files from codecparsers submodule. They weren't copied because they weren't declared as built sources. This patch removes the stamp mechanism and use the actual file list to copy as the built sources. Also it fixes the duplication of the parser files. Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> https://bugzilla.gnome.org/show_bug.cgi?id=755525
-rw-r--r--gst/vaapi/Makefile.am27
1 files changed, 15 insertions, 12 deletions
diff --git a/gst/vaapi/Makefile.am b/gst/vaapi/Makefile.am
index 95001bd3..7a5f31a0 100644
--- a/gst/vaapi/Makefile.am
+++ b/gst/vaapi/Makefile.am
@@ -185,13 +185,12 @@ libgstvaapi_1_4p_parse_gen_source_h = \
$(NULL)
libgstvaapi_parse_gen_sources = \
- $(libgstvaapi_parse_gen_source_c) \
- $(libgstvaapi_parse_gen_source_h) \
+ $(libgstvaapi_parse_gen_source_c) \
+ $(libgstvaapi_parse_gen_source_h) \
+ $(libgstvaapi_1_4p_parse_gen_source_c) \
+ $(libgstvaapi_1_4p_parse_gen_source_h) \
$(NUL)
-libgstvaapi_parse_gen_sources += $(libgstvaapi_1_4p_parse_gen_source_c)
-libgstvaapi_parse_gen_sources += $(libgstvaapi_1_4p_parse_gen_source_h)
-
libgstvaapi_parse_source_c = gstvaapiparse.c $(libgstvaapi_parse_gen_source_c)
libgstvaapi_parse_source_h = gstvaapiparse.h $(libgstvaapi_parse_gen_source_h)
@@ -233,17 +232,21 @@ videoparsers_patches_dir = \
include $(videoparsers_patches_dir)/series.frag
videoparsers_patches = \
$(videoparsers_patches_base:%=$(top_srcdir)/patches/videoparsers/%)
+videoparsers_orig_sources = \
+ $(libgstvaapi_parse_gen_sources:%=$(videoparsers_sources_dir)/%)
-videoparsers.prepare.stamp: $(videoparsers_patches)
- @for f in $(libgstvaapi_parse_gen_sources); do \
- cp -f $(videoparsers_sources_dir)/$$f $$f; \
- done
- @for f in $(videoparsers_patches); do \
- patch -p3 < $$f; \
+$(libgstvaapi_parse_gen_sources): $(videoparsers_orig_sources)
+ cp -f $(videoparsers_sources_dir)/$@ $@
+
+videoparsers.prepare.stamp: $(videoparsers_patches) $(libgstvaapi_parse_gen_sources)
+ @for f in $(videoparsers_patches); do \
+ patch -p3 < $$f; \
done
@touch $@
-BUILT_SOURCES += videoparsers.prepare.stamp
+BUILT_SOURCES += \
+ $(libgstvaapi_parse_gen_sources) \
+ videoparsers.prepare.stamp
endif
CLEANFILES = \