blob: daef67e98f8b70527487046f94f8ff585d921cbc [file] [log] [blame]
David Brazdil90435b52019-12-23 14:14:10 +00001# Copyright 2018 The Hafnium Authors.
2#
Andrew Walbrana4064912020-06-17 14:33:07 +01003# Use of this source code is governed by a BSD-style
4# license that can be found in the LICENSE file or at
5# https://opensource.org/licenses/BSD-3-Clause.
David Brazdil90435b52019-12-23 14:14:10 +00006
7config("gtest_config") {
8 visibility = [ ":gtest" ]
9
10 include_dirs = [
11 "googletest/include",
12 "googlemock/include",
13 ]
14
15 ldflags = [ "-pthread" ]
16}
17
18source_set("gtest") {
19 testonly = true
20
21 sources = [
22 "googlemock/src/gmock-all.cc",
23 "googletest/src/gtest-all.cc",
24 ]
25
26 include_dirs = [
27 "googletest",
28 "googlemock",
29 ]
30
31 all_dependent_configs = [ ":gtest_config" ]
32}
33
34source_set("gtest_main") {
35 testonly = true
36
Olivier Deprezefe7c702023-02-02 09:52:29 +010037 sources = [ "googlemock/src/gmock_main.cc" ]
David Brazdil90435b52019-12-23 14:14:10 +000038
Olivier Deprezefe7c702023-02-02 09:52:29 +010039 deps = [ ":gtest" ]
David Brazdil90435b52019-12-23 14:14:10 +000040}