meson: Don't build svgadrm on windows

Building svgadrm module on window platform is not required.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7806>
This commit is contained in:
Neha Bhende 2020-11-26 08:45:54 -08:00 committed by Marge Bot
parent 8955980f17
commit 81702c0ba6
2 changed files with 9 additions and 2 deletions

View File

@ -90,7 +90,12 @@ libsvga = static_library(
dependencies : idep_mesautil,
)
svga_deps = [libsvga]
if not with_platform_windows
svga_deps += libsvgadrm
endif
driver_svga = declare_dependency(
compile_args : '-DGALLIUM_VMWGFX',
link_with : [libsvga, libsvgadrm],
link_with : svga_deps,
)

View File

@ -137,7 +137,9 @@ else
driver_i915 = declare_dependency()
endif
if with_gallium_svga
subdir('winsys/svga/drm')
if not with_platform_windows
subdir('winsys/svga/drm')
endif
subdir('drivers/svga')
else
driver_svga = declare_dependency()