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

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

Issue 2213713002: Expand scope of enable_hotwording. (try 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix grit 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
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",
125 "//ui/file_manager:resources",
131 ] 126 ]
132 } else { 127 } else {
133 sources += [ 128 sources += [
134 "default_apps.cc", 129 "default_apps.cc",
135 "default_apps.h'", 130 "default_apps.h'",
136 ] 131 ]
137 sources += 132 sources +=
138 rebase_path(gypi_values.chrome_browser_extensions_non_chromeos_sources, 133 rebase_path(gypi_values.chrome_browser_extensions_non_chromeos_sources,
139 ".", 134 ".",
140 "//chrome") 135 "//chrome")
141 } 136 }
142 137
143 if (enable_service_discovery) { 138 # chromeos uses its own global_shortcut_listener, _x11 is not necessary.
144 sources += rebase_path( 139 if (is_chromeos || !use_x11) {
145 gypi_values.chrome_browser_extensions_service_discovery_sources, 140 sources -= [
146 ".", 141 "global_shortcut_listener_x11.cc",
147 "//chrome") 142 "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 ] 143 ]
164 } 144 }
165 145
166 if (toolkit_views) { 146 if (is_chromeos && use_ozone) {
167 deps += [ "//ui/views" ] 147 sources -= [ "global_shortcut_listener_chromeos.cc" ]
148 }
149 if (!use_ozone) {
150 sources -= [ "global_shortcut_listener_ozone.cc" ]
168 } 151 }
169 152
170 if (is_linux) { 153 if (is_linux) {
171 deps += [ "//build/linux:fontconfig" ] 154 deps += [ "//build/linux:fontconfig" ]
172 155
173 if (use_dbus) { 156 if (use_dbus) {
174 deps += [ "//dbus" ] 157 deps += [ "//dbus" ]
175 } 158 }
176 159
177 if (use_x11) { 160 if (use_x11) {
178 configs += [ "//build/config/linux:x11" ] 161 configs += [ "//build/config/linux:x11" ]
179 deps += [ 162 deps += [
180 "//ui/events:events_base", 163 "//ui/events:events_base",
181 "//ui/events/platform", 164 "//ui/events/platform",
182 "//ui/events/platform/x11", 165 "//ui/events/platform/x11",
183 ] 166 ]
184 } 167 }
185 if (!is_chromeos) { 168 if (!is_chromeos) {
186 sources += rebase_path( 169 sources += rebase_path(
187 gypi_values.chrome_browser_extensions_input_ime_linux_win_sources, 170 gypi_values.chrome_browser_extensions_input_ime_linux_win_sources,
188 ".", 171 ".",
189 "//chrome") 172 "//chrome")
190 } 173 }
191 } 174 }
192 175
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) { 176 if (is_win || is_mac) {
218 deps += [ "//components/wifi" ] 177 deps += [ "//components/wifi" ]
219 sources += rebase_path( 178 sources += rebase_path(
220 gypi_values.chrome_browser_extensions_networking_private_sources_win mac, 179 gypi_values.chrome_browser_extensions_networking_private_sources_win mac,
221 ".", 180 ".",
222 "//chrome") 181 "//chrome")
223 } 182 }
224 183
225 if (is_win) { 184 if (is_win) {
226 deps += [ 185 deps += [
(...skipping 11 matching lines...) Expand all
238 ] 197 ]
239 } 198 }
240 199
241 if (enable_app_list) { 200 if (enable_app_list) {
242 sources += 201 sources +=
243 rebase_path(gypi_values.chrome_browser_extensions_app_list_sources, 202 rebase_path(gypi_values.chrome_browser_extensions_app_list_sources,
244 ".", 203 ".",
245 "//chrome") 204 "//chrome")
246 } 205 }
247 206
248 if (is_chromeos && use_ozone) { 207 if (enable_hotwording) {
249 sources -= [ "global_shortcut_listener_chromeos.cc" ] 208 defines += [ "ENABLE_HOTWORDING" ]
250 } 209 }
251 if (!use_ozone) { 210
252 sources -= [ "global_shortcut_listener_ozone.cc" ] 211 if (enable_service_discovery) {
212 sources += rebase_path(
213 gypi_values.chrome_browser_extensions_service_discovery_sources,
214 ".",
215 "//chrome")
216 }
217
218 if (enable_task_manager) {
219 sources += rebase_path(
220 gypi_values.chrome_browser_extensions_task_manager_enabled_sources,
221 ".",
222 "//chrome")
223 }
224
225 if (enable_webrtc) {
226 sources += [ "api/webrtc_logging_private/webrtc_logging_private_api.cc" ]
227 } else {
228 sources +=
229 [ "api/webrtc_logging_private/webrtc_logging_private_api_stub.cc" ]
230 }
231
232 if (toolkit_views) {
233 deps += [ "//ui/views" ]
234 }
235
236 if (use_ash) {
237 sources += [
238 "api/tabs/ash_panel_contents.cc",
239 "api/tabs/ash_panel_contents.h",
240 ]
241 deps += [ "//ash" ]
242 }
243
244 if (use_aura) {
245 deps += [
246 "//ui/keyboard",
247 "//ui/keyboard:keyboard_with_content",
248 "//ui/keyboard:resources",
249 ]
250 }
251
252 if (use_brlapi) {
253 deps += [ "//build/linux/libbrlapi" ]
254 sources += rebase_path(gypi_values.chrome_browser_extensions_brlapi_sources,
255 ".",
256 "//chrome")
257 } else {
258 sources += [ "api/braille_display_private/braille_controller_stub.cc" ]
253 } 259 }
254 } 260 }
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/common/features.gni » ('j') | chrome/common/features.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698