OSDN Git Service

vl/dri3: get Makefile properly
authorLeo Liu <leo.liu@amd.com>
Thu, 9 Jun 2016 17:11:52 +0000 (13:11 -0400)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 14 Jun 2016 14:48:39 +0000 (15:48 +0100)
commitab75b22029e844104f940ec80d78cc543cae5aef
tree99124e55e4a8dc0bb0ba0ab44f7eb86b105b5836
parent5cae2ac47e9dfb758c62b0d71dbd603453ea7bc7
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 <leo.liu@amd.com>
Acked-by: Emil Velikov <emil.velikov@collabora.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 0ef8500aabb5430eae76919438fcf61020b7eb8e)
src/gallium/auxiliary/Makefile.am
src/gallium/auxiliary/Makefile.sources
src/gallium/auxiliary/vl/vl_winsys_dri3.c