From d4ce845a8db246b4f0f8a90dd3b654cf4dc571e2 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Fri, 22 Apr 2022 02:09:52 +0800 Subject: [PATCH] meson: Enable wgl tests on mingw Signed-off-by: Yonggang Luo Reviewed-by: Jesse Natalie Acked-by: Daniel Stone Part-of: --- src/gallium/targets/libgl-gdi/meson.build | 29 ++++++++++------------- 1 file 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