| # Copyright 2014 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/config/jumbo.gni") |
| |
| if (is_android) { |
| import("//build/config/android/config.gni") |
| import("//build/config/android/rules.gni") |
| } |
| |
| jumbo_component("devices") { |
| sources = [ |
| "device_data_manager.cc", |
| "device_data_manager.h", |
| "device_hotplug_event_observer.h", |
| "device_util_linux.cc", |
| "device_util_linux.h", |
| "events_devices_export.h", |
| "gamepad_device.cc", |
| "gamepad_device.h", |
| "input_device.cc", |
| "input_device.h", |
| "input_device_event_observer.h", |
| "input_device_observer_android.cc", |
| "input_device_observer_android.h", |
| "input_device_observer_win.cc", |
| "input_device_observer_win.h", |
| "stylus_state.h", |
| "touch_device_transform.cc", |
| "touch_device_transform.h", |
| "touchscreen_device.cc", |
| "touchscreen_device.h", |
| ] |
| |
| defines = [ "EVENTS_DEVICES_IMPLEMENTATION" ] |
| |
| public_deps = [ |
| "//ui/display/types", |
| "//ui/gfx", |
| ] |
| |
| deps = [ |
| "//base", |
| "//base/third_party/dynamic_annotations", |
| "//skia", |
| "//ui/events:platform_event", |
| "//ui/gfx:geometry_skia", |
| "//ui/gfx/geometry", |
| ] |
| |
| if (is_android) { |
| deps += [ ":ui_events_devices_jni_headers" ] |
| } |
| } |
| |
| if (is_android) { |
| generate_jni("ui_events_devices_jni_headers") { |
| sources = [ |
| "../../android/java/src/org/chromium/ui/events/devices/InputDeviceObserver.java", |
| ] |
| } |
| } |
| |
| source_set("test_support") { |
| sources = [ |
| "device_data_manager_test_api.cc", |
| "device_data_manager_test_api.h", |
| ] |
| |
| deps = [ |
| "//base", |
| ] |
| |
| public_deps = [ |
| ":devices", |
| ] |
| } |