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    header_libs: ["jni_headers"],
31    shared_libs: [
32        "libhardware_legacy",
33        "liblog",
34        "libutils",
35    ],
36
37    export_include_dirs: ["."],
38
39    cppflags: [
40        "-Wno-unused-parameter",
41    ],
42}
43
44// HAL module
45cc_library_shared {
46    name: "input.evdev.default",
47    relative_install_path: "hw",
48
49    srcs: ["EvdevModule.cpp"],
50
51    shared_libs: [
52        "libinput_evdev",
53        "liblog",
54    ],
55
56    cppflags: [
57        "-Wall",
58        "-Werror",
59        "-Wno-unused-parameter",
60    ],
61}
62