| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 292 |
| 297 # See comment at the top of //content/BUILD.gn for how this works. | 293 # See comment at the top of //content/BUILD.gn for how this works. |
| 298 group("for_content_tests") { | 294 group("for_content_tests") { |
| 299 visibility = [ "//content/test/*" ] | 295 visibility = [ "//content/test/*" ] |
| 300 if (!is_component_build) { | 296 if (!is_component_build) { |
| 301 public_deps = [ | 297 public_deps = [ |
| 302 ":child", | 298 ":child", |
| 303 ] | 299 ] |
| 304 } | 300 } |
| 305 } | 301 } |
| OLD | NEW |