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

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

Issue 419053002: Miscellaneous GN updates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « build/config/android/rules.gni ('k') | chrome/utility/BUILD.gn » ('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/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 8
9 gypi_values = exec_script( 9 gypi_values = exec_script(
10 "//build/gypi_to_gn.py", 10 "//build/gypi_to_gn.py",
(...skipping 20 matching lines...) Expand all
31 # NOTE: New dependencies should generally be added in the OS!="ios" 31 # NOTE: New dependencies should generally be added in the OS!="ios"
32 # dependencies block below, rather than here. 32 # dependencies block below, rather than here.
33 "//base/allocator", 33 "//base/allocator",
34 "//chrome:extra_resources", 34 "//chrome:extra_resources",
35 "//chrome:resources", 35 "//chrome:resources",
36 "//chrome:strings", 36 "//chrome:strings",
37 "//chrome/app/resources:platform_locale_settings", 37 "//chrome/app/resources:platform_locale_settings",
38 "//chrome/app/theme:theme_resources", 38 "//chrome/app/theme:theme_resources",
39 "//chrome/browser/history:in_memory_url_index_cache_proto", 39 "//chrome/browser/history:in_memory_url_index_cache_proto",
40 "//chrome/browser/net:cert_logger_proto", 40 "//chrome/browser/net:cert_logger_proto",
41 "//chrome/browser/ui/views",
41 "//chrome/common", 42 "//chrome/common",
42 "//chrome/common/net", 43 "//chrome/common/net",
44 "//components/auto_login_parser",
43 "//components/dom_distiller/core", 45 "//components/dom_distiller/core",
44 "//components/dom_distiller/webui", 46 "//components/dom_distiller/webui",
45 "//components/feedback/proto", 47 "//components/feedback/proto",
48 "//components/invalidation",
49 "//components/omaha_query_params",
46 "//components/onc", 50 "//components/onc",
51 "//components/password_manager/core/browser",
47 "//components/resources", 52 "//components/resources",
48 "//components/strings", 53 "//components/strings",
49 "//content/public/browser", 54 "//content/public/browser",
50 "//content/public/common", 55 "//content/public/common",
51 "//crypto", 56 "//crypto",
52 "//skia", 57 "//skia",
53 "//sync", 58 "//sync",
54 "//third_party/cacheinvalidation", 59 "//third_party/cacheinvalidation",
55 "//third_party/icu", 60 "//third_party/icu",
56 "//third_party/libusb", 61 "//third_party/libusb",
57 "//third_party/libxml", 62 "//third_party/libxml",
58 "//third_party/zlib", 63 "//third_party/zlib",
59 "//ui/accessibility", 64 "//ui/accessibility",
60 "//ui/base", 65 "//ui/base",
61 "//ui/events", 66 "//ui/events",
62 "//ui/gfx", 67 "//ui/gfx",
63 "//ui/gfx/geometry", 68 "//ui/gfx/geometry",
64 "//ui/message_center", 69 "//ui/message_center",
65 "//ui/native_theme", 70 "//ui/native_theme",
66 "//ui/resources", 71 "//ui/resources",
67 "//ui/snapshot", 72 "//ui/snapshot",
68 "//ui/strings", 73 "//ui/strings",
69 #'chrome_browser_ui_views.gyp:browser_ui_views', TODO(GYP)
70 #'../components/components.gyp:auto_login_parser', TODO(GYP)
71 #'../components/components.gyp:invalidation', TODO(GYP)
72 #'../components/components.gyp:omaha_query_params', TODO(GYP)
73 #'../components/components.gyp:password_manager_core_browser', TODO(GYP)
74 ] 74 ]
75 75
76 forward_dependent_configs_from = [ 76 forward_dependent_configs_from = [
77 "//components/dom_distiller/core", 77 "//components/dom_distiller/core",
78 "//sync", 78 "//sync",
79 ] 79 ]
80 80
81 if (!is_ios) { 81 if (!is_ios) {
82 sources += rebase_path(gypi_values.chrome_browser_ui_non_ios_sources, 82 sources += rebase_path(gypi_values.chrome_browser_ui_non_ios_sources,
83 ".", "//chrome") 83 ".", "//chrome")
84 deps += [ 84 deps += [
85 "//chrome/browser/extensions", 85 "//chrome/browser/extensions",
86 "//chrome/browser/performance_monitor", 86 "//chrome/browser/performance_monitor",
87 "//chrome/browser/ui/webui/omnibox:mojo_bindings", 87 "//chrome/browser/ui/webui/omnibox:mojo_bindings",
88 "//chrome/common/extensions/api:api", 88 "//chrome/common/extensions/api:api",
89 "//components/autofill/content/browser:risk_proto", 89 "//components/autofill/content/browser:risk_proto",
90 "//device/bluetooth", 90 "//device/bluetooth",
91 "//device/nfc", 91 "//device/nfc",
92 "//media",
92 "//mojo/system", 93 "//mojo/system",
93 "//net:net_with_v8", 94 "//net:net_with_v8",
94 "//third_party/adobe/flash:flapper_version_h", 95 "//third_party/adobe/flash:flapper_version_h",
95 "//third_party/expat", 96 "//third_party/expat",
96 "//third_party/hunspell", 97 "//third_party/hunspell",
97 "//third_party/leveldatabase", 98 "//third_party/leveldatabase",
98 "//third_party/npapi", 99 "//third_party/npapi",
99 "//third_party/re2", 100 "//third_party/re2",
100 "//ui/compositor", 101 "//ui/compositor",
101 "//ui/surface", 102 "//ui/surface",
103 "//ui/web_dialogs",
102 "//v8", 104 "//v8",
103 "//webkit:resources", 105 "//webkit:resources",
104 "//webkit/browser:storage", 106 "//webkit/browser:storage",
105 "//webkit/common", 107 "//webkit/common",
106 "//webkit/common:storage", 108 "//webkit/common:storage",
107 #'debugger', TODO(GYP) 109 #'debugger', TODO(GYP)
108 #'installer_util', TODO(GYP) 110 #'installer_util', TODO(GYP)
109 #'../media/media.gyp:media', TODO(GYP)
110 #'../third_party/libjingle/libjingle.gyp:libjingle', TODO(GYP) 111 #'../third_party/libjingle/libjingle.gyp:libjingle', TODO(GYP)
111 #'../ui/web_dialogs/web_dialogs.gyp:web_dialogs', TODO(GYP)
112 ] 112 ]
113 # TODO(GYP) 113 # TODO(GYP)
114 #'defines': [ 114 #'defines': [
115 # '<@(nacl_defines)', 115 # '<@(nacl_defines)',
116 #], 116 #],
117 #'direct_dependent_settings': { 117 #'direct_dependent_settings': {
118 # 'defines': [ 118 # 'defines': [
119 # '<@(nacl_defines)', 119 # '<@(nacl_defines)',
120 # ], 120 # ],
121 # }, 121 # },
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 sources += rebase_path(gypi_values.chrome_browser_ui_non_chromeos_sources, 180 sources += rebase_path(gypi_values.chrome_browser_ui_non_chromeos_sources,
181 ".", "//chrome") 181 ".", "//chrome")
182 } 182 }
183 if (use_cups) { 183 if (use_cups) {
184 configs += [ "//printing:cups" ] 184 configs += [ "//printing:cups" ]
185 } 185 }
186 if (use_ash) { 186 if (use_ash) {
187 sources += rebase_path(gypi_values.chrome_browser_ui_ash_sources, 187 sources += rebase_path(gypi_values.chrome_browser_ui_ash_sources,
188 ".", "//chrome") 188 ".", "//chrome")
189 deps += [ 189 deps += [
190 "//ash", 190 "//ash:ash_with_content",
191 #"../ash/ash.gyp:ash_with_content", TODO(GYP)
192 #"../ash/ash_strings.gyp:ash_strings", TODO(GYP)
193 ] 191 ]
194 if (!is_chromeos) { 192 if (!is_chromeos) {
195 sources += rebase_path(gypi_values.chrome_browser_ui_ash_non_chromeos, 193 sources += rebase_path(gypi_values.chrome_browser_ui_ash_non_chromeos,
196 ".", "//chrome") 194 ".", "//chrome")
197 } 195 }
198 } else { # Not ash. 196 } else { # Not ash.
199 sources += rebase_path(gypi_values.chrome_browser_ui_non_ash_sources, 197 sources += rebase_path(gypi_values.chrome_browser_ui_non_ash_sources,
200 ".", "//chrome") 198 ".", "//chrome")
201 } 199 }
202 if (toolkit_views) { 200 if (toolkit_views) {
(...skipping 24 matching lines...) Expand all
227 if (is_chromeos || is_android) { 225 if (is_chromeos || is_android) {
228 sources += rebase_path( 226 sources += rebase_path(
229 gypi_values.chrome_browser_ui_android_chromeos_sources, 227 gypi_values.chrome_browser_ui_android_chromeos_sources,
230 ".", "//chrome") 228 ".", "//chrome")
231 } 229 }
232 if (use_aura) { 230 if (use_aura) {
233 sources += rebase_path(gypi_values.chrome_browser_ui_aura_sources, 231 sources += rebase_path(gypi_values.chrome_browser_ui_aura_sources,
234 ".", "//chrome") 232 ".", "//chrome")
235 deps += [ 233 deps += [
236 # aura uses some of ash resources. 234 # aura uses some of ash resources.
237 #'../ash/ash_resources.gyp:ash_resources', TODO(GYP) 235 "//ash/resources",
238 "//ui/aura", 236 "//ui/aura",
239 "//ui/keyboard", 237 "//ui/keyboard",
240 "//ui/keyboard:resources", 238 "//ui/keyboard:resources",
241 "//ui/wm", 239 "//ui/wm",
242 ] 240 ]
243 if (!is_chromeos) { 241 if (!is_chromeos) {
244 sources += rebase_path(gypi_values.chrome_browser_ui_aura_non_chromeos, 242 sources += rebase_path(gypi_values.chrome_browser_ui_aura_non_chromeos,
245 ".", "//chrome") 243 ".", "//chrome")
246 } 244 }
247 } else { # Non-Aura. 245 } else { # Non-Aura.
(...skipping 15 matching lines...) Expand all
263 ".", "//chrome") 261 ".", "//chrome")
264 } 262 }
265 if (is_linux || is_android) { 263 if (is_linux || is_android) {
266 sources += rebase_path(gypi_values.chrome_browser_ui_android_linux_sources, 264 sources += rebase_path(gypi_values.chrome_browser_ui_android_linux_sources,
267 ".", "//chrome") 265 ".", "//chrome")
268 } 266 }
269 267
270 if (is_android) { 268 if (is_android) {
271 deps += [ 269 deps += [
272 "//crypto:platform", 270 "//crypto:platform",
273 #'../components/components.gyp:web_conten TODO(GYP)ts_delegate_android', 271 #'../components/components.gyp:web_contents_delegate_android', TODO(GYP)
274 #'chrome_browser_jni_headers', TODO(GYP) 272 #'chrome_browser_jni_headers', TODO(GYP)
275 ] 273 ]
276 deps -= [ 274 deps -= [
275 "//chrome/browser/ui/views",
277 "//components/feedback/proto", 276 "//components/feedback/proto",
278 "//third_party/libusb", 277 "//third_party/libusb",
279 "//ui/events", 278 "//ui/events",
280 #'chrome_browser_ui_views.gyp:browser_ui_views', TODO(GYP)
281 ] 279 ]
282 sources += rebase_path(gypi_values.chrome_browser_ui_android_sources, 280 sources += rebase_path(gypi_values.chrome_browser_ui_android_sources,
283 ".", "//chrome") 281 ".", "//chrome")
284 } else { # Non-Android. 282 } else { # Non-Android.
285 sources += rebase_path(gypi_values.chrome_browser_ui_non_android_sources, 283 sources += rebase_path(gypi_values.chrome_browser_ui_non_android_sources,
286 ".", "//chrome") 284 ".", "//chrome")
287 } 285 }
288 286
289 if (is_mac) { 287 if (is_mac) {
290 sources += rebase_path(gypi_values.chrome_browser_ui_mac_sources, 288 sources += rebase_path(gypi_values.chrome_browser_ui_mac_sources,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 ".", "//chrome") 329 ".", "//chrome")
332 } 330 }
333 331
334 if (is_win) { 332 if (is_win) {
335 sources += rebase_path(gypi_values.chrome_browser_ui_win_sources, 333 sources += rebase_path(gypi_values.chrome_browser_ui_win_sources,
336 ".", "//chrome") 334 ".", "//chrome")
337 deps += [ 335 deps += [
338 "//third_party/wtl", 336 "//third_party/wtl",
339 "//third_party/iaccessible2", 337 "//third_party/iaccessible2",
340 "//third_party/isimpledom", 338 "//third_party/isimpledom",
339 "//ui/app_list",
340 "//ui/views",
341 "//ui/views/controls/webview",
341 #'installer_util_strings', TODO(GYP) 342 #'installer_util_strings', TODO(GYP)
342 #'launcher_support', TODO(GYP) 343 #'launcher_support', TODO(GYP)
343 #'metro_utils', TODO(GYP) 344 #'metro_utils', TODO(GYP)
344 #'../google_update/google_update.gyp:google_update', TODO(GYP) 345 #'../google_update/google_update.gyp:google_update', TODO(GYP)
345 #'../ui/app_list/app_list.gyp:app_list', TODO(GYP)
346 #'../ui/views/controls/webview/webview.gyp:webview', TODO(GYP)
347 #'../ui/views/views.gyp:views', TODO(GYP)
348 ] 346 ]
349 forward_dependent_configs_from += [ 347 forward_dependent_configs_from += [
350 #'../ui/views/controls/webview/webview.gyp:webview', TODO(GYP) 348 "//ui/views",
351 #'../ui/views/views.gyp:views', TODO(GYP) 349 "//ui/views/controls/webview",
352 ] 350 ]
353 } else { # 'OS!="win" 351 } else { # 'OS!="win"
354 if (use_aura) { 352 if (use_aura) {
355 deps += [ 353 deps += [
356 #'../ui/views/controls/webview/webview.gyp:webview', TODO(GYP) 354 "//ui/views",
357 #'../ui/views/views.gyp:views', TODO(GYP) 355 "//ui/views/controls/webview",
356 ]
357 forward_dependent_configs_from += [
358 "//ui/views",
359 "//ui/views/controls/webview",
358 ] 360 ]
359 } 361 }
360 } 362 }
361 if (is_desktop_linux) { 363 if (is_desktop_linux) {
362 sources += rebase_path(gypi_values.chrome_browser_ui_desktop_linux_sources, 364 sources += rebase_path(gypi_values.chrome_browser_ui_desktop_linux_sources,
363 ".", "//chrome") 365 ".", "//chrome")
364 } 366 }
365 if (is_linux) { # Both desktop Linux and ChromeOS. 367 if (is_linux) { # Both desktop Linux and ChromeOS.
366 sources += rebase_path(gypi_values.chrome_browser_ui_linux_sources, 368 sources += rebase_path(gypi_values.chrome_browser_ui_linux_sources,
367 ".", "//chrome") 369 ".", "//chrome")
368 configs += [ "//build/config/linux:udev" ] 370 configs += [ "//build/config/linux:udev" ]
369 if (use_aura) { 371 if (use_aura) {
370 configs += [ "//build/config/linux:fontconfig" ] 372 configs += [ "//build/config/linux:fontconfig" ]
371 deps += [ "//dbus" ] 373 deps += [ "//dbus" ]
372 } 374 }
373 if (use_x11) { 375 if (use_x11) {
374 sources += rebase_path(gypi_values.chrome_browser_ui_x11_sources, 376 sources += rebase_path(gypi_values.chrome_browser_ui_x11_sources,
375 ".", "//chrome") 377 ".", "//chrome")
376 configs += [ "//build/config/linux:x11" ] 378 configs += [ "//build/config/linux:x11" ]
377 } 379 }
378 } 380 }
379 381
380 if (enable_app_list) { 382 if (enable_app_list) {
381 sources += rebase_path(gypi_values.chrome_browser_ui_app_list_sources, 383 sources += rebase_path(gypi_values.chrome_browser_ui_app_list_sources,
382 ".", "//chrome") 384 ".", "//chrome")
383 #deps += [ '../ui/app_list/app_list.gyp:app_list' ] TODO(GYP) 385 deps += [ "//ui/app_list" ]
384 } else { 386 } else {
385 sources += rebase_path(gypi_values.chrome_browser_ui_non_app_list_sources, 387 sources += rebase_path(gypi_values.chrome_browser_ui_non_app_list_sources,
386 ".", "//chrome") 388 ".", "//chrome")
387 } 389 }
388 if (enable_autofill_dialog) { 390 if (enable_autofill_dialog) {
389 sources += rebase_path( 391 sources += rebase_path(
390 gypi_values.chrome_browser_ui_autofill_dialog_sources, 392 gypi_values.chrome_browser_ui_autofill_dialog_sources,
391 ".", "//chrome") 393 ".", "//chrome")
392 if (!is_android && !is_ios) { 394 if (!is_android && !is_ios) {
393 sources += rebase_path( 395 sources += rebase_path(
(...skipping 16 matching lines...) Expand all
410 } 412 }
411 if (enable_service_discovery) { 413 if (enable_service_discovery) {
412 sources += rebase_path( 414 sources += rebase_path(
413 gypi_values.chrome_browser_ui_service_discovery_sources, 415 gypi_values.chrome_browser_ui_service_discovery_sources,
414 ".", "//chrome") 416 ".", "//chrome")
415 } 417 }
416 if (enable_spellcheck) { 418 if (enable_spellcheck) {
417 deps += [ "//third_party/hunspell" ] 419 deps += [ "//third_party/hunspell" ]
418 } 420 }
419 } 421 }
OLDNEW
« no previous file with comments | « build/config/android/rules.gni ('k') | chrome/utility/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698