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") { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 "webthemeengine_impl_default.h", | 49 "webthemeengine_impl_default.h", |
50 ] | 50 ] |
51 } | 51 } |
52 | 52 |
53 if (is_android) { | 53 if (is_android) { |
54 deps += [ "//third_party/android_tools:cpu_features" ] | 54 deps += [ "//third_party/android_tools:cpu_features" ] |
55 } | 55 } |
56 | 56 |
57 if (enable_plugins) { | 57 if (enable_plugins) { |
58 deps += [ "//ppapi/proxy" ] | 58 deps += [ "//ppapi/proxy" ] |
| 59 |
| 60 if (is_win || is_android) { |
| 61 sources -= [ "npapi/webplugin_delegate_impl_aura.cc" ] |
| 62 } |
59 } else { | 63 } else { |
60 sources -= [ | 64 sources -= [ |
61 "browser_font_resource_trusted.cc", | 65 "browser_font_resource_trusted.cc", |
62 "npapi/plugin_host.cc", | 66 "npapi/plugin_host.cc", |
63 "npapi/plugin_host.h", | 67 "npapi/plugin_host.h", |
64 "npapi/plugin_instance.cc", | 68 "npapi/plugin_instance.cc", |
65 "npapi/plugin_instance.h", | 69 "npapi/plugin_instance.h", |
66 "npapi/plugin_lib.cc", | 70 "npapi/plugin_lib.cc", |
67 "npapi/plugin_lib.h", | 71 "npapi/plugin_lib.h", |
68 "npapi/plugin_stream.cc", | 72 "npapi/plugin_stream.cc", |
(...skipping 23 matching lines...) Expand all Loading... |
92 } else if (is_win) { | 96 } else if (is_win) { |
93 sources -= [ | 97 sources -= [ |
94 "npapi/plugin_stream_win.cc", | 98 "npapi/plugin_stream_win.cc", |
95 "npapi/webplugin_delegate_impl_win.cc", | 99 "npapi/webplugin_delegate_impl_win.cc", |
96 "npapi/webplugin_ime_win.cc", | 100 "npapi/webplugin_ime_win.cc", |
97 "npapi/webplugin_ime_win.h", | 101 "npapi/webplugin_ime_win.h", |
98 ] | 102 ] |
99 } else if (is_android) { | 103 } else if (is_android) { |
100 sources -= [ "npapi/webplugin_delegate_impl_android.cc" ] | 104 sources -= [ "npapi/webplugin_delegate_impl_android.cc" ] |
101 } | 105 } |
102 if (use_aura) { | 106 sources -= [ "npapi/webplugin_delegate_impl_aura.cc" ] |
103 sources -= [ "npapi/webplugin_delegate_impl_aura.cc" ] | |
104 } | |
105 } | 107 } |
106 | 108 |
107 configs += [ | 109 configs += [ |
108 "//content:content_implementation", | 110 "//content:content_implementation", |
109 "//build/config/compiler:no_size_t_to_int_warning", | 111 "//build/config/compiler:no_size_t_to_int_warning", |
110 ] | 112 ] |
111 | 113 |
112 if (is_ios) { | 114 if (is_ios) { |
113 # iOS only needs a small portion of content; exclude all the | 115 # iOS only needs a small portion of content; exclude all the |
114 # implementation, and re-include what is used. | 116 # implementation, and re-include what is used. |
115 sources = [] | 117 sources = [] |
116 } else { | 118 } else { |
117 deps += [ | 119 deps += [ |
118 "//components/scheduler:scheduler", | 120 "//components/scheduler:scheduler", |
119 "//content/app/resources", | 121 "//content/app/resources", |
120 "//content/app/strings", | 122 "//content/app/strings", |
121 "//crypto:platform", | 123 "//crypto:platform", |
122 "//storage/common", | 124 "//storage/common", |
123 "//third_party/WebKit/public:blink", | 125 "//third_party/WebKit/public:blink", |
124 "//third_party/WebKit/public:image_resources", | 126 "//third_party/WebKit/public:image_resources", |
125 "//third_party/WebKit/public:resources", | 127 "//third_party/WebKit/public:resources", |
126 "//third_party/npapi", | 128 "//third_party/npapi", |
127 ] | 129 ] |
128 } | 130 } |
129 | 131 |
130 if (use_aura && is_mac) { | 132 if (use_aura && is_mac) { |
131 # This file is already excluded on non-Mac. | 133 # This file is already excluded on non-Mac. |
132 sources -= [ "npapi/webplugin_delegate_impl_mac.mm" ] | 134 sources -= [ "npapi/webplugin_delegate_impl_mac.mm" ] |
133 } | 135 } |
134 | |
135 if (is_win || !use_aura) { | |
136 sources -= [ "npapi/webplugin_delegate_impl_aura.cc" ] | |
137 } | |
138 } | 136 } |
OLD | NEW |