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 |
(...skipping 86 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 |