blob: 1c7610634d6be058f195ac658e748c633d86ce56 [file] [log] [blame]
# 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")
}
# Reset sources_assignment_filter for the BUILD.gn file to prevent
# regression during the migration of Chromium away from the feature.
# See build/no_sources_assignment_filter.md for more information.
# TODO(crbug.com/1018739): remove this when migration is done.
set_sources_assignment_filter([])
jumbo_component("devices") {
sources = [
"device_data_manager.cc",
"device_data_manager.h",
"device_hotplug_event_observer.h",
"events_devices_export.h",
"gamepad_device.cc",
"gamepad_device.h",
"input_device.cc",
"input_device.h",
"input_device_event_observer.h",
"stylus_state.h",
"touch_device_transform.cc",
"touch_device_transform.h",
"touchscreen_device.cc",
"touchscreen_device.h",
]
if (is_linux) {
sources += [
"device_util_linux.cc",
"device_util_linux.h",
]
}
if (is_android) {
sources += [
"input_device_observer_android.cc",
"input_device_observer_android.h",
]
}
if (is_win) {
sources += [
"input_device_observer_win.cc",
"input_device_observer_win.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",
]
}