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 2209843002: Expand scope of enable_hotwording. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: import 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")
7 8
8 assert(enable_extensions) 9 assert(enable_extensions)
9 10
10 gypi_values = 11 gypi_values =
11 exec_script("//build/gypi_to_gn.py", 12 exec_script("//build/gypi_to_gn.py",
12 [ rebase_path("../../chrome_browser_extensions.gypi") ], 13 [ rebase_path("../../chrome_browser_extensions.gypi") ],
13 "scope", 14 "scope",
14 [ "../../chrome_browser_extensions.gypi" ]) 15 [ "../../chrome_browser_extensions.gypi" ])
15 16
16 # GYP version: chrome/chrome_browser_extensions.gypi:browser_extensions 17 # GYP version: chrome/chrome_browser_extensions.gypi:browser_extensions
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 "//ui/base", 102 "//ui/base",
102 "//ui/base/ime", 103 "//ui/base/ime",
103 "//ui/gfx", 104 "//ui/gfx",
104 "//ui/gfx/geometry", 105 "//ui/gfx/geometry",
105 "//ui/native_theme", 106 "//ui/native_theme",
106 "//ui/resources", 107 "//ui/resources",
107 "//ui/strings", 108 "//ui/strings",
108 "//url", 109 "//url",
109 ] 110 ]
110 111
111 if (enable_task_manager) {
112 sources += rebase_path(
113 gypi_values.chrome_browser_extensions_task_manager_enabled_sources,
114 ".",
115 "//chrome")
116 }
117
118 if (is_chromeos) { 112 if (is_chromeos) {
119 sources += 113 sources +=
120 rebase_path(gypi_values.chrome_browser_extensions_chromeos_sources, 114 rebase_path(gypi_values.chrome_browser_extensions_chromeos_sources,
121 ".", 115 ".",
122 "//chrome") 116 "//chrome")
123 sources -= [ "api/music_manager_private/device_id_linux.cc" ] 117 sources -= [ "api/music_manager_private/device_id_linux.cc" ]
124 if (use_dbus) { 118 if (use_dbus) {
125 configs += [ "//build/config/linux/dbus" ] 119 configs += [ "//build/config/linux/dbus" ]
126 } 120 }
127 deps += [ 121 deps += [
128 "//components/chrome_apps", 122 "//components/chrome_apps",
129 "//remoting/host/it2me:common", 123 "//remoting/host/it2me:common",
130 "//third_party/protobuf:protobuf_lite", 124 "//third_party/protobuf:protobuf_lite",
131 ] 125 ]
132 } else { 126 } else {
133 sources += [ 127 sources += [
134 "default_apps.cc", 128 "default_apps.cc",
135 "default_apps.h'", 129 "default_apps.h'",
136 ] 130 ]
137 sources += 131 sources +=
138 rebase_path(gypi_values.chrome_browser_extensions_non_chromeos_sources, 132 rebase_path(gypi_values.chrome_browser_extensions_non_chromeos_sources,
139 ".", 133 ".",
140 "//chrome") 134 "//chrome")
141 } 135 }
142 136
143 if (enable_service_discovery) { 137 # chromeos uses its own global_shortcut_listener, _x11 is not necessary.
144 sources += rebase_path( 138 if (is_chromeos || !use_x11) {
145 gypi_values.chrome_browser_extensions_service_discovery_sources, 139 sources -= [
146 ".", 140 "global_shortcut_listener_x11.cc",
147 "//chrome") 141 "global_shortcut_listener_x11.h",
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",
163 ] 142 ]
164 } 143 }
165 144
166 if (toolkit_views) { 145 if (is_chromeos && use_ozone) {
167 deps += [ "//ui/views" ] 146 sources -= [ "global_shortcut_listener_chromeos.cc" ]
147 }
148 if (!use_ozone) {
149 sources -= [ "global_shortcut_listener_ozone.cc" ]
168 } 150 }
169 151
170 if (is_linux) { 152 if (is_linux) {
171 deps += [ "//build/linux:fontconfig" ] 153 deps += [ "//build/linux:fontconfig" ]
172 154
173 if (use_dbus) { 155 if (use_dbus) {
174 deps += [ "//dbus" ] 156 deps += [ "//dbus" ]
175 } 157 }
176 158
177 if (use_x11) { 159 if (use_x11) {
178 configs += [ "//build/config/linux:x11" ] 160 configs += [ "//build/config/linux:x11" ]
179 deps += [ 161 deps += [
180 "//ui/events:events_base", 162 "//ui/events:events_base",
181 "//ui/events/platform", 163 "//ui/events/platform",
182 "//ui/events/platform/x11", 164 "//ui/events/platform/x11",
183 ] 165 ]
184 } 166 }
185 if (!is_chromeos) { 167 if (!is_chromeos) {
186 sources += rebase_path( 168 sources += rebase_path(
187 gypi_values.chrome_browser_extensions_input_ime_linux_win_sources, 169 gypi_values.chrome_browser_extensions_input_ime_linux_win_sources,
188 ".", 170 ".",
189 "//chrome") 171 "//chrome")
190 } 172 }
191 } 173 }
192 174
193 if (enable_webrtc) {
194 sources += [ "api/webrtc_logging_private/webrtc_logging_private_api.cc" ]
195 } else {
196 sources +=
197 [ "api/webrtc_logging_private/webrtc_logging_private_api_stub.cc" ]
198 }
199
200 if (use_brlapi) {
201 deps += [ "//build/linux/libbrlapi" ]
202 sources += rebase_path(gypi_values.chrome_browser_extensions_brlapi_sources,
203 ".",
204 "//chrome")
205 } else {
206 sources += [ "api/braille_display_private/braille_controller_stub.cc" ]
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) { 175 if (is_win || is_mac) {
218 deps += [ "//components/wifi" ] 176 deps += [ "//components/wifi" ]
219 sources += rebase_path( 177 sources += rebase_path(
220 gypi_values.chrome_browser_extensions_networking_private_sources_win mac, 178 gypi_values.chrome_browser_extensions_networking_private_sources_win mac,
221 ".", 179 ".",
222 "//chrome") 180 "//chrome")
223 } 181 }
224 182
225 if (is_win) { 183 if (is_win) {
226 deps += [ 184 deps += [
(...skipping 11 matching lines...) Expand all
238 ] 196 ]
239 } 197 }
240 198
241 if (enable_app_list) { 199 if (enable_app_list) {
242 sources += 200 sources +=
243 rebase_path(gypi_values.chrome_browser_extensions_app_list_sources, 201 rebase_path(gypi_values.chrome_browser_extensions_app_list_sources,
244 ".", 202 ".",
245 "//chrome") 203 "//chrome")
246 } 204 }
247 205
248 if (is_chromeos && use_ozone) { 206 if (enable_hotwording) {
249 sources -= [ "global_shortcut_listener_chromeos.cc" ] 207 defines += [ "ENABLE_HOTWORDING" ]
250 } 208 }
251 if (!use_ozone) { 209
252 sources -= [ "global_shortcut_listener_ozone.cc" ] 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) {
225 sources += [ "api/webrtc_logging_private/webrtc_logging_private_api.cc" ]
226 } else {
227 sources +=
228 [ "api/webrtc_logging_private/webrtc_logging_private_api_stub.cc" ]
229 }
230
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) {
252 deps += [ "//build/linux/libbrlapi" ]
253 sources += rebase_path(gypi_values.chrome_browser_extensions_brlapi_sources,
254 ".",
255 "//chrome")
256 } else {
257 sources += [ "api/braille_display_private/braille_controller_stub.cc" ]
253 } 258 }
254 } 259 }
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