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:
parent
92f515ad6e
commit
03006926de
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue