Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / build / secondary / testing / gtest / BUILD.gn
index 2c360fe..f7c1e0d 100644 (file)
@@ -9,11 +9,12 @@ config("gtest_config") {
   ]
 
   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.
@@ -52,6 +53,11 @@ config("gtest_config") {
   }
 }
 
+config("gtest_direct_config") {
+  visibility = ":*"
+  defines = [ "UNIT_TEST" ]
+}
+
 static_library("gtest") {
   sources = [
     "include/gtest/gtest-death-test.h",
@@ -98,6 +104,7 @@ static_library("gtest") {
   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" ]