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 <dylanx.c.baker@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -146,9 +146,9 @@ if with_tests
|
||||
[t, nir_opcodes_h, ir_expression_operation_h],
|
||||
'test_@0@.cpp'.format(t),
|
||||
include_directories : [inc_common, inc_intel],
|
||||
link_with : [libgtest, libintel_compiler, libintel_common, libnir,
|
||||
libmesa_util, libisl],
|
||||
dependencies : [dep_thread, dep_dl],
|
||||
link_with : [libintel_compiler, libintel_common, libnir, libmesa_util,
|
||||
libisl],
|
||||
dependencies : [dep_thread, dep_dl, idep_gtest],
|
||||
)
|
||||
test(t, _exe)
|
||||
endforeach
|
||||
|
Reference in New Issue
Block a user