From 7a5a986ddd88487a42847f00f46f7bb0a542c988 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Sat, 30 Sep 2017 20:48:32 -0700 Subject: meson: convert gtest to an internal dependency In truth gtest is an external dependency that upstream expects you to "vendor" into your own tree. As such, it makes sense to treat it more like a dependency than an internal library, and collect it's requirements together in a dependency object. v2: - include with -isystem instead of setting compiler args (Eric) Signed-off-by: Dylan Baker Reviewed-by: Eric Anholt --- src/compiler/nir/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler') diff --git a/src/compiler/nir/meson.build b/src/compiler/nir/meson.build index c260dca5467..8a85d119530 100644 --- a/src/compiler/nir/meson.build +++ b/src/compiler/nir/meson.build @@ -197,8 +197,8 @@ if with_tests [files('tests/control_flow_tests.cpp'), nir_opcodes_h], c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args], include_directories : [inc_common], - dependencies : [dep_thread], - link_with : [libmesa_util, libnir, libgtest], + dependencies : [dep_thread, idep_gtest], + link_with : [libmesa_util, libnir], ) test('nir_control_flow', nir_control_flow_test) -- cgit v1.2.3