blob: 70c2577107117e9481616f1a2bc7d7b1626c0fd5 [file] [log] [blame]
David Brazdil90435b52019-12-23 14:14:10 +00001# Copyright 2018 The Hafnium Authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15config("gtest_config") {
16 visibility = [ ":gtest" ]
17
18 include_dirs = [
19 "googletest/include",
20 "googlemock/include",
21 ]
22
23 ldflags = [ "-pthread" ]
24}
25
26source_set("gtest") {
27 testonly = true
28
29 sources = [
30 "googlemock/src/gmock-all.cc",
31 "googletest/src/gtest-all.cc",
32 ]
33
34 include_dirs = [
35 "googletest",
36 "googlemock",
37 ]
38
39 all_dependent_configs = [ ":gtest_config" ]
40}
41
42source_set("gtest_main") {
43 testonly = true
44
45 sources = [
46 "googlemock/src/gmock_main.cc",
47 ]
48
49 deps = [
50 ":gtest",
51 ]
52}