Mesa (master): meson: only build clapi tests when OpenGL is being built
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Oct 9 15:56:45 UTC 2018
Module: Mesa
Branch: master
Commit: 0fa6a8271a3e63e1f37a95ca598172f7ef1e2340
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0fa6a8271a3e63e1f37a95ca598172f7ef1e2340
Author: Dylan Baker <dylan at pnwbakers.com>
Date: Fri Oct 5 09:33:59 2018 -0700
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 at intel.com>
---
src/mapi/glapi/meson.build | 2 +-
src/mapi/shared-glapi/meson.build | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mapi/glapi/meson.build b/src/mapi/glapi/meson.build
index 2509e19eaa..048bee8a1a 100644
--- a/src/mapi/glapi/meson.build
+++ b/src/mapi/glapi/meson.build
@@ -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(
diff --git a/src/mapi/shared-glapi/meson.build b/src/mapi/shared-glapi/meson.build
index 44e86f845f..dcc6079af3 100644
--- a/src/mapi/shared-glapi/meson.build
+++ b/src/mapi/shared-glapi/meson.build
@@ -50,7 +50,7 @@ libglapi = shared_library(
install : true,
)
-if with_tests
+if with_any_opengl and with_tests
test(
'shared-glapi-test',
executable(
More information about the mesa-commit
mailing list