]
defines = [
- "UNIT_TEST",
# In order to allow regex matches in gtest to be shared between Windows
# and other systems, we tell gtest to always use it's internal engine.
"GTEST_HAS_POSIX_RE=0",
+ # Chrome doesn't support / require C++11, yet.
+ "GTEST_LANG_CXX11=0",
]
# Gtest headers need to be able to find themselves.
}
}
+config("gtest_direct_config") {
+ visibility = ":*"
+ defines = [ "UNIT_TEST" ]
+}
+
static_library("gtest") {
sources = [
"include/gtest/gtest-death-test.h",
include_dirs = [ "." ]
all_dependent_configs = [ ":gtest_config" ]
+ direct_dependent_configs = [ ":gtest_direct_config" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]