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:
@@ -90,7 +90,12 @@ libsvga = static_library(
|
|||||||
dependencies : idep_mesautil,
|
dependencies : idep_mesautil,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
svga_deps = [libsvga]
|
||||||
|
if not with_platform_windows
|
||||||
|
svga_deps += libsvgadrm
|
||||||
|
endif
|
||||||
|
|
||||||
driver_svga = declare_dependency(
|
driver_svga = declare_dependency(
|
||||||
compile_args : '-DGALLIUM_VMWGFX',
|
compile_args : '-DGALLIUM_VMWGFX',
|
||||||
link_with : [libsvga, libsvgadrm],
|
link_with : svga_deps,
|
||||||
)
|
)
|
||||||
|
@@ -137,7 +137,9 @@ else
|
|||||||
driver_i915 = declare_dependency()
|
driver_i915 = declare_dependency()
|
||||||
endif
|
endif
|
||||||
if with_gallium_svga
|
if with_gallium_svga
|
||||||
subdir('winsys/svga/drm')
|
if not with_platform_windows
|
||||||
|
subdir('winsys/svga/drm')
|
||||||
|
endif
|
||||||
subdir('drivers/svga')
|
subdir('drivers/svga')
|
||||||
else
|
else
|
||||||
driver_svga = declare_dependency()
|
driver_svga = declare_dependency()
|
||||||
|
Reference in New Issue
Block a user