From 0ef8500aabb5430eae76919438fcf61020b7eb8e Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Thu, 9 Jun 2016 13:11:52 -0400 Subject: vl/dri3: get Makefile properly From original commit, the macro "if HAVE_DRI3" was in Makefile.sources, this file is shared with SCons, SCons is not able to parse this marco, the SCons build failed. Jose quickly gave two approaches and quick fix with his second approach, thanks Jose for the solutions and fixes. This patch is Jose's first approach, and it's more proper, because the dri3 c file should not be included to build when DRI3 is not enabled. Signed-off-by: Leo Liu Acked-by: Emil Velikov Cc: "12.0" --- src/gallium/auxiliary/Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gallium/auxiliary/Makefile.am') diff --git a/src/gallium/auxiliary/Makefile.am b/src/gallium/auxiliary/Makefile.am index 296ed59317b..d971a2b16e2 100644 --- a/src/gallium/auxiliary/Makefile.am +++ b/src/gallium/auxiliary/Makefile.am @@ -82,6 +82,13 @@ libgalliumvlwinsys_la_CFLAGS = \ libgalliumvlwinsys_la_SOURCES = \ $(VL_WINSYS_SOURCES) +if HAVE_DRI3 + +libgalliumvlwinsys_la_SOURCES += \ + $(VL_WINSYS_DRI3_SOURCES) + +endif + endif endif -- cgit v1.2.3