| 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("//content/child/child.gni") | 7 import("//content/child/child.gni") |
| 8 | 8 |
| 9 source_set("child") { | 9 if (is_component_build) { |
| 10 link_target_type = "source_set" |
| 11 } else { |
| 12 link_target_type = "static_library" |
| 13 } |
| 14 target(link_target_type, "child") { |
| 10 # Targets external to content should always link to the public API. | 15 # Targets external to content should always link to the public API. |
| 11 # Internal targets can link to this but only if they're child processes | 16 # Internal targets can link to this but only if they're child processes |
| 12 # (i.e. not content/browser or content/common) and only if they're inside the | 17 # (i.e. not content/browser or content/common) and only if they're inside the |
| 13 # content component (i.e. not content/test or content/shell). | 18 # content component (i.e. not content/test or content/shell). |
| 14 visibility = [ | 19 visibility = [ |
| 15 ":*", | 20 ":*", |
| 16 "//content/gpu/*", | 21 "//content/gpu/*", |
| 17 "//content/ppapi_plugin/*", | 22 "//content/ppapi_plugin/*", |
| 18 "//content/public/child:child_sources", | 23 "//content/public/child:child_sources", |
| 19 "//content/renderer/*", | 24 "//content/renderer/*", |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 106 |
| 102 # See comment at the top of //content/BUILD.gn for how this works. | 107 # See comment at the top of //content/BUILD.gn for how this works. |
| 103 group("for_content_tests") { | 108 group("for_content_tests") { |
| 104 visibility = [ "//content/test/*" ] | 109 visibility = [ "//content/test/*" ] |
| 105 if (!is_component_build) { | 110 if (!is_component_build) { |
| 106 public_deps = [ | 111 public_deps = [ |
| 107 ":child", | 112 ":child", |
| 108 ] | 113 ] |
| 109 } | 114 } |
| 110 } | 115 } |
| OLD | NEW |