meson: Enable wgl tests on mingw

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16084>
This commit is contained in:
Yonggang Luo 2022-04-22 02:09:52 +08:00 committed by Marge Bot
parent a9e34d6d8e
commit d4ce845a8d

View file

@ -68,21 +68,18 @@ if with_tests
dependencies : [idep_gtest, dep_dxheaders, extra_test_deps],
)
# The CI pipeline for MinGW doesn't support creating a window, so don't run these tests there
if with_tests and cc.get_id() != 'gcc'
wgl_test_env = environment()
wgl_test_env.append('PATH', libgallium_wgl_build_dir)
if with_shared_glapi
wgl_test_env.append('PATH', libglapi_build_dir)
endif
test(
'wgl',
test_wgl,
suite : ['wgl'],
env : wgl_test_env,
depends : [libopengl32],
protocol : gtest_test_protocol,
)
wgl_test_env = environment()
wgl_test_env.append('PATH', libgallium_wgl_build_dir)
if with_shared_glapi
wgl_test_env.append('PATH', libglapi_build_dir)
endif
test(
'wgl',
test_wgl,
suite : ['wgl'],
env : wgl_test_env,
depends : [libopengl32],
protocol : gtest_test_protocol,
)
endif