blob: 83a610f76808accd360f7f3e5d9f740c4a5d1600 [file] [log] [blame]
Prabir Pradhanda7c00c2019-08-29 14:12:42 -07001// Copyright (C) 2019 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
15cc_library_headers {
16 name: "libinputreader_headers",
Prabir Pradhan2770d242019-09-02 18:07:11 -070017 export_include_dirs: [
18 "include",
19 "mapper",
20 "mapper/accumulator",
21 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070022}
23
Prabir Pradhan9244aea2020-02-05 20:31:40 -080024filegroup {
25 name: "libinputreader_sources",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070026 srcs: [
27 "EventHub.cpp",
Prabir Pradhanbaa5c822019-08-30 15:27:05 -070028 "InputDevice.cpp",
Prabir Pradhan2770d242019-09-02 18:07:11 -070029 "mapper/accumulator/CursorButtonAccumulator.cpp",
30 "mapper/accumulator/CursorScrollAccumulator.cpp",
31 "mapper/accumulator/SingleTouchMotionAccumulator.cpp",
32 "mapper/accumulator/TouchButtonAccumulator.cpp",
33 "mapper/CursorInputMapper.cpp",
34 "mapper/ExternalStylusInputMapper.cpp",
35 "mapper/InputMapper.cpp",
36 "mapper/JoystickInputMapper.cpp",
37 "mapper/KeyboardInputMapper.cpp",
38 "mapper/MultiTouchInputMapper.cpp",
39 "mapper/RotaryEncoderInputMapper.cpp",
40 "mapper/SingleTouchInputMapper.cpp",
41 "mapper/SwitchInputMapper.cpp",
42 "mapper/TouchInputMapper.cpp",
43 "mapper/VibratorInputMapper.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070044 "InputReader.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070045 "TouchVideoDevice.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070046 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080047}
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070048
Prabir Pradhan9244aea2020-02-05 20:31:40 -080049cc_defaults {
50 name: "libinputreader_defaults",
51 srcs: [":libinputreader_sources"],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070052 shared_libs: [
53 "libbase",
Siarhei Vishniakou7a522bf2019-09-24 12:46:29 +010054 "libcap",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070055 "libcrypto",
56 "libcutils",
57 "libinput",
58 "liblog",
59 "libui",
60 "libutils",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070061 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070062 header_libs: [
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070063 "libinputreader_headers",
64 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080065}
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070066
Prabir Pradhan9244aea2020-02-05 20:31:40 -080067cc_library_shared {
68 name: "libinputreader",
69 defaults: [
70 "inputflinger_defaults",
71 "libinputreader_defaults"
72 ],
73 srcs: [
74 "InputReaderFactory.cpp",
75 ],
76 shared_libs: [
77 // This should consist only of dependencies from inputflinger. Other dependencies should be
78 // in cc_defaults so that they are included in the tests.
79 "libinputflinger_base",
80 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070081 export_header_lib_headers: [
Prabir Pradhan9244aea2020-02-05 20:31:40 -080082 "libinputreader_headers",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070083 ],
84}