OLD | NEW |
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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 "win/scoped_ole_initializer.h", | 251 "win/scoped_ole_initializer.h", |
252 "win/shell.cc", | 252 "win/shell.cc", |
253 "win/shell.h", | 253 "win/shell.h", |
254 "win/touch_input.cc", | 254 "win/touch_input.cc", |
255 "win/touch_input.h", | 255 "win/touch_input.h", |
256 "win/window_event_target.cc", | 256 "win/window_event_target.cc", |
257 "win/window_event_target.h", | 257 "win/window_event_target.h", |
258 "window_open_disposition.cc", | 258 "window_open_disposition.cc", |
259 "window_open_disposition.h", | 259 "window_open_disposition.h", |
260 "work_area_watcher_observer.h", | 260 "work_area_watcher_observer.h", |
261 "x/x11_foreign_window_manager.cc", | |
262 "x/x11_foreign_window_manager.h", | |
263 "x/x11_menu_list.cc", | |
264 "x/x11_menu_list.h", | |
265 "x/x11_util.cc", | |
266 "x/x11_util.h", | |
267 "x/x11_util_internal.h", | |
268 ] | 261 ] |
269 | 262 |
270 if (is_win) { | 263 if (is_win) { |
271 sources += [ "touch/touch_device_win.cc" ] | 264 sources += [ "touch/touch_device_win.cc" ] |
272 } else if (is_android) { | 265 } else if (is_android) { |
273 sources += [ "touch/touch_device_android.cc" ] | 266 sources += [ "touch/touch_device_android.cc" ] |
274 } else if (use_ozone) { | 267 } else if (use_ozone) { |
275 sources += [ "touch/touch_device_ozone.cc" ] | 268 sources += [ "touch/touch_device_ozone.cc" ] |
276 } else if (use_aura && use_x11) { | 269 } else if (use_aura && use_x11) { |
277 sources += [ "touch/touch_device_aurax11.cc" ] | 270 sources += [ "touch/touch_device_aurax11.cc" ] |
278 } else { | 271 } else { |
279 # Empty implementation for all other cases. | 272 # Empty implementation for all other cases. |
280 sources += [ "touch/touch_device.cc" ] | 273 sources += [ "touch/touch_device.cc" ] |
281 } | 274 } |
282 | 275 |
283 defines = [ "UI_BASE_IMPLEMENTATION" ] | 276 defines = [ "UI_BASE_IMPLEMENTATION" ] |
284 | 277 |
| 278 public_deps = [ |
| 279 "//base", |
| 280 "//skia", |
| 281 "//ui/events/platform", |
| 282 "//ui/events:events_base", |
| 283 "//ui/gfx", |
| 284 "//ui/gfx/geometry", |
| 285 ] |
285 deps = [ | 286 deps = [ |
286 "//base", | |
287 "//base/third_party/dynamic_annotations", | 287 "//base/third_party/dynamic_annotations", |
288 "//base:base_static", | 288 "//base:base_static", |
289 "//base:i18n", | 289 "//base:i18n", |
290 "//net", | 290 "//net", |
291 "//skia", | |
292 "//third_party/icu", | 291 "//third_party/icu", |
293 "//ui/events/platform", | |
294 "//ui/events:events_base", | |
295 "//ui/gfx", | |
296 "//ui/gfx/geometry", | |
297 "//ui/resources", | 292 "//ui/resources", |
298 "//ui/strings", | 293 "//ui/strings", |
299 "//url", | 294 "//url", |
300 ] | 295 ] |
301 # We expose these things in our headers: | |
302 forward_dependent_configs_from = [ | |
303 "//ui/gfx", | |
304 ] | |
305 | 296 |
306 if (build_ime) { | 297 if (build_ime) { |
307 if (!is_android) { | 298 if (!is_android) { |
308 deps += [ | 299 deps += [ |
309 "//ui/events", | 300 "//ui/events", |
310 ] | 301 ] |
311 } | 302 } |
312 | 303 |
313 sources += [ | 304 sources += [ |
314 "ime/candidate_window.cc", | 305 "ime/candidate_window.cc", |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 deps += [ | 427 deps += [ |
437 "//ui/events", | 428 "//ui/events", |
438 ] | 429 ] |
439 } else { | 430 } else { |
440 sources -= [ | 431 sources -= [ |
441 "cursor/cursor.cc", | 432 "cursor/cursor.cc", |
442 "cursor/cursor.h", | 433 "cursor/cursor.h", |
443 "dragdrop/drag_utils_aura.cc", | 434 "dragdrop/drag_utils_aura.cc", |
444 ] | 435 ] |
445 } | 436 } |
446 if (!use_x11) { | 437 if (use_x11) { |
447 sources -= [ | 438 sources += [ |
448 "x/x11_foreign_window_manager.cc", | 439 "x/x11_foreign_window_manager.cc", |
449 "x/x11_foreign_window_manager.h", | 440 "x/x11_foreign_window_manager.h", |
450 "x/x11_menu_list.cc", | 441 "x/x11_menu_list.cc", |
451 "x/x11_menu_list.h", | 442 "x/x11_menu_list.h", |
452 "x/x11_util.cc", | 443 "x/x11_util.cc", |
453 "x/x11_util.h", | 444 "x/x11_util.h", |
454 "x/x11_util_internal.h", | 445 "x/x11_util_internal.h", |
455 ] | 446 ] |
| 447 deps += [ "//ui/gfx/x" ] |
456 } | 448 } |
457 | 449 |
458 if (!use_aura || !is_linux) { | 450 if (!use_aura || !is_linux) { |
459 sources -= [ | 451 sources -= [ |
460 "resource/resource_bundle_auralinux.cc", | 452 "resource/resource_bundle_auralinux.cc", |
461 ] | 453 ] |
462 } | 454 } |
463 | 455 |
464 if (use_aura && is_win) { | 456 if (use_aura && is_win) { |
465 sources -= [ | 457 sources -= [ |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 testonly = true | 648 testonly = true |
657 sources = [ | 649 sources = [ |
658 "test/ui_controls.h", | 650 "test/ui_controls.h", |
659 "test/ui_controls_aura.cc", | 651 "test/ui_controls_aura.cc", |
660 "test/ui_controls_internal_win.cc", | 652 "test/ui_controls_internal_win.cc", |
661 "test/ui_controls_internal_win.h", | 653 "test/ui_controls_internal_win.h", |
662 "test/ui_controls_mac.mm", | 654 "test/ui_controls_mac.mm", |
663 "test/ui_controls_win.cc", | 655 "test/ui_controls_win.cc", |
664 ] | 656 ] |
665 | 657 |
| 658 public_deps = [ |
| 659 ":base", |
| 660 ] |
666 deps = [ | 661 deps = [ |
667 ":base", | |
668 "//base", | 662 "//base", |
669 "//skia", | 663 "//skia", |
670 "//testing/gtest", | 664 "//testing/gtest", |
671 "//ui/events:events_base", | 665 "//ui/events:events_base", |
672 "//ui/gfx", | 666 "//ui/gfx", |
673 "//ui/gfx/geometry", | 667 "//ui/gfx/geometry", |
674 ] | 668 ] |
675 | 669 |
676 if (build_ime) { | 670 if (build_ime) { |
677 sources += [ | 671 sources += [ |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 deps += [ | 887 deps += [ |
894 "//ui/aura:test_support", | 888 "//ui/aura:test_support", |
895 "//ui/events:gesture_detection", | 889 "//ui/events:gesture_detection", |
896 #'../chromeos/chromeos.gyp:chromeos', TODO(GYP) | 890 #'../chromeos/chromeos.gyp:chromeos', TODO(GYP) |
897 #'chromeos/ui_chromeos.gyp:ui_chromeos', | 891 #'chromeos/ui_chromeos.gyp:ui_chromeos', |
898 ] | 892 ] |
899 } | 893 } |
900 } | 894 } |
901 } | 895 } |
902 # TODO(GYP) Mac (ui_unittest_bundle) and Android (ui_unittests_apk). | 896 # TODO(GYP) Mac (ui_unittest_bundle) and Android (ui_unittests_apk). |
OLD | NEW |