meson: only build clapi tests when OpenGL is being built
authorDylan Baker <dylan@pnwbakers.com>
Fri, 5 Oct 2018 16:33:59 +0000 (09:33 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 9 Oct 2018 15:55:48 +0000 (08:55 -0700)
commit0fa6a8271a3e63e1f37a95ca598172f7ef1e2340
treec78d25dba8342fb7135d96ccf1db1601c968ad3b
parent92f56fbd8969801fc88de606e1051dc397331e7d
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>
src/mapi/glapi/meson.build
src/mapi/shared-glapi/meson.build