Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / build / secondary / testing / gmock / BUILD.gn
index 018917f..a0dbad7 100644 (file)
@@ -8,6 +8,8 @@ config("gmock_config") {
 }
 
 static_library("gmock") {
+  # TODO http://crbug.com/412064 enable this flag all the time.
+  testonly = !is_component_build
   sources = [
     # Sources based on files in r173 of gmock.
     "include/gmock/gmock-actions.h",
@@ -33,13 +35,15 @@ static_library("gmock") {
   # This project includes some stuff form gtest's guts.
   include_dirs = [ "../gtest/include" ]
 
-  direct_dependent_configs = [
+  public_configs = [
     ":gmock_config",
     "//testing/gtest:gtest_config",
   ]
 }
 
 static_library("gmock_main") {
+  # TODO http://crbug.com/412064 enable this flag all the time.
+  testonly = !is_component_build
   sources = [ "src/gmock_main.cc" ]
   deps = [ ":gmock" ]
 }