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