1 From ac9d7d230effdb97870c2f317b3b45449bde1769 Mon Sep 17 00:00:00 2001
2 From: Anuj Mittal <am.devel@gmail.com>
3 Date: Wed, 11 Apr 2018 15:40:02 +0800
4 Subject: [PATCH] validate: fix template paths when buildir is different
6 Compilation just fails otherwise because it's not able to locate the files.
8 Upstream-Status: Submitted [https://bugzilla.gnome.org/show_bug.cgi?id=795149]
9 Signed-off-by: Anuj Mittal <am.devel@gmail.com>
12 gst/validate/Makefile.am | 7 +++++--
13 1 file changed, 5 insertions(+), 2 deletions(-)
15 diff --git a/gst/validate/Makefile.am b/gst/validate/Makefile.am
16 index 342730a..3fcc3e5 100644
17 --- a/gst/validate/Makefile.am
18 +++ b/gst/validate/Makefile.am
19 @@ -48,14 +48,17 @@ source_h = \
20 nodist_libgstvalidate_@GST_API_VERSION@_la_SOURCES = $(built_source_make)
21 nodist_libgstvalidate_@GST_API_VERSION@include_HEADERS = $(built_header_make)
23 +template_h = $(patsubst %,$(srcdir)/%, gst-validate-enum-types.h.template)
24 +template_c = $(patsubst %,$(srcdir)/%, gst-validate-enum-types.c.template)
26 gst-validate-enum-types.h: $(source_h)
27 $(AM_V_GEN)$(GLIB_MKENUMS) \
28 - --template gst-validate-enum-types.h.template \
29 + --template $(template_h) \
30 $^ > gst-validate-enum-types.h
32 gst-validate-enum-types.c: $(source_h)
33 $(AM_V_GEN)$(GLIB_MKENUMS) \
34 - --template gst-validate-enum-types.c.template \
35 + --template $(template_c) \
36 $^ > gst-validate-enum-types.c