1// 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
16cc_library_shared {
17    name: "libinput_evdev",
18
19    srcs: [
20        "BitUtils.cpp",
21        "InputHub.cpp",
22        "InputDevice.cpp",
23        "InputDeviceManager.cpp",
24        "InputHost.cpp",
25        "InputMapper.cpp",
26        "MouseInputMapper.cpp",
27        "SwitchInputMapper.cpp",
28    ],
29
30    shared_libs: [
31        "libhardware_legacy",
32        "liblog",
33        "libutils",
34    ],
35
36    export_include_dirs: ["."],
37
38    cppflags: [
39        "-Wno-unused-parameter",
40    ],
41}
42
43// HAL module
44cc_library_shared {
45    name: "input.evdev.default",
46    relative_install_path: "hw",
47
48    srcs: ["EvdevModule.cpp"],
49
50    shared_libs: [
51        "libinput_evdev",
52        "liblog",
53    ],
54
55    cppflags: [
56        "-Wall",
57        "-Werror",
58        "-Wno-unused-parameter",
59    ],
60}
61