summaryrefslogtreecommitdiff
path: root/src/gallium/targets/libgl-gdi
diff options
context:
space:
mode:
authorYonggang Luo <luoyonggang@gmail.com>2022-04-22 02:09:52 +0800
committerMarge Bot <emma+marge@anholt.net>2022-06-23 09:27:06 +0000
commitd4ce845a8db246b4f0f8a90dd3b654cf4dc571e2 (patch)
treea2d0f8d15c13307674c2fa828181d9cc32086476 /src/gallium/targets/libgl-gdi
parenta9e34d6d8e1f1424819e4d457463490b9234867b (diff)
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>
Diffstat (limited to 'src/gallium/targets/libgl-gdi')
-rw-r--r--src/gallium/targets/libgl-gdi/meson.build29
1 files changed, 13 insertions, 16 deletions
diff --git a/src/gallium/targets/libgl-gdi/meson.build b/src/gallium/targets/libgl-gdi/meson.build
index 1edb4a1ff59..e344090e2e7 100644
--- a/src/gallium/targets/libgl-gdi/meson.build
+++ b/src/gallium/targets/libgl-gdi/meson.build
@@ -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