blob: ffb98e0ca85adc93c8a4c835d212d602f9841496 [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",
Chris Ye3fdbfef2021-01-06 18:45:18 -080039 "mapper/LightInputMapper.cpp",
Prabir Pradhan2770d242019-09-02 18:07:11 -070040 "mapper/MultiTouchInputMapper.cpp",
41 "mapper/RotaryEncoderInputMapper.cpp",
Chris Yef59a2f42020-10-16 12:55:26 -070042 "mapper/SensorInputMapper.cpp",
Prabir Pradhan2770d242019-09-02 18:07:11 -070043 "mapper/SingleTouchInputMapper.cpp",
44 "mapper/SwitchInputMapper.cpp",
45 "mapper/TouchInputMapper.cpp",
46 "mapper/VibratorInputMapper.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070047 "InputReader.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070048 "TouchVideoDevice.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070049 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080050}
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070051
Prabir Pradhan9244aea2020-02-05 20:31:40 -080052cc_defaults {
53 name: "libinputreader_defaults",
54 srcs: [":libinputreader_sources"],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070055 shared_libs: [
56 "libbase",
Siarhei Vishniakou7a522bf2019-09-24 12:46:29 +010057 "libcap",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070058 "libcrypto",
59 "libcutils",
60 "libinput",
61 "liblog",
62 "libui",
63 "libutils",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070064 ],
Kim Low03ea0352020-11-06 12:45:07 -080065 static_libs: [
66 "libc++fs",
67 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070068 header_libs: [
Kim Low03ea0352020-11-06 12:45:07 -080069 "libbatteryservice_headers",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070070 "libinputreader_headers",
71 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080072}
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070073
Prabir Pradhan9244aea2020-02-05 20:31:40 -080074cc_library_shared {
75 name: "libinputreader",
76 defaults: [
77 "inputflinger_defaults",
78 "libinputreader_defaults"
79 ],
80 srcs: [
81 "InputReaderFactory.cpp",
82 ],
83 shared_libs: [
84 // This should consist only of dependencies from inputflinger. Other dependencies should be
85 // in cc_defaults so that they are included in the tests.
86 "libinputflinger_base",
87 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070088 export_header_lib_headers: [
Prabir Pradhan9244aea2020-02-05 20:31:40 -080089 "libinputreader_headers",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070090 ],
Chris Ye8594e192020-07-14 10:34:06 -070091 static_libs: [
92 "libc++fs"
93 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070094}