# # Copyright (C) 2015 Google, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # config("gtest_config") { # Gtest headers need to be able to find themselves. include_dirs = [ "include" ] defines = [ "GTEST_HAS_RTTI=0" ] } config("gtest_direct_config") { visibility = [ ":*" ] defines = [ "UNIT_TEST" ] } static_library("gtest") { testonly = true sources = [ "include/gtest/gtest-death-test.h", "include/gtest/gtest-message.h", "include/gtest/gtest-param-test.h", "include/gtest/gtest-printers.h", "include/gtest/gtest-spi.h", "include/gtest/gtest-test-part.h", "include/gtest/gtest-typed-test.h", "include/gtest/gtest.h", "include/gtest/gtest_pred_impl.h", "include/gtest/internal/gtest-death-test-internal.h", "include/gtest/internal/gtest-filepath.h", "include/gtest/internal/gtest-internal.h", "include/gtest/internal/gtest-linked_ptr.h", "include/gtest/internal/gtest-param-util-generated.h", "include/gtest/internal/gtest-param-util.h", "include/gtest/internal/gtest-port.h", "include/gtest/internal/gtest-string.h", "include/gtest/internal/gtest-tuple.h", "include/gtest/internal/gtest-type-util.h", "src/gtest-all.cc", "src/gtest-death-test.cc", "src/gtest-filepath.cc", "src/gtest-internal-inl.h", "src/gtest-port.cc", "src/gtest-printers.cc", "src/gtest-test-part.cc", "src/gtest-typed-test.cc", "src/gtest.cc", ] include_dirs = [ "." ] all_dependent_configs = [ ":gtest_config" ] public_configs = [ ":gtest_direct_config" ] } source_set("gtest_main") { testonly = true sources = [ "src/gtest_main.cc", ] deps = [ ":gtest", ] }