blob: 9817c73658602d0793684a5ee147b2240a521412 [file] [log] [blame]
Dan Willemsen86e247a2017-12-18 21:10:37 -08001// Copyright (C) 2015 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Evdev module implementation
Bob Badourd7984cc2021-02-12 20:51:13 -080016package {
17 // See: http://go/android-license-faq
18 // A large-scale-change added 'default_applicable_licenses' to import
19 // all of the 'license_kinds' from "hardware_libhardware_license"
20 // to get the below license kinds:
21 // SPDX-license-identifier-Apache-2.0
22 default_applicable_licenses: ["hardware_libhardware_license"],
23}
24
Dan Willemsen86e247a2017-12-18 21:10:37 -080025cc_library_shared {
26 name: "libinput_evdev",
27
28 srcs: [
29 "BitUtils.cpp",
30 "InputHub.cpp",
31 "InputDevice.cpp",
32 "InputDeviceManager.cpp",
33 "InputHost.cpp",
34 "InputMapper.cpp",
35 "MouseInputMapper.cpp",
36 "SwitchInputMapper.cpp",
37 ],
38
Orion Hodson2bc7bf02020-04-22 11:25:47 +010039 header_libs: ["jni_headers"],
Dan Willemsen86e247a2017-12-18 21:10:37 -080040 shared_libs: [
41 "libhardware_legacy",
42 "liblog",
43 "libutils",
44 ],
45
46 export_include_dirs: ["."],
47
48 cppflags: [
49 "-Wno-unused-parameter",
50 ],
51}
52
53// HAL module
54cc_library_shared {
55 name: "input.evdev.default",
56 relative_install_path: "hw",
57
58 srcs: ["EvdevModule.cpp"],
59
60 shared_libs: [
61 "libinput_evdev",
62 "liblog",
63 ],
64
65 cppflags: [
66 "-Wall",
67 "-Werror",
68 "-Wno-unused-parameter",
69 ],
70}