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 if (is_component_build) { | 9 if (is_component_build) { |
10 link_target_type = "source_set" | 10 link_target_type = "source_set" |
11 } else { | 11 } else { |
12 link_target_type = "static_library" | 12 link_target_type = "static_library" |
13 } | 13 } |
14 target(link_target_type, "child") { | 14 target(link_target_type, "child") { |
15 # Targets external to content should always link to the public API. | 15 # Targets external to content should always link to the public API. |
16 # 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 |
17 # (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 |
18 # content component (i.e. not content/test or content/shell). | 18 # content component (i.e. not content/test or content/shell). |
19 visibility = [ | 19 visibility = [ |
20 ":*", | 20 ":*", |
21 "//content/gpu/*", | 21 "//content/gpu/*", |
22 "//content/ppapi_plugin/*", | 22 "//content/ppapi_plugin/*", |
23 "//content/public/child:child_sources", | 23 "//content/public/child:child_sources", |
24 "//content/renderer/*", | 24 "//content/renderer/*", |
25 "//content/utility/*", | 25 "//content/utility/*", |
26 "//tools/ipc_fuzzer/*", | 26 "//tools/ipc_fuzzer/*", |
27 ] | 27 ] |
| 28 if (is_android) { |
| 29 # See comment in content/app/BUILD.gn above content_app_deps. |
| 30 visibility += [ "//content/app:*" ] |
| 31 } |
28 | 32 |
29 sources = rebase_path(content_child_gypi_values.private_child_sources, | 33 sources = rebase_path(content_child_gypi_values.private_child_sources, |
30 ".", | 34 ".", |
31 "//content") | 35 "//content") |
32 | 36 |
33 configs += [ | 37 configs += [ |
34 "//build/config:precompiled_headers", | 38 "//build/config:precompiled_headers", |
35 "//content/public/common:mojo_shell_client", | 39 "//content/public/common:mojo_shell_client", |
36 ] | 40 ] |
37 | 41 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 110 |
107 # See comment at the top of //content/BUILD.gn for how this works. | 111 # See comment at the top of //content/BUILD.gn for how this works. |
108 group("for_content_tests") { | 112 group("for_content_tests") { |
109 visibility = [ "//content/test/*" ] | 113 visibility = [ "//content/test/*" ] |
110 if (!is_component_build) { | 114 if (!is_component_build) { |
111 public_deps = [ | 115 public_deps = [ |
112 ":child", | 116 ":child", |
113 ] | 117 ] |
114 } | 118 } |
115 } | 119 } |
OLD | NEW |