mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 22:36:09 +03:00
62 lines
1.5 KiB
Plaintext
62 lines
1.5 KiB
Plaintext
# 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.
|
|
|
|
if (is_android) {
|
|
import("//build/config/android/config.gni")
|
|
import("//build/config/android/rules.gni")
|
|
}
|
|
|
|
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",
|
|
"input_device.cc",
|
|
"input_device.h",
|
|
"input_device_event_observer.h",
|
|
"input_device_manager.cc",
|
|
"input_device_manager.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/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",
|
|
]
|
|
jni_package = "events/devices"
|
|
}
|
|
}
|