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/dom4/keycode_converter.cc", | 9 "keycodes/dom4/keycode_converter.cc", |
10 "keycodes/dom4/keycode_converter.h", | 10 "keycodes/dom4/keycode_converter.h", |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 "//skia", | 48 "//skia", |
49 ] | 49 ] |
50 | 50 |
51 public_deps = [ | 51 public_deps = [ |
52 "//base", | 52 "//base", |
53 "//ui/events/platform", | 53 "//ui/events/platform", |
54 "//ui/gfx", | 54 "//ui/gfx", |
55 "//ui/gfx/geometry", | 55 "//ui/gfx/geometry", |
56 ] | 56 ] |
57 | 57 |
58 if (use_x11) { | 58 if (use_x11_backend) { |
59 configs += [ "//build/config/linux:x11" ] | 59 configs += [ "//build/config/linux:x11" ] |
60 | 60 |
61 sources += [ | 61 sources += [ |
62 "keycodes/keyboard_code_conversion_x.cc", | 62 "keycodes/keyboard_code_conversion_x.cc", |
63 "keycodes/keyboard_code_conversion_x.h", | 63 "keycodes/keyboard_code_conversion_x.h", |
64 "x/keysym_to_unicode.cc", | 64 "x/keysym_to_unicode.cc", |
65 "x/keysym_to_unicode.h", | 65 "x/keysym_to_unicode.h", |
66 ] | 66 ] |
67 | 67 |
68 deps += [ "//ui/gfx/x" ] | 68 deps += [ "//ui/gfx/x" ] |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
106 ] | 106 ] |
107 deps = [ | 107 deps = [ |
108 ":dom4_keycode_converter", | 108 ":dom4_keycode_converter", |
109 ":gesture_detection", | 109 ":gesture_detection", |
110 "//base/third_party/dynamic_annotations", | 110 "//base/third_party/dynamic_annotations", |
111 "//skia", | 111 "//skia", |
112 "//ui/gfx", | 112 "//ui/gfx", |
113 "//ui/gfx/geometry", | 113 "//ui/gfx/geometry", |
114 ] | 114 ] |
115 | 115 |
116 if (use_x11) { | 116 if (use_x11_backend) { |
117 sources += [ "x/events_x.cc" ] | 117 sources += [ "x/events_x.cc" ] |
118 configs += [ | 118 configs += [ |
119 "//build/config/linux:glib", | 119 "//build/config/linux:glib", |
120 "//build/config/linux:x11", | 120 "//build/config/linux:x11", |
121 ] | 121 ] |
122 deps += [ | 122 deps += [ |
123 "//ui/events/devices", | 123 "//ui/events/devices", |
124 "//ui/gfx/x", | 124 "//ui/gfx/x", |
125 ] | 125 ] |
126 } | 126 } |
127 | 127 |
128 if (!is_chromeos && is_linux) { | 128 if (!is_chromeos && is_linux) { |
129 sources += [ | 129 sources += [ |
130 "linux/text_edit_command_auralinux.cc", | 130 "linux/text_edit_command_auralinux.cc", |
131 "linux/text_edit_command_auralinux.h", | 131 "linux/text_edit_command_auralinux.h", |
132 "linux/text_edit_key_bindings_delegate_auralinux.cc", | 132 "linux/text_edit_key_bindings_delegate_auralinux.cc", |
133 "linux/text_edit_key_bindings_delegate_auralinux.h", | 133 "linux/text_edit_key_bindings_delegate_auralinux.h", |
134 ] | 134 ] |
135 } | 135 } |
136 | 136 |
137 if (use_ozone) { | 137 if (use_ozone) { |
138 if (use_ozone_x11) { | |
139 defines += [ | |
140 "OZONE_X11" | |
spang
2014/11/24 18:56:54
can we do without this ifdef?
achaulk
2014/11/24 19:28:39
Not easily, events_ozone.cc and events_x.cc both d
| |
141 ] | |
142 } | |
138 sources += [ | 143 sources += [ |
139 "ozone/events_ozone.cc", | 144 "ozone/events_ozone.cc", |
140 ] | 145 ] |
141 } | 146 } |
142 | 147 |
143 if (use_aura) { | 148 if (use_aura) { |
144 sources += [ | 149 sources += [ |
145 "gestures/gesture_provider_aura.cc", | 150 "gestures/gesture_provider_aura.cc", |
146 "gestures/gesture_provider_aura.h", | 151 "gestures/gesture_provider_aura.h", |
147 "gestures/motion_event_aura.cc", | 152 "gestures/motion_event_aura.cc", |
148 "gestures/motion_event_aura.h", | 153 "gestures/motion_event_aura.h", |
149 "gestures/gesture_recognizer.h", | 154 "gestures/gesture_recognizer.h", |
150 "gestures/gesture_recognizer_impl.cc", | 155 "gestures/gesture_recognizer_impl.cc", |
151 "gestures/gesture_recognizer_impl.h", | 156 "gestures/gesture_recognizer_impl.h", |
152 ] | 157 ] |
153 } | 158 } |
154 | 159 |
155 if (is_win || is_mac || use_x11 || use_ozone) { | 160 if (is_win || is_mac || use_x11_backend || use_ozone) { |
156 sources -= [ "events_stub.cc" ] | 161 sources -= [ "events_stub.cc" ] |
157 } | 162 } |
158 } | 163 } |
159 | 164 |
160 component("gesture_detection") { | 165 component("gesture_detection") { |
161 sources = [ | 166 sources = [ |
162 "gesture_detection/bitset_32.h", | 167 "gesture_detection/bitset_32.h", |
163 "gesture_detection/filtered_gesture_provider.cc", | 168 "gesture_detection/filtered_gesture_provider.cc", |
164 "gesture_detection/filtered_gesture_provider.h", | 169 "gesture_detection/filtered_gesture_provider.h", |
165 "gesture_detection/gesture_configuration.cc", | 170 "gesture_detection/gesture_configuration.cc", |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
250 "//ui/gfx/geometry", | 255 "//ui/gfx/geometry", |
251 ] | 256 ] |
252 | 257 |
253 if (is_ios) { | 258 if (is_ios) { |
254 sources -= [ | 259 sources -= [ |
255 "test/cocoa_test_event_utils.h", | 260 "test/cocoa_test_event_utils.h", |
256 "test/cocoa_test_event_utils.mm", | 261 "test/cocoa_test_event_utils.mm", |
257 ] | 262 ] |
258 } | 263 } |
259 | 264 |
260 if (use_x11) { | 265 if (use_x11_backend) { |
261 sources += [ | 266 sources += [ |
262 "test/events_test_utils_x11.cc", | 267 "test/events_test_utils_x11.cc", |
263 "test/events_test_utils_x11.h", | 268 "test/events_test_utils_x11.h", |
264 ] | 269 ] |
265 deps += [ | 270 deps += [ |
266 "//ui/events/devices", | 271 "//ui/events/devices", |
267 "//ui/gfx/x", | 272 "//ui/gfx/x", |
268 ] | 273 ] |
269 } | 274 } |
270 } | 275 } |
(...skipping 30 matching lines...) Expand all Loading... | |
301 ":test_support", | 306 ":test_support", |
302 "//base", | 307 "//base", |
303 "//base/test:run_all_unittests", | 308 "//base/test:run_all_unittests", |
304 "//skia", | 309 "//skia", |
305 "//testing/gtest", | 310 "//testing/gtest", |
306 "//ui/events/devices", | 311 "//ui/events/devices", |
307 "//ui/events/platform", | 312 "//ui/events/platform", |
308 "//ui/gfx:test_support", | 313 "//ui/gfx:test_support", |
309 ] | 314 ] |
310 | 315 |
311 if (use_x11) { | 316 if (use_x11_backend) { |
312 configs += [ "//build/config/linux:x11" ] | 317 configs += [ "//build/config/linux:x11" ] |
313 deps += [ "//ui/gfx/x" ] | 318 deps += [ "//ui/gfx/x" ] |
314 } else { | 319 } else { |
315 sources -= [ | 320 sources -= [ |
316 "devices/x11/device_data_manager_x11_unittest.cc", | 321 "devices/x11/device_data_manager_x11_unittest.cc", |
317 "x/events_x_unittest.cc", | 322 "x/events_x_unittest.cc", |
318 ] | 323 ] |
319 } | 324 } |
320 | 325 |
321 if (use_ozone) { | 326 if (use_ozone) { |
322 sources += [ | 327 sources += [ |
323 "ozone/evdev/event_converter_evdev_impl_unittest.cc", | 328 "ozone/evdev/event_converter_evdev_impl_unittest.cc", |
324 "ozone/evdev/tablet_event_converter_evdev_unittest.cc", | 329 "ozone/evdev/tablet_event_converter_evdev_unittest.cc", |
325 "ozone/evdev/touch_event_converter_evdev_unittest.cc", | 330 "ozone/evdev/touch_event_converter_evdev_unittest.cc", |
326 ] | 331 ] |
327 deps += [ | 332 deps += [ |
328 "//ui/events/ozone:events_ozone", | 333 "//ui/events/ozone:events_ozone", |
329 "//ui/events/ozone:events_ozone_evdev", | 334 "//ui/events/ozone:events_ozone_evdev", |
330 ] | 335 ] |
331 } | 336 } |
332 | 337 |
333 if (use_aura) { | 338 if (use_aura) { |
334 sources += [ | 339 sources += [ |
335 "gestures/gesture_provider_aura_unittest.cc", | 340 "gestures/gesture_provider_aura_unittest.cc", |
336 ] | 341 ] |
337 } | 342 } |
338 } | 343 } |
OLD | NEW |