mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 20:10:17 +01:00
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>
This commit is contained in:
parent
2b4cee0571
commit
0ef8500aab
3 changed files with 10 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -350,9 +350,11 @@ VL_SOURCES := \
|
|||
# XXX: Nuke this as our dri targets no longer depend on VL.
|
||||
VL_WINSYS_SOURCES := \
|
||||
vl/vl_winsys_dri.c \
|
||||
vl/vl_winsys_dri3.c \
|
||||
vl/vl_winsys_drm.c
|
||||
|
||||
VL_WINSYS_DRI3_SOURCES := \
|
||||
vl/vl_winsys_dri3.c
|
||||
|
||||
VL_STUB_SOURCES := \
|
||||
vl/vl_stubs.c
|
||||
|
||||
|
|
|
|||
|
|
@ -25,8 +25,6 @@
|
|||
*
|
||||
**************************************************************************/
|
||||
|
||||
#if defined(HAVE_DRI3)
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
#include <X11/Xlib-xcb.h>
|
||||
|
|
@ -706,5 +704,3 @@ free_screen:
|
|||
FREE(scrn);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif // defined(HAVE_DRI3)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue