diff options
author | Dylan Baker <[email protected]> | 2017-09-30 20:48:32 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2017-10-03 10:02:08 -0700 |
commit | 7a5a986ddd88487a42847f00f46f7bb0a542c988 (patch) | |
tree | 6e58782eac3b11dadf6287e68c93eb0286671d0c /src/gtest/meson.build | |
parent | 052c0d5edacf377a4b36cc9fee2945f8a9b38787 (diff) |
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 <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gtest/meson.build')
-rw-r--r-- | src/gtest/meson.build | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gtest/meson.build b/src/gtest/meson.build index b51504d400a..91a49240416 100644 --- a/src/gtest/meson.build +++ b/src/gtest/meson.build @@ -24,3 +24,8 @@ libgtest = static_library( include_directories : include_directories('include'), build_by_default : false, ) + +idep_gtest = declare_dependency( + link_with : libgtest, + include_directories : include_directories('include', is_system : true), +) |