wgl: Fix unit test when using shared glapi

Reviewed By: Bill Kristiansen <billkris@microsoft.com>

Reviewed-by: Charmaine Lee >charmainel@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12677>
This commit is contained in:
Jesse Natalie 2021-09-03 15:43:15 -07:00
parent 92f515ad6e
commit 03006926de
2 changed files with 7 additions and 0 deletions

View File

@ -67,10 +67,16 @@ if with_tests
# 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()
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],
)
endif

View File

@ -60,6 +60,7 @@ libglapi = shared_library(
name_prefix : 'lib',
install : true,
)
libglapi_build_dir = meson.current_build_dir()
if with_any_opengl and with_tests
test(