blob: b3cd35c936e7a56c5f09e7c6bb08ac7b65d55b18 [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
Bob Badour3306e492021-02-25 15:35:37 -080015package {
Aditya Choudharyb48ed1d2024-01-31 11:06:10 +000016 default_team: "trendy_team_input_framework",
Bob Badour3306e492021-02-25 15:35:37 -080017 // See: http://go/android-license-faq
18 // A large-scale-change added 'default_applicable_licenses' to import
19 // all of the 'license_kinds' from "frameworks_native_license"
20 // to get the below license kinds:
21 // SPDX-license-identifier-Apache-2.0
22 default_applicable_licenses: ["frameworks_native_license"],
23}
24
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070025cc_library_headers {
26 name: "libinputreader_headers",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070027 host_supported: true,
Prabir Pradhan2770d242019-09-02 18:07:11 -070028 export_include_dirs: [
Chris Yee2b1e5c2021-03-10 22:45:12 -080029 "controller",
Prabir Pradhan2770d242019-09-02 18:07:11 -070030 "include",
31 "mapper",
32 "mapper/accumulator",
Harry Cutts47db1c72022-12-13 19:20:47 +000033 "mapper/gestures",
Prabir Pradhan2770d242019-09-02 18:07:11 -070034 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070035}
36
Prabir Pradhan9244aea2020-02-05 20:31:40 -080037filegroup {
38 name: "libinputreader_sources",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070039 srcs: [
40 "EventHub.cpp",
Prabir Pradhanbaa5c822019-08-30 15:27:05 -070041 "InputDevice.cpp",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070042 "InputReader.cpp",
Prabir Pradhan011ca3d2023-02-22 21:31:39 +000043 "Macros.cpp",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070044 "TouchVideoDevice.cpp",
Chris Ye1dd2e5c2021-04-04 23:12:41 -070045 "controller/PeripheralController.cpp",
Harry Cuttsbb24e272023-03-21 10:49:47 +000046 "mapper/CapturedTouchpadEventConverter.cpp",
Prabir Pradhan2770d242019-09-02 18:07:11 -070047 "mapper/CursorInputMapper.cpp",
48 "mapper/ExternalStylusInputMapper.cpp",
49 "mapper/InputMapper.cpp",
50 "mapper/JoystickInputMapper.cpp",
51 "mapper/KeyboardInputMapper.cpp",
52 "mapper/MultiTouchInputMapper.cpp",
53 "mapper/RotaryEncoderInputMapper.cpp",
Chris Yef59a2f42020-10-16 12:55:26 -070054 "mapper/SensorInputMapper.cpp",
Prabir Pradhan2770d242019-09-02 18:07:11 -070055 "mapper/SingleTouchInputMapper.cpp",
Yeabkal Wubshit6b662762023-05-22 23:07:31 -070056 "mapper/SlopController.cpp",
Prabir Pradhan2770d242019-09-02 18:07:11 -070057 "mapper/SwitchInputMapper.cpp",
Harry Cuttsb1a00842022-12-06 16:20:29 +000058 "mapper/TouchCursorInputMapperCommon.cpp",
Prabir Pradhan2770d242019-09-02 18:07:11 -070059 "mapper/TouchInputMapper.cpp",
Harry Cutts79cc9fa2022-10-28 15:32:39 +000060 "mapper/TouchpadInputMapper.cpp",
Prabir Pradhan2770d242019-09-02 18:07:11 -070061 "mapper/VibratorInputMapper.cpp",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070062 "mapper/accumulator/CursorButtonAccumulator.cpp",
63 "mapper/accumulator/CursorScrollAccumulator.cpp",
Prabir Pradhan84395e62022-10-26 19:52:00 +000064 "mapper/accumulator/HidUsageAccumulator.cpp",
Harry Cutts2d77f552022-11-07 12:10:56 +000065 "mapper/accumulator/MultiTouchMotionAccumulator.cpp",
Siarhei Vishniakou31977182022-09-30 08:51:23 -070066 "mapper/accumulator/SingleTouchMotionAccumulator.cpp",
67 "mapper/accumulator/TouchButtonAccumulator.cpp",
Harry Cutts4fb941a2022-12-14 19:14:04 +000068 "mapper/gestures/GestureConverter.cpp",
Ben Murdoch50244822022-10-31 10:41:01 +000069 "mapper/gestures/GesturesLogging.cpp",
Harry Cutts3952c832023-08-22 15:26:56 +000070 "mapper/gestures/HardwareProperties.cpp",
Harry Cutts47db1c72022-12-13 19:20:47 +000071 "mapper/gestures/HardwareStateConverter.cpp",
Harry Cutts1b217912023-01-03 17:13:19 +000072 "mapper/gestures/PropertyProvider.cpp",
Harry Cutts8c7cb592023-08-23 17:20:13 +000073 "mapper/gestures/TimerProvider.cpp",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070074 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080075}
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070076
Prabir Pradhan9244aea2020-02-05 20:31:40 -080077cc_defaults {
78 name: "libinputreader_defaults",
79 srcs: [":libinputreader_sources"],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070080 shared_libs: [
Siarhei Vishniakou3e44e8b2024-07-19 14:53:26 +000081 "android.companion.virtualdevice.flags-aconfig-cc",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070082 "libbase",
Siarhei Vishniakou7a522bf2019-09-24 12:46:29 +010083 "libcap",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070084 "libcrypto",
85 "libcutils",
Ben Murdoch50244822022-10-31 10:41:01 +000086 "libjsoncpp",
Prabir Pradhan89f71192023-06-15 22:14:15 +000087 "libinput",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070088 "liblog",
Siarhei Vishniakou9faa4462022-12-06 11:45:04 -080089 "libPlatformProperties",
Chris Yed3fef462021-03-07 17:10:08 -080090 "libstatslog",
Vova Sharaienko75ffb262024-01-03 00:12:37 +000091 "libstatspull",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070092 "libutils",
Yeabkal Wubshit58bda652024-09-24 20:22:18 -070093 "libstatssocket",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -070094 ],
Kim Low03ea0352020-11-06 12:45:07 -080095 static_libs: [
Ben Murdoch50244822022-10-31 10:41:01 +000096 "libchrome-gestures",
Siarhei Vishniakou862ae212022-09-28 15:17:28 -070097 "libui-types",
Yeabkal Wubshit58bda652024-09-24 20:22:18 -070098 "libexpresslog",
99 "libtextclassifier_hash_static",
100 "libstatslog_express",
Kim Low03ea0352020-11-06 12:45:07 -0800101 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -0700102 header_libs: [
Kim Low03ea0352020-11-06 12:45:07 -0800103 "libbatteryservice_headers",
Prabir Pradhanc5e1ca42022-11-28 22:01:56 +0000104 "libchrome-gestures_headers",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -0700105 "libinputreader_headers",
106 ],
Siarhei Vishniakou31977182022-09-30 08:51:23 -0700107 target: {
Siarhei Vishniakou31977182022-09-30 08:51:23 -0700108 host: {
109 static_libs: [
Colin Cross5b799302022-10-18 21:52:41 -0700110 "libbinder",
Siarhei Vishniakou31977182022-09-30 08:51:23 -0700111 ],
112 },
113 },
Prabir Pradhan9244aea2020-02-05 20:31:40 -0800114}
Prabir Pradhanda7c00c2019-08-29 14:12:42 -0700115
Prabir Pradhanc5e1ca42022-11-28 22:01:56 +0000116cc_library_static {
117 name: "libinputreader_static",
118 defaults: [
119 "inputflinger_defaults",
120 "libinputreader_defaults",
121 ],
122 shared_libs: [
123 "libinputflinger_base",
124 ],
125 export_header_lib_headers: [
126 "libbatteryservice_headers",
127 "libchrome-gestures_headers",
128 "libinputreader_headers",
129 ],
Harry Cuttse23e22d2022-12-06 17:00:57 +0000130 whole_static_libs: [
131 "libchrome-gestures",
132 ],
Prabir Pradhanc5e1ca42022-11-28 22:01:56 +0000133}
134
Prabir Pradhan9244aea2020-02-05 20:31:40 -0800135cc_library_shared {
136 name: "libinputreader",
Siarhei Vishniakou31977182022-09-30 08:51:23 -0700137 host_supported: true,
Prabir Pradhan9244aea2020-02-05 20:31:40 -0800138 defaults: [
139 "inputflinger_defaults",
Prabir Pradhan8b89c2f2021-07-29 16:30:14 +0000140 "libinputreader_defaults",
Prabir Pradhan9244aea2020-02-05 20:31:40 -0800141 ],
142 srcs: [
143 "InputReaderFactory.cpp",
144 ],
145 shared_libs: [
146 // This should consist only of dependencies from inputflinger. Other dependencies should be
147 // in cc_defaults so that they are included in the tests.
148 "libinputflinger_base",
Harry Cutts1f48a442022-11-15 17:38:36 +0000149 "libjsoncpp",
Prabir Pradhan9244aea2020-02-05 20:31:40 -0800150 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -0700151 export_header_lib_headers: [
Prabir Pradhan9244aea2020-02-05 20:31:40 -0800152 "libinputreader_headers",
Prabir Pradhanda7c00c2019-08-29 14:12:42 -0700153 ],
Siarhei Vishniakou31977182022-09-30 08:51:23 -0700154 target: {
155 host: {
156 include_dirs: [
157 "bionic/libc/kernel/android/uapi/",
158 "bionic/libc/kernel/uapi",
159 ],
160 },
161 },
Chris Ye8594e192020-07-14 10:34:06 -0700162 static_libs: [
Harry Cutts1f48a442022-11-15 17:38:36 +0000163 "libchrome-gestures",
Chris Ye8594e192020-07-14 10:34:06 -0700164 ],
Prabir Pradhanda7c00c2019-08-29 14:12:42 -0700165}