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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 sources += [ "gesture_detection/gesture_config_helper_aura.cc" ] | 209 sources += [ "gesture_detection/gesture_config_helper_aura.cc" ] |
210 } else { | 210 } else { |
211 sources += [ "gesture_detection/gesture_config_helper.cc" ] | 211 sources += [ "gesture_detection/gesture_config_helper.cc" ] |
212 } | 212 } |
213 } | 213 } |
214 | 214 |
215 source_set("test_support") { | 215 source_set("test_support") { |
216 sources = [ | 216 sources = [ |
217 "test/cocoa_test_event_utils.h", | 217 "test/cocoa_test_event_utils.h", |
218 "test/cocoa_test_event_utils.mm", | 218 "test/cocoa_test_event_utils.mm", |
| 219 "test/event_generator.cc", |
| 220 "test/event_generator.h", |
219 "test/events_test_utils.cc", | 221 "test/events_test_utils.cc", |
220 "test/events_test_utils.h", | 222 "test/events_test_utils.h", |
221 "test/events_test_utils_x11.cc", | 223 "test/events_test_utils_x11.cc", |
222 "test/events_test_utils_x11.h", | 224 "test/events_test_utils_x11.h", |
223 "test/mock_motion_event.cc", | 225 "test/mock_motion_event.cc", |
224 "test/mock_motion_event.h", | 226 "test/mock_motion_event.h", |
225 "test/platform_event_waiter.cc", | 227 "test/platform_event_waiter.cc", |
226 "test/platform_event_waiter.h", | 228 "test/platform_event_waiter.h", |
227 "test/test_event_handler.cc", | 229 "test/test_event_handler.cc", |
228 "test/test_event_handler.h", | 230 "test/test_event_handler.h", |
(...skipping 17 matching lines...) Expand all Loading... |
246 } | 248 } |
247 | 249 |
248 if (use_x11) { | 250 if (use_x11) { |
249 configs += [ "//build/config/linux:x11" ] | 251 configs += [ "//build/config/linux:x11" ] |
250 } else { | 252 } else { |
251 sources -= [ | 253 sources -= [ |
252 "test/events_test_utils_x11.cc", | 254 "test/events_test_utils_x11.cc", |
253 "test/events_test_utils_x11.h", | 255 "test/events_test_utils_x11.h", |
254 ] | 256 ] |
255 } | 257 } |
| 258 |
| 259 if (is_android) { |
| 260 # Event generator not yet ported to Android. |
| 261 sources -= [ |
| 262 "test/event_generator.cc", |
| 263 "test/event_generator.h", |
| 264 ] |
| 265 } |
256 } | 266 } |
257 | 267 |
258 test("events_unittests") { | 268 test("events_unittests") { |
259 sources = [ | 269 sources = [ |
260 "cocoa/events_mac_unittest.mm", | 270 "cocoa/events_mac_unittest.mm", |
261 "event_dispatcher_unittest.cc", | 271 "event_dispatcher_unittest.cc", |
262 "event_processor_unittest.cc", | 272 "event_processor_unittest.cc", |
263 "event_rewriter_unittest.cc", | 273 "event_rewriter_unittest.cc", |
264 "event_unittest.cc", | 274 "event_unittest.cc", |
265 "gestures/velocity_calculator_unittest.cc", | 275 "gestures/velocity_calculator_unittest.cc", |
(...skipping 27 matching lines...) Expand all Loading... |
293 ":events_base", | 303 ":events_base", |
294 ":gesture_detection", | 304 ":gesture_detection", |
295 ":test_support", | 305 ":test_support", |
296 "//base", | 306 "//base", |
297 "//base/test:run_all_unittests", | 307 "//base/test:run_all_unittests", |
298 "//skia", | 308 "//skia", |
299 "//testing/gtest", | 309 "//testing/gtest", |
300 "//ui/gfx:test_support", | 310 "//ui/gfx:test_support", |
301 ] | 311 ] |
302 } | 312 } |
OLD | NEW |