gallium/vc4: add automake target 'templates'
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 21 Sep 2014 15:31:14 +0000 (16:31 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 24 Sep 2014 09:44:01 +0000 (10:44 +0100)
Rather than duplicating the libdeps, extra define... all over the
targets, define them only once and use when applicable.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Matt Turner <mattst88@gmail.com>
src/gallium/drivers/vc4/Automake.inc [new file with mode: 0644]
src/gallium/targets/dri/Makefile.am

diff --git a/src/gallium/drivers/vc4/Automake.inc b/src/gallium/drivers/vc4/Automake.inc
new file mode 100644 (file)
index 0000000..6fa3e19
--- /dev/null
@@ -0,0 +1,13 @@
+if HAVE_GALLIUM_VC4
+
+TARGET_DRIVERS += vc4
+TARGET_CPPFLAGS += -DGALLIUM_VC4
+TARGET_LIB_DEPS += \
+       $(top_builddir)/src/gallium/winsys/vc4/drm/libvc4drm.la \
+       $(top_builddir)/src/gallium/drivers/vc4/libvc4.la
+
+if USE_VC4_SIMULATOR
+TARGET_CPPFLAGS += -DUSE_VC4_SIMULATOR
+endif
+
+endif
index 0143694171a2744fdd2d51ab241c8254dc2110db..24513584f2913c6cc77e6975f38852a2a1b0d971 100644 (file)
@@ -82,17 +82,7 @@ include $(top_srcdir)/src/gallium/drivers/svga/Automake.inc
 
 include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
 
-if HAVE_GALLIUM_VC4
-MEGADRIVERS += vc4
-STATIC_TARGET_CPPFLAGS += -DGALLIUM_VC4
-STATIC_TARGET_LIB_DEPS += \
-       $(top_builddir)/src/gallium/winsys/vc4/drm/libvc4drm.la \
-       $(top_builddir)/src/gallium/drivers/vc4/libvc4.la
-
-if USE_VC4_SIMULATOR
-STATIC_TARGET_CPPFLAGS += -DUSE_VC4_SIMULATOR
-endif
-endif
+include $(top_srcdir)/src/gallium/drivers/vc4/Automake.inc
 
 if HAVE_GALLIUM_SOFTPIPE
 MEGADRIVERS += swrast