| OLD | NEW | 
|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be | 
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. | 
| 4 | 4 | 
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") | 
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") | 
| 7 import("//ppapi/features/features.gni") | 7 import("//ppapi/features/features.gni") | 
| 8 import("//third_party/WebKit/public/public_features.gni") | 8 import("//third_party/WebKit/public/public_features.gni") | 
|  | 9 import("//content/content.gni") | 
| 9 | 10 | 
| 10 if (is_component_build) { | 11 content_component("child") { | 
| 11   link_target_type = "source_set" |  | 
| 12 } else { |  | 
| 13   link_target_type = "static_library" |  | 
| 14 } |  | 
| 15 target(link_target_type, "child") { |  | 
| 16   # Targets external to content should always link to the public API. | 12   # Targets external to content should always link to the public API. | 
| 17   # Internal targets can link to this but only if they're child processes | 13   # Internal targets can link to this but only if they're child processes | 
| 18   # (i.e. not content/browser or content/common) and only if they're inside the | 14   # (i.e. not content/browser or content/common) and only if they're inside the | 
| 19   # content component (i.e. not content/test or content/shell). | 15   # content component (i.e. not content/test or content/shell). | 
| 20   visibility = [ | 16   visibility = [ | 
| 21     ":*", | 17     ":*", | 
| 22     "//content/gpu/*", | 18     "//content/gpu/*", | 
| 23     "//content/ppapi_plugin/*", | 19     "//content/ppapi_plugin/*", | 
| 24     "//content/public/child:child_sources", | 20     "//content/public/child:child_sources", | 
| 25     "//content/renderer/*", | 21     "//content/renderer/*", | 
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 307 | 303 | 
| 308 # See comment at the top of //content/BUILD.gn for how this works. | 304 # See comment at the top of //content/BUILD.gn for how this works. | 
| 309 group("for_content_tests") { | 305 group("for_content_tests") { | 
| 310   visibility = [ "//content/test/*" ] | 306   visibility = [ "//content/test/*" ] | 
| 311   if (!is_component_build) { | 307   if (!is_component_build) { | 
| 312     public_deps = [ | 308     public_deps = [ | 
| 313       ":child", | 309       ":child", | 
| 314     ] | 310     ] | 
| 315   } | 311   } | 
| 316 } | 312 } | 
| OLD | NEW | 
|---|