2 # Copyright (C) 2015 Google, Inc.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at:
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 config("gtest_config") {
18 # Gtest headers need to be able to find themselves.
19 include_dirs = [ "include" ]
21 defines = [ "GTEST_HAS_RTTI=0" ]
24 config("gtest_direct_config") {
26 defines = [ "UNIT_TEST" ]
29 static_library("gtest") {
32 "include/gtest/gtest-death-test.h",
33 "include/gtest/gtest-message.h",
34 "include/gtest/gtest-param-test.h",
35 "include/gtest/gtest-printers.h",
36 "include/gtest/gtest-spi.h",
37 "include/gtest/gtest-test-part.h",
38 "include/gtest/gtest-typed-test.h",
39 "include/gtest/gtest.h",
40 "include/gtest/gtest_pred_impl.h",
41 "include/gtest/internal/gtest-death-test-internal.h",
42 "include/gtest/internal/gtest-filepath.h",
43 "include/gtest/internal/gtest-internal.h",
44 "include/gtest/internal/gtest-linked_ptr.h",
45 "include/gtest/internal/gtest-param-util-generated.h",
46 "include/gtest/internal/gtest-param-util.h",
47 "include/gtest/internal/gtest-port.h",
48 "include/gtest/internal/gtest-string.h",
49 "include/gtest/internal/gtest-tuple.h",
50 "include/gtest/internal/gtest-type-util.h",
53 "src/gtest-death-test.cc",
54 "src/gtest-filepath.cc",
55 "src/gtest-internal-inl.h",
57 "src/gtest-printers.cc",
58 "src/gtest-test-part.cc",
59 "src/gtest-typed-test.cc",
63 include_dirs = [ "." ]
65 all_dependent_configs = [ ":gtest_config" ]
66 public_configs = [ ":gtest_direct_config" ]
69 source_set("gtest_main") {