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) { |
| 9 import("//build/config/android/rules.gni") |
| 10 } |
| 11 |
8 static_library("dom_keycode_converter") { | 12 static_library("dom_keycode_converter") { |
9 sources = [ | 13 sources = [ |
10 "keycodes/dom/dom_code.h", | 14 "keycodes/dom/dom_code.h", |
11 "keycodes/dom/dom_key.h", | 15 "keycodes/dom/dom_key.h", |
12 "keycodes/dom/dom_key_data.inc", | 16 "keycodes/dom/dom_key_data.inc", |
13 "keycodes/dom/keycode_converter.cc", | 17 "keycodes/dom/keycode_converter.cc", |
14 "keycodes/dom/keycode_converter.h", | 18 "keycodes/dom/keycode_converter.h", |
15 "keycodes/dom/keycode_converter_data.inc", | 19 "keycodes/dom/keycode_converter_data.inc", |
16 ] | 20 ] |
17 | 21 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 "gestures/gesture_recognizer_impl.cc", | 178 "gestures/gesture_recognizer_impl.cc", |
175 "gestures/gesture_recognizer_impl.h", | 179 "gestures/gesture_recognizer_impl.h", |
176 "gestures/motion_event_aura.cc", | 180 "gestures/motion_event_aura.cc", |
177 "gestures/motion_event_aura.h", | 181 "gestures/motion_event_aura.h", |
178 ] | 182 ] |
179 } | 183 } |
180 | 184 |
181 if (is_win || is_mac || use_x11 || use_ozone || (is_android && use_aura)) { | 185 if (is_win || is_mac || use_x11 || use_ozone || (is_android && use_aura)) { |
182 sources -= [ "events_stub.cc" ] | 186 sources -= [ "events_stub.cc" ] |
183 } | 187 } |
| 188 |
| 189 if (is_android) { |
| 190 sources += [ |
| 191 "android/events_jni_registrar.cc", |
| 192 "android/events_jni_registrar.h", |
| 193 "android/motion_event_android.cc", |
| 194 "android/motion_event_android.h", |
| 195 ] |
| 196 deps += [ ":motionevent_jni_headers" ] |
| 197 } |
184 } | 198 } |
185 | 199 |
186 component("gesture_detection") { | 200 component("gesture_detection") { |
187 sources = [ | 201 sources = [ |
188 "gesture_detection/bitset_32.h", | 202 "gesture_detection/bitset_32.h", |
189 "gesture_detection/filtered_gesture_provider.cc", | 203 "gesture_detection/filtered_gesture_provider.cc", |
190 "gesture_detection/filtered_gesture_provider.h", | 204 "gesture_detection/filtered_gesture_provider.h", |
191 "gesture_detection/gesture_configuration.cc", | 205 "gesture_detection/gesture_configuration.cc", |
192 "gesture_detection/gesture_configuration.h", | 206 "gesture_detection/gesture_configuration.h", |
193 "gesture_detection/gesture_detection_export.h", | 207 "gesture_detection/gesture_detection_export.h", |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 "//ui/events/ozone:events_ozone_layout", | 420 "//ui/events/ozone:events_ozone_layout", |
407 ] | 421 ] |
408 } | 422 } |
409 | 423 |
410 if (use_aura) { | 424 if (use_aura) { |
411 sources += [ | 425 sources += [ |
412 "gestures/gesture_provider_aura_unittest.cc", | 426 "gestures/gesture_provider_aura_unittest.cc", |
413 "gestures/motion_event_aura_unittest.cc", | 427 "gestures/motion_event_aura_unittest.cc", |
414 ] | 428 ] |
415 } | 429 } |
| 430 |
| 431 if (is_android) { |
| 432 sources += [ "android/motion_event_android_unittest.cc" ] |
| 433 } |
416 } | 434 } |
| 435 |
| 436 if (is_android) { |
| 437 generate_jar_jni("motionevent_jni_headers") { |
| 438 jni_package = "ui" |
| 439 classes = [ "android/view/MotionEvent.class" ] |
| 440 } |
| 441 } |
OLD | NEW |