Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: chrome/browser/extensions/BUILD.gn

Issue 2204343004: Revert of Expand scope of enable_hotwording. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/common/features.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//chrome/common/features.gni")
8 7
9 assert(enable_extensions) 8 assert(enable_extensions)
10 9
11 gypi_values = 10 gypi_values =
12 exec_script("//build/gypi_to_gn.py", 11 exec_script("//build/gypi_to_gn.py",
13 [ rebase_path("../../chrome_browser_extensions.gypi") ], 12 [ rebase_path("../../chrome_browser_extensions.gypi") ],
14 "scope", 13 "scope",
15 [ "../../chrome_browser_extensions.gypi" ]) 14 [ "../../chrome_browser_extensions.gypi" ])
16 15
17 # GYP version: chrome/chrome_browser_extensions.gypi:browser_extensions 16 # GYP version: chrome/chrome_browser_extensions.gypi:browser_extensions
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 "//ui/base", 101 "//ui/base",
103 "//ui/base/ime", 102 "//ui/base/ime",
104 "//ui/gfx", 103 "//ui/gfx",
105 "//ui/gfx/geometry", 104 "//ui/gfx/geometry",
106 "//ui/native_theme", 105 "//ui/native_theme",
107 "//ui/resources", 106 "//ui/resources",
108 "//ui/strings", 107 "//ui/strings",
109 "//url", 108 "//url",
110 ] 109 ]
111 110
111 if (enable_task_manager) {
112 sources += rebase_path(
113 gypi_values.chrome_browser_extensions_task_manager_enabled_sources,
114 ".",
115 "//chrome")
116 }
117
112 if (is_chromeos) { 118 if (is_chromeos) {
113 sources += 119 sources +=
114 rebase_path(gypi_values.chrome_browser_extensions_chromeos_sources, 120 rebase_path(gypi_values.chrome_browser_extensions_chromeos_sources,
115 ".", 121 ".",
116 "//chrome") 122 "//chrome")
117 sources -= [ "api/music_manager_private/device_id_linux.cc" ] 123 sources -= [ "api/music_manager_private/device_id_linux.cc" ]
118 if (use_dbus) { 124 if (use_dbus) {
119 configs += [ "//build/config/linux/dbus" ] 125 configs += [ "//build/config/linux/dbus" ]
120 } 126 }
121 deps += [ 127 deps += [
122 "//components/chrome_apps", 128 "//components/chrome_apps",
123 "//remoting/host/it2me:common", 129 "//remoting/host/it2me:common",
124 "//third_party/protobuf:protobuf_lite", 130 "//third_party/protobuf:protobuf_lite",
125 ] 131 ]
126 } else { 132 } else {
127 sources += [ 133 sources += [
128 "default_apps.cc", 134 "default_apps.cc",
129 "default_apps.h'", 135 "default_apps.h'",
130 ] 136 ]
131 sources += 137 sources +=
132 rebase_path(gypi_values.chrome_browser_extensions_non_chromeos_sources, 138 rebase_path(gypi_values.chrome_browser_extensions_non_chromeos_sources,
133 ".", 139 ".",
134 "//chrome") 140 "//chrome")
135 } 141 }
136 142
137 # chromeos uses its own global_shortcut_listener, _x11 is not necessary. 143 if (enable_service_discovery) {
138 if (is_chromeos || !use_x11) { 144 sources += rebase_path(
139 sources -= [ 145 gypi_values.chrome_browser_extensions_service_discovery_sources,
140 "global_shortcut_listener_x11.cc", 146 ".",
141 "global_shortcut_listener_x11.h", 147 "//chrome")
148 }
149
150 if (use_ash) {
151 sources += [
152 "api/tabs/ash_panel_contents.cc",
153 "api/tabs/ash_panel_contents.h",
154 ]
155 deps += [ "//ash" ]
156 }
157
158 if (use_aura) {
159 deps += [
160 "//ui/keyboard",
161 "//ui/keyboard:keyboard_with_content",
162 "//ui/keyboard:resources",
142 ] 163 ]
143 } 164 }
144 165
145 if (is_chromeos && use_ozone) { 166 if (toolkit_views) {
146 sources -= [ "global_shortcut_listener_chromeos.cc" ] 167 deps += [ "//ui/views" ]
147 }
148 if (!use_ozone) {
149 sources -= [ "global_shortcut_listener_ozone.cc" ]
150 } 168 }
151 169
152 if (is_linux) { 170 if (is_linux) {
153 deps += [ "//build/linux:fontconfig" ] 171 deps += [ "//build/linux:fontconfig" ]
154 172
155 if (use_dbus) { 173 if (use_dbus) {
156 deps += [ "//dbus" ] 174 deps += [ "//dbus" ]
157 } 175 }
158 176
159 if (use_x11) { 177 if (use_x11) {
160 configs += [ "//build/config/linux:x11" ] 178 configs += [ "//build/config/linux:x11" ]
161 deps += [ 179 deps += [
162 "//ui/events:events_base", 180 "//ui/events:events_base",
163 "//ui/events/platform", 181 "//ui/events/platform",
164 "//ui/events/platform/x11", 182 "//ui/events/platform/x11",
165 ] 183 ]
166 } 184 }
167 if (!is_chromeos) { 185 if (!is_chromeos) {
168 sources += rebase_path( 186 sources += rebase_path(
169 gypi_values.chrome_browser_extensions_input_ime_linux_win_sources, 187 gypi_values.chrome_browser_extensions_input_ime_linux_win_sources,
170 ".", 188 ".",
171 "//chrome") 189 "//chrome")
172 } 190 }
173 } 191 }
174 192
175 if (is_win || is_mac) {
176 deps += [ "//components/wifi" ]
177 sources += rebase_path(
178 gypi_values.chrome_browser_extensions_networking_private_sources_win mac,
179 ".",
180 "//chrome")
181 }
182
183 if (is_win) {
184 deps += [
185 "//third_party/iaccessible2",
186 "//third_party/isimpledom",
187 ]
188 sources += rebase_path(
189 gypi_values.chrome_browser_extensions_input_ime_linux_win_sources,
190 ".",
191 "//chrome")
192 } else if (use_aura && !is_chromeos) {
193 sources += [
194 "display_info_provider_aura.cc",
195 "display_info_provider_aura.h",
196 ]
197 }
198
199 if (enable_app_list) {
200 sources +=
201 rebase_path(gypi_values.chrome_browser_extensions_app_list_sources,
202 ".",
203 "//chrome")
204 }
205
206 if (enable_hotwording) {
207 defines += [ "ENABLE_HOTWORDING" ]
208 }
209
210 if (enable_service_discovery) {
211 sources += rebase_path(
212 gypi_values.chrome_browser_extensions_service_discovery_sources,
213 ".",
214 "//chrome")
215 }
216
217 if (enable_task_manager) {
218 sources += rebase_path(
219 gypi_values.chrome_browser_extensions_task_manager_enabled_sources,
220 ".",
221 "//chrome")
222 }
223
224 if (enable_webrtc) { 193 if (enable_webrtc) {
225 sources += [ "api/webrtc_logging_private/webrtc_logging_private_api.cc" ] 194 sources += [ "api/webrtc_logging_private/webrtc_logging_private_api.cc" ]
226 } else { 195 } else {
227 sources += 196 sources +=
228 [ "api/webrtc_logging_private/webrtc_logging_private_api_stub.cc" ] 197 [ "api/webrtc_logging_private/webrtc_logging_private_api_stub.cc" ]
229 } 198 }
230 199
231 if (toolkit_views) {
232 deps += [ "//ui/views" ]
233 }
234
235 if (use_ash) {
236 sources += [
237 "api/tabs/ash_panel_contents.cc",
238 "api/tabs/ash_panel_contents.h",
239 ]
240 deps += [ "//ash" ]
241 }
242
243 if (use_aura) {
244 deps += [
245 "//ui/keyboard",
246 "//ui/keyboard:keyboard_with_content",
247 "//ui/keyboard:resources",
248 ]
249 }
250
251 if (use_brlapi) { 200 if (use_brlapi) {
252 deps += [ "//build/linux/libbrlapi" ] 201 deps += [ "//build/linux/libbrlapi" ]
253 sources += rebase_path(gypi_values.chrome_browser_extensions_brlapi_sources, 202 sources += rebase_path(gypi_values.chrome_browser_extensions_brlapi_sources,
254 ".", 203 ".",
255 "//chrome") 204 "//chrome")
256 } else { 205 } else {
257 sources += [ "api/braille_display_private/braille_controller_stub.cc" ] 206 sources += [ "api/braille_display_private/braille_controller_stub.cc" ]
258 } 207 }
208
209 # chromeos uses its own global_shortcut_listener, _x11 is not necessary.
210 if (is_chromeos || !use_x11) {
211 sources -= [
212 "global_shortcut_listener_x11.cc",
213 "global_shortcut_listener_x11.h",
214 ]
215 }
216
217 if (is_win || is_mac) {
218 deps += [ "//components/wifi" ]
219 sources += rebase_path(
220 gypi_values.chrome_browser_extensions_networking_private_sources_win mac,
221 ".",
222 "//chrome")
223 }
224
225 if (is_win) {
226 deps += [
227 "//third_party/iaccessible2",
228 "//third_party/isimpledom",
229 ]
230 sources += rebase_path(
231 gypi_values.chrome_browser_extensions_input_ime_linux_win_sources,
232 ".",
233 "//chrome")
234 } else if (use_aura && !is_chromeos) {
235 sources += [
236 "display_info_provider_aura.cc",
237 "display_info_provider_aura.h",
238 ]
239 }
240
241 if (enable_app_list) {
242 sources +=
243 rebase_path(gypi_values.chrome_browser_extensions_app_list_sources,
244 ".",
245 "//chrome")
246 }
247
248 if (is_chromeos && use_ozone) {
249 sources -= [ "global_shortcut_listener_chromeos.cc" ]
250 }
251 if (!use_ozone) {
252 sources -= [ "global_shortcut_listener_ozone.cc" ]
253 }
259 } 254 }
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/common/features.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698