[Mesa-dev] [PATCH 3/3] targets/xvmc: create symlink to aux/vl/vl_winsys_dri.cat at build time

Emil Velikov emil.l.velikov at gmail.com
Fri Sep 19 16:01:57 PDT 2014


Ensure that the object is build in the target folder, as automake 2.0
will mandate subdir-objects. Pointed out by automake 1.14.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=69874
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/gallium/targets/xvmc/.gitignore  | 1 +
 src/gallium/targets/xvmc/Makefile.am | 9 +++++++--
 2 files changed, 8 insertions(+), 2 deletions(-)
 create mode 100644 src/gallium/targets/xvmc/.gitignore

diff --git a/src/gallium/targets/xvmc/.gitignore b/src/gallium/targets/xvmc/.gitignore
new file mode 100644
index 0000000..4fd1800
--- /dev/null
+++ b/src/gallium/targets/xvmc/.gitignore
@@ -0,0 +1 @@
+vl_winsys_dri.c
diff --git a/src/gallium/targets/xvmc/Makefile.am b/src/gallium/targets/xvmc/Makefile.am
index 884bccf..f6c7e03 100644
--- a/src/gallium/targets/xvmc/Makefile.am
+++ b/src/gallium/targets/xvmc/Makefile.am
@@ -7,8 +7,7 @@ xvmcdir = $(XVMC_LIB_INSTALL_DIR)
 xvmc_LTLIBRARIES = libXvMCgallium.la
 
 nodist_EXTRA_libXvMCgallium_la_SOURCES = dummy.cpp
-libXvMCgallium_la_SOURCES = \
-	$(top_srcdir)/src/gallium/auxiliary/vl/vl_winsys_dri.c
+libXvMCgallium_la_SOURCES = vl_winsys_dri.c
 
 libXvMCgallium_la_LDFLAGS = \
 	-shared \
@@ -31,6 +30,12 @@ libXvMCgallium_la_LIBADD = \
 	$(LIBDRM_LIBS) \
 	$(GALLIUM_COMMON_LIB_DEPS)
 
+BUILT_SOURCES = vl_winsys_dri.c
+CLEANFILES = vl_winsys_dri.c
+
+vl_winsys_dri.c:
+	$(AM_V_GEN)$(LN_S) $(top_srcdir)/src/gallium/auxiliary/vl/vl_winsys_dri.c
+
 
 if HAVE_GALLIUM_STATIC_TARGETS
 
-- 
2.1.0



More information about the mesa-dev mailing list