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 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 if (is_android) { | 8 if (is_android) { |
9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 sources += [ "touch/touch_device_win.cc" ] | 287 sources += [ "touch/touch_device_win.cc" ] |
288 } else if (is_android) { | 288 } else if (is_android) { |
289 sources += [ "touch/touch_device_android.cc" ] | 289 sources += [ "touch/touch_device_android.cc" ] |
290 } else if (is_linux) { | 290 } else if (is_linux) { |
291 sources += [ "touch/touch_device_linux.cc" ] | 291 sources += [ "touch/touch_device_linux.cc" ] |
292 } else { | 292 } else { |
293 # Empty implementation for all other cases. | 293 # Empty implementation for all other cases. |
294 sources += [ "touch/touch_device.cc" ] | 294 sources += [ "touch/touch_device.cc" ] |
295 } | 295 } |
296 | 296 |
| 297 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 298 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 299 |
297 defines = [ "UI_BASE_IMPLEMENTATION" ] | 300 defines = [ "UI_BASE_IMPLEMENTATION" ] |
298 | 301 |
299 public_deps = [ | 302 public_deps = [ |
300 "//base", | 303 "//base", |
301 "//skia", | 304 "//skia", |
302 "//ui/events/platform", | 305 "//ui/events/platform", |
303 "//ui/events:events_base", | 306 "//ui/events:events_base", |
304 "//ui/gfx", | 307 "//ui/gfx", |
305 "//ui/gfx/geometry", | 308 "//ui/gfx/geometry", |
306 ] | 309 ] |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 } | 411 } |
409 | 412 |
410 libs = [] | 413 libs = [] |
411 if (is_win) { | 414 if (is_win) { |
412 sources += [ | 415 sources += [ |
413 "cursor/cursor_loader_win.cc", | 416 "cursor/cursor_loader_win.cc", |
414 "cursor/cursor_loader_win.h", | 417 "cursor/cursor_loader_win.h", |
415 ] | 418 ] |
416 deps += [ "//third_party/wtl" ] | 419 deps += [ "//third_party/wtl" ] |
417 cflags = [ | 420 cflags = [ |
418 "/wd4267", # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int. | |
419 "/wd4324", # Structure was padded due to __declspec(align()), which is | 421 "/wd4324", # Structure was padded due to __declspec(align()), which is |
420 # uninteresting. | 422 # uninteresting. |
421 ] | 423 ] |
422 ldflags = [ | 424 ldflags = [ |
423 "/DELAYLOAD:d2d1.dll", | 425 "/DELAYLOAD:d2d1.dll", |
424 "/DELAYLOAD:d3d10_1.dll", | 426 "/DELAYLOAD:d3d10_1.dll", |
425 "/DELAYLOAD:dwmapi.dll", | 427 "/DELAYLOAD:dwmapi.dll", |
426 ] | 428 ] |
427 libs += [ | 429 libs += [ |
428 "d2d1.lib", | 430 "d2d1.lib", |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 } | 694 } |
693 if (!use_x11 && is_chromeos) { | 695 if (!use_x11 && is_chromeos) { |
694 # These were already removed in the non-chromeos case. | 696 # These were already removed in the non-chromeos case. |
695 sources -= [ | 697 sources -= [ |
696 "ime/chromeos/character_composer_unittest.cc", | 698 "ime/chromeos/character_composer_unittest.cc", |
697 "ime/input_method_chromeos_unittest.cc", | 699 "ime/input_method_chromeos_unittest.cc", |
698 ] | 700 ] |
699 } | 701 } |
700 } | 702 } |
701 | 703 |
| 704 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 705 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 706 |
702 deps = [ | 707 deps = [ |
703 "//base", | 708 "//base", |
704 "//base/allocator", | 709 "//base/allocator", |
705 "//base/test:test_support", | 710 "//base/test:test_support", |
706 "//net", | 711 "//net", |
707 "//skia", | 712 "//skia", |
708 "//testing/gmock", | 713 "//testing/gmock", |
709 "//testing/gtest", | 714 "//testing/gtest", |
710 "//third_party/icu", | 715 "//third_party/icu", |
711 "//ui/base", | 716 "//ui/base", |
(...skipping 25 matching lines...) Expand all Loading... |
737 ldflags = [ | 742 ldflags = [ |
738 "/DELAYLOAD:d2d1.dll", | 743 "/DELAYLOAD:d2d1.dll", |
739 "/DELAYLOAD:d3d10_1.dll", | 744 "/DELAYLOAD:d3d10_1.dll", |
740 ] | 745 ] |
741 libs = [ | 746 libs = [ |
742 "d2d1.lib", | 747 "d2d1.lib", |
743 "d3d10_1.lib", | 748 "d3d10_1.lib", |
744 "imm32.lib", | 749 "imm32.lib", |
745 "oleacc.lib", | 750 "oleacc.lib", |
746 ] | 751 ] |
747 | |
748 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
749 cflags = [ "/wd4267" ] | |
750 } | 752 } |
751 | 753 |
752 if (!is_win || !use_aura) { | 754 if (!is_win || !use_aura) { |
753 sources -= [ "view_prop_unittest.cc" ] | 755 sources -= [ "view_prop_unittest.cc" ] |
754 } | 756 } |
755 | 757 |
756 if (is_android) { | 758 if (is_android) { |
757 apk_deps = [ "//chrome:resources" ] | 759 apk_deps = [ "//chrome:resources" ] |
758 } | 760 } |
759 | 761 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 } | 802 } |
801 | 803 |
802 if (is_chromeos) { | 804 if (is_chromeos) { |
803 deps += [ | 805 deps += [ |
804 "//chromeos", | 806 "//chromeos", |
805 "//ui/events:dom4_keycode_converter", | 807 "//ui/events:dom4_keycode_converter", |
806 ] | 808 ] |
807 } | 809 } |
808 } | 810 } |
809 # TODO(GYP) Mac (ui_base_tests_bundle) | 811 # TODO(GYP) Mac (ui_base_tests_bundle) |
OLD | NEW |