meson: only build clapi tests when OpenGL is being built
Otherwise building just vulkan (among other things) will build these tests, pull in a bunch of stuff they shouldn't, and potentially fail to compile. Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
@@ -78,7 +78,7 @@ libglapi_static = static_library(
|
||||
build_by_default : false,
|
||||
)
|
||||
|
||||
if not with_shared_glapi and with_tests
|
||||
if with_any_opengl and not with_shared_glapi and with_tests
|
||||
test(
|
||||
'glapi_static_check_table',
|
||||
executable(
|
||||
|
@@ -50,7 +50,7 @@ libglapi = shared_library(
|
||||
install : true,
|
||||
)
|
||||
|
||||
if with_tests
|
||||
if with_any_opengl and with_tests
|
||||
test(
|
||||
'shared-glapi-test',
|
||||
executable(
|
||||
|
Reference in New Issue
Block a user