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 source_set("child") { |
10 # Only the public target should depend on this. All other targets (even | 10 # Targets external to content should always link to the public API. |
11 # internal content ones) should depend on the public one. | 11 # Internal targets can link to this but only if they're child processes |
12 visibility = [ "//content/public/child:child_sources" ] | 12 # (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). |
| 14 visibility = [ |
| 15 "//content/gpu/*", |
| 16 "//content/plugin/*", |
| 17 "//content/ppapi_plugin/*", |
| 18 "//content/public/child:child_sources", |
| 19 "//content/renderer/*", |
| 20 "//content/utility/*", |
| 21 ] |
13 | 22 |
14 sources = rebase_path(content_child_gypi_values.private_child_sources, | 23 sources = rebase_path(content_child_gypi_values.private_child_sources, |
15 ".", | 24 ".", |
16 "//content") | 25 "//content") |
17 | 26 |
18 configs += [ | 27 configs += [ |
19 "//build/config:precompiled_headers", | 28 "//build/config:precompiled_headers", |
20 "//content/public/common:mojo_shell_client", | 29 "//content/public/common:mojo_shell_client", |
21 ] | 30 ] |
22 | 31 |
23 public_deps = [ | 32 public_deps = [ |
24 "//mojo/edk/system", | 33 "//mojo/edk/system", |
25 ] | 34 ] |
26 | 35 |
27 deps = [ | 36 deps = [ |
28 "//base", | 37 "//base", |
29 "//components/mime_util", | 38 "//components/mime_util", |
30 "//components/scheduler:scheduler", | 39 "//components/scheduler:scheduler", |
31 "//components/tracing", | 40 "//components/tracing", |
32 "//components/tracing:startup_tracing", | 41 "//components/tracing:startup_tracing", |
33 "//components/webcrypto", | 42 "//components/webcrypto", |
34 "//content/app/resources", | 43 "//content/app/resources", |
35 "//content/app/strings", | 44 "//content/app/strings", |
36 "//content/common:mojo_bindings", | 45 "//content/common", |
37 "//crypto:platform", | 46 "//crypto:platform", |
38 "//mojo/common", | 47 "//mojo/common", |
39 "//mojo/message_pump", | 48 "//mojo/message_pump", |
40 "//mojo/shell/public/interfaces", | 49 "//mojo/shell/public/interfaces", |
41 "//mojo/shell/runner/common", | 50 "//mojo/shell/runner/common", |
42 "//net", | 51 "//net", |
43 "//skia", | 52 "//skia", |
44 "//storage/common", | 53 "//storage/common", |
45 "//third_party/WebKit/public:blink_headers", | 54 "//third_party/WebKit/public:blink_headers", |
46 "//third_party/WebKit/public:image_resources", | 55 "//third_party/WebKit/public:image_resources", |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 118 |
110 if (use_aura && is_mac) { | 119 if (use_aura && is_mac) { |
111 # This file is already excluded on non-Mac. | 120 # This file is already excluded on non-Mac. |
112 sources -= [ "npapi/webplugin_delegate_impl_mac.mm" ] | 121 sources -= [ "npapi/webplugin_delegate_impl_mac.mm" ] |
113 } | 122 } |
114 | 123 |
115 if (is_win || !use_aura) { | 124 if (is_win || !use_aura) { |
116 sources -= [ "npapi/webplugin_delegate_impl_aura.cc" ] | 125 sources -= [ "npapi/webplugin_delegate_impl_aura.cc" ] |
117 } | 126 } |
118 } | 127 } |
OLD | NEW |