blob: 7f979f2bd3323d8dc08dafe5e8260bee082d89a2 [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",
Kim Low03ea0352020-11-06 12:45:07 -080033 "mapper/BatteryInputMapper.cpp",
Prabir Pradhan2770d242019-09-02 18:07:11 -070034 "mapper/CursorInputMapper.cpp",
35 "mapper/ExternalStylusInputMapper.cpp",
36 "mapper/InputMapper.cpp",
37 "mapper/JoystickInputMapper.cpp",
38 "mapper/KeyboardInputMapper.cpp",
39 "mapper/MultiTouchInputMapper.cpp",
40 "mapper/RotaryEncoderInputMapper.cpp",
Chris Yef59a2f42020-10-16 12:55:26 -070041 "mapper/SensorInputMapper.cpp",
Prabir Pradhan2770d242019-09-02 18:07:11 -070042 "mapper/SingleTouchInputMapper.cpp",
43 "mapper/SwitchInputMapper.cpp",
44 "mapper/TouchInputMapper.cpp",
45 "mapper/VibratorInputMapper.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070046 "InputReader.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070047 "TouchVideoDevice.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070048 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080049}
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070050
Prabir Pradhan9244aea2020-02-05 20:31:40 -080051cc_defaults {
52 name: "libinputreader_defaults",
53 srcs: [":libinputreader_sources"],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070054 shared_libs: [
55 "libbase",
Siarhei Vishniakou7a522bf2019-09-24 12:46:29 +010056 "libcap",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070057 "libcrypto",
58 "libcutils",
59 "libinput",
60 "liblog",
61 "libui",
62 "libutils",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070063 ],
Kim Low03ea0352020-11-06 12:45:07 -080064 static_libs: [
65 "libc++fs",
66 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070067 header_libs: [
Kim Low03ea0352020-11-06 12:45:07 -080068 "libbatteryservice_headers",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070069 "libinputreader_headers",
70 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080071}
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070072
Prabir Pradhan9244aea2020-02-05 20:31:40 -080073cc_library_shared {
74 name: "libinputreader",
75 defaults: [
76 "inputflinger_defaults",
77 "libinputreader_defaults"
78 ],
79 srcs: [
80 "InputReaderFactory.cpp",
81 ],
82 shared_libs: [
83 // This should consist only of dependencies from inputflinger. Other dependencies should be
84 // in cc_defaults so that they are included in the tests.
85 "libinputflinger_base",
86 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070087 export_header_lib_headers: [
Prabir Pradhan9244aea2020-02-05 20:31:40 -080088 "libinputreader_headers",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070089 ],
Chris Ye8594e192020-07-14 10:34:06 -070090 static_libs: [
91 "libc++fs"
92 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070093}