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 static_library("dom4_keycode_converter") { | 7 static_library("dom4_keycode_converter") { |
8 sources = [ | 8 sources = [ |
9 "keycodes/dom3/dom_code.h", | 9 "keycodes/dom3/dom_code.h", |
10 "keycodes/dom3/dom_key.h", | 10 "keycodes/dom3/dom_key.h", |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 "//skia", | 53 "//skia", |
54 ] | 54 ] |
55 | 55 |
56 public_deps = [ | 56 public_deps = [ |
57 "//base", | 57 "//base", |
58 "//ui/events/platform", | 58 "//ui/events/platform", |
59 "//ui/gfx", | 59 "//ui/gfx", |
60 "//ui/gfx/geometry", | 60 "//ui/gfx/geometry", |
61 ] | 61 ] |
62 | 62 |
63 if (use_x11) { | 63 if (use_x11_backend) { |
64 configs += [ "//build/config/linux:x11" ] | 64 configs += [ "//build/config/linux:x11" ] |
65 | 65 |
66 sources += [ | 66 sources += [ |
67 "keycodes/keyboard_code_conversion_x.cc", | 67 "keycodes/keyboard_code_conversion_x.cc", |
68 "keycodes/keyboard_code_conversion_x.h", | 68 "keycodes/keyboard_code_conversion_x.h", |
69 "x/keysym_to_unicode.cc", | 69 "x/keysym_to_unicode.cc", |
70 "x/keysym_to_unicode.h", | 70 "x/keysym_to_unicode.h", |
71 ] | 71 ] |
72 | 72 |
73 deps += [ "//ui/gfx/x" ] | 73 deps += [ "//ui/gfx/x" ] |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 ] | 111 ] |
112 deps = [ | 112 deps = [ |
113 ":dom4_keycode_converter", | 113 ":dom4_keycode_converter", |
114 ":gesture_detection", | 114 ":gesture_detection", |
115 "//base/third_party/dynamic_annotations", | 115 "//base/third_party/dynamic_annotations", |
116 "//skia", | 116 "//skia", |
117 "//ui/gfx", | 117 "//ui/gfx", |
118 "//ui/gfx/geometry", | 118 "//ui/gfx/geometry", |
119 ] | 119 ] |
120 | 120 |
121 if (use_x11) { | 121 if (use_x11_backend) { |
122 sources += [ "x/events_x.cc" ] | 122 sources += [ "x/events_x.cc" ] |
123 configs += [ | 123 configs += [ |
124 "//build/config/linux:glib", | 124 "//build/config/linux:glib", |
125 "//build/config/linux:x11", | 125 "//build/config/linux:x11", |
126 ] | 126 ] |
127 deps += [ | 127 deps += [ |
128 "//ui/events/devices", | 128 "//ui/events/devices", |
129 "//ui/gfx/x", | 129 "//ui/gfx/x", |
130 ] | 130 ] |
131 } | 131 } |
(...skipping 16 matching lines...) Expand all Loading... |
148 "gestures/gesture_provider_aura.cc", | 148 "gestures/gesture_provider_aura.cc", |
149 "gestures/gesture_provider_aura.h", | 149 "gestures/gesture_provider_aura.h", |
150 "gestures/motion_event_aura.cc", | 150 "gestures/motion_event_aura.cc", |
151 "gestures/motion_event_aura.h", | 151 "gestures/motion_event_aura.h", |
152 "gestures/gesture_recognizer.h", | 152 "gestures/gesture_recognizer.h", |
153 "gestures/gesture_recognizer_impl.cc", | 153 "gestures/gesture_recognizer_impl.cc", |
154 "gestures/gesture_recognizer_impl.h", | 154 "gestures/gesture_recognizer_impl.h", |
155 ] | 155 ] |
156 } | 156 } |
157 | 157 |
158 if (is_win || is_mac || use_x11 || use_ozone) { | 158 if (is_win || is_mac || use_x11_backend || use_ozone) { |
159 sources -= [ "events_stub.cc" ] | 159 sources -= [ "events_stub.cc" ] |
160 } | 160 } |
161 } | 161 } |
162 | 162 |
163 component("gesture_detection") { | 163 component("gesture_detection") { |
164 sources = [ | 164 sources = [ |
165 "gesture_detection/bitset_32.h", | 165 "gesture_detection/bitset_32.h", |
166 "gesture_detection/filtered_gesture_provider.cc", | 166 "gesture_detection/filtered_gesture_provider.cc", |
167 "gesture_detection/filtered_gesture_provider.h", | 167 "gesture_detection/filtered_gesture_provider.h", |
168 "gesture_detection/gesture_configuration.cc", | 168 "gesture_detection/gesture_configuration.cc", |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 "//ui/gfx/geometry", | 253 "//ui/gfx/geometry", |
254 ] | 254 ] |
255 | 255 |
256 if (is_ios) { | 256 if (is_ios) { |
257 sources -= [ | 257 sources -= [ |
258 "test/cocoa_test_event_utils.h", | 258 "test/cocoa_test_event_utils.h", |
259 "test/cocoa_test_event_utils.mm", | 259 "test/cocoa_test_event_utils.mm", |
260 ] | 260 ] |
261 } | 261 } |
262 | 262 |
263 if (use_x11) { | 263 if (use_x11_backend) { |
264 sources += [ | 264 sources += [ |
265 "test/events_test_utils_x11.cc", | 265 "test/events_test_utils_x11.cc", |
266 "test/events_test_utils_x11.h", | 266 "test/events_test_utils_x11.h", |
267 ] | 267 ] |
268 deps += [ | 268 deps += [ |
269 "//ui/events/devices", | 269 "//ui/events/devices", |
270 "//ui/gfx/x", | 270 "//ui/gfx/x", |
271 ] | 271 ] |
272 } | 272 } |
273 } | 273 } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 "//base/test:run_all_unittests", | 306 "//base/test:run_all_unittests", |
307 "//skia", | 307 "//skia", |
308 "//testing/gtest", | 308 "//testing/gtest", |
309 "//ui/events/devices", | 309 "//ui/events/devices", |
310 "//ui/events/platform", | 310 "//ui/events/platform", |
311 "//ui/gfx:test_support", | 311 "//ui/gfx:test_support", |
312 ] | 312 ] |
313 | 313 |
314 include_dirs = [ "//testing/gmock/include" ] | 314 include_dirs = [ "//testing/gmock/include" ] |
315 | 315 |
316 if (use_x11) { | 316 if (use_x11_backend) { |
317 configs += [ "//build/config/linux:x11" ] | 317 configs += [ "//build/config/linux:x11" ] |
318 deps += [ "//ui/gfx/x" ] | 318 deps += [ "//ui/gfx/x" ] |
319 } else { | 319 } else { |
320 sources -= [ | 320 sources -= [ |
321 "devices/x11/device_data_manager_x11_unittest.cc", | 321 "devices/x11/device_data_manager_x11_unittest.cc", |
322 "x/events_x_unittest.cc", | 322 "x/events_x_unittest.cc", |
323 ] | 323 ] |
324 } | 324 } |
325 | 325 |
326 if (use_ozone) { | 326 if (use_ozone) { |
327 sources += [ | 327 sources += [ |
328 "ozone/chromeos/cursor_controller_unittest.cc", | 328 "ozone/chromeos/cursor_controller_unittest.cc", |
329 "ozone/evdev/event_converter_evdev_impl_unittest.cc", | 329 "ozone/evdev/event_converter_evdev_impl_unittest.cc", |
330 "ozone/evdev/input_injector_evdev_unittest.cc", | 330 "ozone/evdev/input_injector_evdev_unittest.cc", |
331 "ozone/evdev/tablet_event_converter_evdev_unittest.cc", | 331 "ozone/evdev/tablet_event_converter_evdev_unittest.cc", |
332 "ozone/evdev/touch_event_converter_evdev_unittest.cc", | 332 "ozone/evdev/touch_event_converter_evdev_unittest.cc", |
333 ] | 333 ] |
334 deps += [ | 334 deps += [ |
335 "//ui/events/ozone:events_ozone", | 335 "//ui/events/ozone:events_ozone", |
336 "//ui/events/ozone:events_ozone_evdev", | 336 "//ui/events/ozone:events_ozone_evdev", |
337 ] | 337 ] |
338 } | 338 } |
339 | 339 |
340 if (use_aura) { | 340 if (use_aura) { |
341 sources += [ "gestures/gesture_provider_aura_unittest.cc" ] | 341 sources += [ "gestures/gesture_provider_aura_unittest.cc" ] |
342 } | 342 } |
343 } | 343 } |
OLD | NEW |