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

Side by Side Diff: ui/base/BUILD.gn

Issue 584683002: Improve GN header checker, make //ui pass. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years, 3 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 | « ui/aura/BUILD.gn ('k') | ui/compositor/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/ui.gni") 5 import("//build/config/ui.gni")
6 6
7 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/config.gni") 8 import("//build/config/android/config.gni")
9 import("//build/config/android/rules.gni") 9 import("//build/config/android/rules.gni")
10 } 10 }
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 "win/scoped_ole_initializer.h", 254 "win/scoped_ole_initializer.h",
255 "win/shell.cc", 255 "win/shell.cc",
256 "win/shell.h", 256 "win/shell.h",
257 "win/touch_input.cc", 257 "win/touch_input.cc",
258 "win/touch_input.h", 258 "win/touch_input.h",
259 "win/window_event_target.cc", 259 "win/window_event_target.cc",
260 "win/window_event_target.h", 260 "win/window_event_target.h",
261 "window_open_disposition.cc", 261 "window_open_disposition.cc",
262 "window_open_disposition.h", 262 "window_open_disposition.h",
263 "work_area_watcher_observer.h", 263 "work_area_watcher_observer.h",
264 "x/x11_foreign_window_manager.cc",
265 "x/x11_foreign_window_manager.h",
266 "x/x11_menu_list.cc",
267 "x/x11_menu_list.h",
268 "x/x11_util.cc",
269 "x/x11_util.h",
270 "x/x11_util_internal.h",
271 ] 264 ]
272 265
273 if (is_win) { 266 if (is_win) {
274 sources += [ "touch/touch_device_win.cc" ] 267 sources += [ "touch/touch_device_win.cc" ]
275 } else if (is_android) { 268 } else if (is_android) {
276 sources += [ "touch/touch_device_android.cc" ] 269 sources += [ "touch/touch_device_android.cc" ]
277 } else if (use_ozone) { 270 } else if (use_ozone) {
278 sources += [ "touch/touch_device_ozone.cc" ] 271 sources += [ "touch/touch_device_ozone.cc" ]
279 } else if (use_aura && use_x11) { 272 } else if (use_aura && use_x11) {
280 sources += [ "touch/touch_device_aurax11.cc" ] 273 sources += [ "touch/touch_device_aurax11.cc" ]
281 } else { 274 } else {
282 # Empty implementation for all other cases. 275 # Empty implementation for all other cases.
283 sources += [ "touch/touch_device.cc" ] 276 sources += [ "touch/touch_device.cc" ]
284 } 277 }
285 278
286 defines = [ "UI_BASE_IMPLEMENTATION" ] 279 defines = [ "UI_BASE_IMPLEMENTATION" ]
287 280
281 public_deps = [
282 "//base",
283 "//skia",
284 "//ui/events/platform",
285 "//ui/events:events_base",
286 "//ui/gfx",
287 "//ui/gfx/geometry",
288 ]
288 deps = [ 289 deps = [
289 "//base",
290 "//base/third_party/dynamic_annotations", 290 "//base/third_party/dynamic_annotations",
291 "//base:base_static", 291 "//base:base_static",
292 "//base:i18n", 292 "//base:i18n",
293 "//net", 293 "//net",
294 "//skia",
295 "//third_party/icu", 294 "//third_party/icu",
296 "//ui/events/platform",
297 "//ui/events:events_base",
298 "//ui/gfx",
299 "//ui/gfx/geometry",
300 "//ui/resources", 295 "//ui/resources",
301 "//ui/strings", 296 "//ui/strings",
302 "//url", 297 "//url",
303 ] 298 ]
304 # We expose these things in our headers:
305 forward_dependent_configs_from = [
306 "//ui/gfx",
307 ]
308 299
309 if (build_ime) { 300 if (build_ime) {
310 if (!is_android) { 301 if (!is_android) {
311 deps += [ 302 deps += [
312 "//ui/events", 303 "//ui/events",
313 ] 304 ]
314 } 305 }
315 306
316 sources += [ 307 sources += [
317 "ime/candidate_window.cc", 308 "ime/candidate_window.cc",
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 deps += [ 430 deps += [
440 "//ui/events", 431 "//ui/events",
441 ] 432 ]
442 } else { 433 } else {
443 sources -= [ 434 sources -= [
444 "cursor/cursor.cc", 435 "cursor/cursor.cc",
445 "cursor/cursor.h", 436 "cursor/cursor.h",
446 "dragdrop/drag_utils_aura.cc", 437 "dragdrop/drag_utils_aura.cc",
447 ] 438 ]
448 } 439 }
449 if (!use_x11) { 440 if (use_x11) {
450 sources -= [ 441 sources += [
451 "x/x11_foreign_window_manager.cc", 442 "x/x11_foreign_window_manager.cc",
452 "x/x11_foreign_window_manager.h", 443 "x/x11_foreign_window_manager.h",
453 "x/x11_menu_list.cc", 444 "x/x11_menu_list.cc",
454 "x/x11_menu_list.h", 445 "x/x11_menu_list.h",
455 "x/x11_util.cc", 446 "x/x11_util.cc",
456 "x/x11_util.h", 447 "x/x11_util.h",
457 "x/x11_util_internal.h", 448 "x/x11_util_internal.h",
458 ] 449 ]
450 deps += [ "//ui/gfx/x" ]
459 } 451 }
460 452
461 if (!use_aura || !is_linux) { 453 if (!use_aura || !is_linux) {
462 sources -= [ 454 sources -= [
463 "resource/resource_bundle_auralinux.cc", 455 "resource/resource_bundle_auralinux.cc",
464 ] 456 ]
465 } 457 }
466 458
467 if (use_aura && is_win) { 459 if (use_aura && is_win) {
468 sources -= [ 460 sources -= [
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 testonly = true 651 testonly = true
660 sources = [ 652 sources = [
661 "test/ui_controls.h", 653 "test/ui_controls.h",
662 "test/ui_controls_aura.cc", 654 "test/ui_controls_aura.cc",
663 "test/ui_controls_internal_win.cc", 655 "test/ui_controls_internal_win.cc",
664 "test/ui_controls_internal_win.h", 656 "test/ui_controls_internal_win.h",
665 "test/ui_controls_mac.mm", 657 "test/ui_controls_mac.mm",
666 "test/ui_controls_win.cc", 658 "test/ui_controls_win.cc",
667 ] 659 ]
668 660
661 public_deps = [
662 ":base",
663 ]
669 deps = [ 664 deps = [
670 ":base",
671 "//base", 665 "//base",
672 "//skia", 666 "//skia",
673 "//testing/gtest", 667 "//testing/gtest",
674 "//ui/events:events_base", 668 "//ui/events:events_base",
675 "//ui/gfx", 669 "//ui/gfx",
676 "//ui/gfx/geometry", 670 "//ui/gfx/geometry",
677 ] 671 ]
678 672
679 if (build_ime) { 673 if (build_ime) {
680 sources += [ 674 sources += [
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 deps += [ 890 deps += [
897 "//ui/aura:test_support", 891 "//ui/aura:test_support",
898 "//ui/events:gesture_detection", 892 "//ui/events:gesture_detection",
899 #'../chromeos/chromeos.gyp:chromeos', TODO(GYP) 893 #'../chromeos/chromeos.gyp:chromeos', TODO(GYP)
900 #'chromeos/ui_chromeos.gyp:ui_chromeos', 894 #'chromeos/ui_chromeos.gyp:ui_chromeos',
901 ] 895 ]
902 } 896 }
903 } 897 }
904 } 898 }
905 # TODO(GYP) Mac (ui_unittest_bundle) and Android (ui_unittests_apk). 899 # TODO(GYP) Mac (ui_unittest_bundle) and Android (ui_unittests_apk).
OLDNEW
« no previous file with comments | « ui/aura/BUILD.gn ('k') | ui/compositor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698