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/crypto.gni") | 5 import("//build/config/crypto.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//content/child/child.gni") | 8 import("//content/child/child.gni") |
9 | 9 |
10 source_set("child") { | 10 source_set("child") { |
11 # Only the public target should depend on this. All other targets (even | 11 # Only the public target should depend on this. All other targets (even |
12 # internal content ones) should depend on the public one. | 12 # internal content ones) should depend on the public one. |
13 visibility = [ "//content/public/child:child_sources" ] | 13 visibility = [ "//content/public/child:child_sources" ] |
14 | 14 |
15 sources = rebase_path(content_child_gypi_values.private_child_sources, | 15 sources = rebase_path(content_child_gypi_values.private_child_sources, |
16 ".", "//content") | 16 ".", |
| 17 "//content") |
17 | 18 |
18 public_deps = [ | 19 public_deps = [ |
19 "//mojo/edk/system", | 20 "//mojo/edk/system", |
20 ] | 21 ] |
21 | 22 |
22 deps = [ | 23 deps = [ |
23 "//base", | 24 "//base", |
24 "//components/tracing", | 25 "//components/tracing", |
25 "//mojo/common", | 26 "//mojo/common", |
26 "//mojo/environment:chromium", | 27 "//mojo/environment:chromium", |
27 "//mojo/public/interfaces/application", | 28 "//mojo/public/interfaces/application", |
28 "//skia", | 29 "//skia", |
29 "//third_party/icu", | 30 "//third_party/icu", |
30 "//ui/base", | 31 "//ui/base", |
31 "//ui/gfx", | 32 "//ui/gfx", |
32 "//ui/gfx/geometry", | 33 "//ui/gfx/geometry", |
33 "//ui/native_theme", | 34 "//ui/native_theme", |
34 "//url", | 35 "//url", |
35 ] | 36 ] |
36 | 37 |
37 if (!use_default_render_theme) { | 38 if (!use_default_render_theme) { |
38 sources -= [ | 39 sources -= [ |
39 "webthemeengine_impl_default.cc", | 40 "webthemeengine_impl_default.cc", |
40 "webthemeengine_impl_default.h", | 41 "webthemeengine_impl_default.h", |
41 ] | 42 ] |
42 } | 43 } |
43 | 44 |
44 if (is_android) { | 45 if (is_android) { |
45 deps += [ | 46 deps += [ "//third_party/android_tools:cpu_features" ] |
46 "//third_party/android_tools:cpu_features", | |
47 ] | |
48 } | 47 } |
49 | 48 |
50 if (enable_plugins) { | 49 if (enable_plugins) { |
51 deps += [ "//ppapi:ppapi_proxy" ] | 50 deps += [ "//ppapi:ppapi_proxy" ] |
52 } else { | 51 } else { |
53 sources -= [ | 52 sources -= [ |
54 "browser_font_resource_trusted.cc", | 53 "browser_font_resource_trusted.cc", |
55 "npapi/plugin_host.cc", | 54 "npapi/plugin_host.cc", |
56 "npapi/plugin_host.h", | 55 "npapi/plugin_host.h", |
57 "npapi/plugin_instance.cc", | 56 "npapi/plugin_instance.cc", |
(...skipping 25 matching lines...) Expand all Loading... |
83 "npapi/webplugin_delegate_impl_mac.mm", | 82 "npapi/webplugin_delegate_impl_mac.mm", |
84 ] | 83 ] |
85 } else if (is_win) { | 84 } else if (is_win) { |
86 sources -= [ | 85 sources -= [ |
87 "npapi/plugin_stream_win.cc", | 86 "npapi/plugin_stream_win.cc", |
88 "npapi/webplugin_delegate_impl_win.cc", | 87 "npapi/webplugin_delegate_impl_win.cc", |
89 "npapi/webplugin_ime_win.cc", | 88 "npapi/webplugin_ime_win.cc", |
90 "npapi/webplugin_ime_win.h", | 89 "npapi/webplugin_ime_win.h", |
91 ] | 90 ] |
92 } else if (is_android) { | 91 } else if (is_android) { |
93 sources -= [ | 92 sources -= [ "npapi/webplugin_delegate_impl_android.cc" ] |
94 "npapi/webplugin_delegate_impl_android.cc", | |
95 ] | |
96 } | 93 } |
97 if (use_aura) { | 94 if (use_aura) { |
98 sources -= [ | 95 sources -= [ "npapi/webplugin_delegate_impl_aura.cc" ] |
99 "npapi/webplugin_delegate_impl_aura.cc", | |
100 ] | |
101 } | 96 } |
102 } | 97 } |
103 | 98 |
104 configs += [ | 99 configs += [ "//content:content_implementation" ] |
105 "//content:content_implementation", | |
106 ] | |
107 | 100 |
108 if (is_ios) { | 101 if (is_ios) { |
109 # iOS only needs a small portion of content; exclude all the | 102 # iOS only needs a small portion of content; exclude all the |
110 # implementation, and re-include what is used. | 103 # implementation, and re-include what is used. |
111 sources = [] | 104 sources = [] |
112 } else { | 105 } else { |
113 deps += [ | 106 deps += [ |
114 "//content/app/resources", | 107 "//content/app/resources", |
115 "//content/app/strings", | 108 "//content/app/strings", |
116 "//crypto:platform", | 109 "//crypto:platform", |
117 "//storage/common", | 110 "//storage/common", |
118 "//third_party/WebKit/public:blink", | 111 "//third_party/WebKit/public:blink", |
119 "//third_party/WebKit/public:resources", | 112 "//third_party/WebKit/public:resources", |
120 "//third_party/npapi", | 113 "//third_party/npapi", |
121 ] | 114 ] |
122 } | 115 } |
123 | 116 |
124 if (use_aura && is_mac) { | 117 if (use_aura && is_mac) { |
125 # This file is already excluded on non-Mac. | 118 # This file is already excluded on non-Mac. |
126 sources -= [ "npapi/webplugin_delegate_impl_mac.mm" ] | 119 sources -= [ "npapi/webplugin_delegate_impl_mac.mm" ] |
127 } | 120 } |
128 | 121 |
129 if (is_win || !use_aura) { | 122 if (is_win || !use_aura) { |
130 sources -= [ "npapi/webplugin_delegate_impl_aura.cc" ] | 123 sources -= [ "npapi/webplugin_delegate_impl_aura.cc" ] |
131 } | 124 } |
132 | 125 |
133 if (!use_openssl) { | 126 if (!use_openssl) { |
134 sources += rebase_path(content_child_gypi_values.webcrypto_nss_sources, | 127 sources += rebase_path(content_child_gypi_values.webcrypto_nss_sources, |
135 ".", "//content") | 128 ".", |
| 129 "//content") |
136 } else { | 130 } else { |
137 sources += rebase_path(content_child_gypi_values.webcrypto_openssl_sources, | 131 sources += rebase_path(content_child_gypi_values.webcrypto_openssl_sources, |
138 ".", "//content") | 132 ".", |
| 133 "//content") |
139 } | 134 } |
140 } | 135 } |
OLD | NEW |