Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 1 | // 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 Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 15 | package { |
Aditya Choudhary | b48ed1d | 2024-01-31 11:06:10 +0000 | [diff] [blame] | 16 | default_team: "trendy_team_input_framework", |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 17 | // 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 Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 25 | cc_library_headers { |
| 26 | name: "libinputreader_headers", |
Siarhei Vishniakou | 3197718 | 2022-09-30 08:51:23 -0700 | [diff] [blame] | 27 | host_supported: true, |
Prabir Pradhan | 2770d24 | 2019-09-02 18:07:11 -0700 | [diff] [blame] | 28 | export_include_dirs: [ |
Chris Ye | e2b1e5c | 2021-03-10 22:45:12 -0800 | [diff] [blame] | 29 | "controller", |
Prabir Pradhan | 2770d24 | 2019-09-02 18:07:11 -0700 | [diff] [blame] | 30 | "include", |
| 31 | "mapper", |
| 32 | "mapper/accumulator", |
Harry Cutts | 47db1c7 | 2022-12-13 19:20:47 +0000 | [diff] [blame] | 33 | "mapper/gestures", |
Prabir Pradhan | 2770d24 | 2019-09-02 18:07:11 -0700 | [diff] [blame] | 34 | ], |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 35 | } |
| 36 | |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 37 | filegroup { |
| 38 | name: "libinputreader_sources", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 39 | srcs: [ |
| 40 | "EventHub.cpp", |
Prabir Pradhan | baa5c82 | 2019-08-30 15:27:05 -0700 | [diff] [blame] | 41 | "InputDevice.cpp", |
Siarhei Vishniakou | 3197718 | 2022-09-30 08:51:23 -0700 | [diff] [blame] | 42 | "InputReader.cpp", |
Prabir Pradhan | 011ca3d | 2023-02-22 21:31:39 +0000 | [diff] [blame] | 43 | "Macros.cpp", |
Siarhei Vishniakou | 3197718 | 2022-09-30 08:51:23 -0700 | [diff] [blame] | 44 | "TouchVideoDevice.cpp", |
Chris Ye | 1dd2e5c | 2021-04-04 23:12:41 -0700 | [diff] [blame] | 45 | "controller/PeripheralController.cpp", |
Harry Cutts | bb24e27 | 2023-03-21 10:49:47 +0000 | [diff] [blame] | 46 | "mapper/CapturedTouchpadEventConverter.cpp", |
Prabir Pradhan | 2770d24 | 2019-09-02 18:07:11 -0700 | [diff] [blame] | 47 | "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 Ye | f59a2f4 | 2020-10-16 12:55:26 -0700 | [diff] [blame] | 54 | "mapper/SensorInputMapper.cpp", |
Prabir Pradhan | 2770d24 | 2019-09-02 18:07:11 -0700 | [diff] [blame] | 55 | "mapper/SingleTouchInputMapper.cpp", |
Yeabkal Wubshit | 6b66276 | 2023-05-22 23:07:31 -0700 | [diff] [blame] | 56 | "mapper/SlopController.cpp", |
Prabir Pradhan | 2770d24 | 2019-09-02 18:07:11 -0700 | [diff] [blame] | 57 | "mapper/SwitchInputMapper.cpp", |
Harry Cutts | b1a0084 | 2022-12-06 16:20:29 +0000 | [diff] [blame] | 58 | "mapper/TouchCursorInputMapperCommon.cpp", |
Prabir Pradhan | 2770d24 | 2019-09-02 18:07:11 -0700 | [diff] [blame] | 59 | "mapper/TouchInputMapper.cpp", |
Harry Cutts | 79cc9fa | 2022-10-28 15:32:39 +0000 | [diff] [blame] | 60 | "mapper/TouchpadInputMapper.cpp", |
Prabir Pradhan | 2770d24 | 2019-09-02 18:07:11 -0700 | [diff] [blame] | 61 | "mapper/VibratorInputMapper.cpp", |
Siarhei Vishniakou | 3197718 | 2022-09-30 08:51:23 -0700 | [diff] [blame] | 62 | "mapper/accumulator/CursorButtonAccumulator.cpp", |
| 63 | "mapper/accumulator/CursorScrollAccumulator.cpp", |
Prabir Pradhan | 84395e6 | 2022-10-26 19:52:00 +0000 | [diff] [blame] | 64 | "mapper/accumulator/HidUsageAccumulator.cpp", |
Harry Cutts | 2d77f55 | 2022-11-07 12:10:56 +0000 | [diff] [blame] | 65 | "mapper/accumulator/MultiTouchMotionAccumulator.cpp", |
Siarhei Vishniakou | 3197718 | 2022-09-30 08:51:23 -0700 | [diff] [blame] | 66 | "mapper/accumulator/SingleTouchMotionAccumulator.cpp", |
| 67 | "mapper/accumulator/TouchButtonAccumulator.cpp", |
Harry Cutts | 4fb941a | 2022-12-14 19:14:04 +0000 | [diff] [blame] | 68 | "mapper/gestures/GestureConverter.cpp", |
Ben Murdoch | 5024482 | 2022-10-31 10:41:01 +0000 | [diff] [blame] | 69 | "mapper/gestures/GesturesLogging.cpp", |
Harry Cutts | 3952c83 | 2023-08-22 15:26:56 +0000 | [diff] [blame] | 70 | "mapper/gestures/HardwareProperties.cpp", |
Harry Cutts | 47db1c7 | 2022-12-13 19:20:47 +0000 | [diff] [blame] | 71 | "mapper/gestures/HardwareStateConverter.cpp", |
Harry Cutts | 1b21791 | 2023-01-03 17:13:19 +0000 | [diff] [blame] | 72 | "mapper/gestures/PropertyProvider.cpp", |
Harry Cutts | 8c7cb59 | 2023-08-23 17:20:13 +0000 | [diff] [blame] | 73 | "mapper/gestures/TimerProvider.cpp", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 74 | ], |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 75 | } |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 76 | |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 77 | cc_defaults { |
| 78 | name: "libinputreader_defaults", |
| 79 | srcs: [":libinputreader_sources"], |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 80 | shared_libs: [ |
Siarhei Vishniakou | 3e44e8b | 2024-07-19 14:53:26 +0000 | [diff] [blame] | 81 | "android.companion.virtualdevice.flags-aconfig-cc", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 82 | "libbase", |
Siarhei Vishniakou | 7a522bf | 2019-09-24 12:46:29 +0100 | [diff] [blame] | 83 | "libcap", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 84 | "libcrypto", |
| 85 | "libcutils", |
Ben Murdoch | 5024482 | 2022-10-31 10:41:01 +0000 | [diff] [blame] | 86 | "libjsoncpp", |
Prabir Pradhan | 89f7119 | 2023-06-15 22:14:15 +0000 | [diff] [blame] | 87 | "libinput", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 88 | "liblog", |
Siarhei Vishniakou | 9faa446 | 2022-12-06 11:45:04 -0800 | [diff] [blame] | 89 | "libPlatformProperties", |
Chris Ye | d3fef46 | 2021-03-07 17:10:08 -0800 | [diff] [blame] | 90 | "libstatslog", |
Vova Sharaienko | 75ffb26 | 2024-01-03 00:12:37 +0000 | [diff] [blame] | 91 | "libstatspull", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 92 | "libutils", |
Yeabkal Wubshit | 58bda65 | 2024-09-24 20:22:18 -0700 | [diff] [blame] | 93 | "libstatssocket", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 94 | ], |
Kim Low | 03ea035 | 2020-11-06 12:45:07 -0800 | [diff] [blame] | 95 | static_libs: [ |
Ben Murdoch | 5024482 | 2022-10-31 10:41:01 +0000 | [diff] [blame] | 96 | "libchrome-gestures", |
Siarhei Vishniakou | 862ae21 | 2022-09-28 15:17:28 -0700 | [diff] [blame] | 97 | "libui-types", |
Yeabkal Wubshit | 58bda65 | 2024-09-24 20:22:18 -0700 | [diff] [blame] | 98 | "libexpresslog", |
| 99 | "libtextclassifier_hash_static", |
| 100 | "libstatslog_express", |
Kim Low | 03ea035 | 2020-11-06 12:45:07 -0800 | [diff] [blame] | 101 | ], |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 102 | header_libs: [ |
Kim Low | 03ea035 | 2020-11-06 12:45:07 -0800 | [diff] [blame] | 103 | "libbatteryservice_headers", |
Prabir Pradhan | c5e1ca4 | 2022-11-28 22:01:56 +0000 | [diff] [blame] | 104 | "libchrome-gestures_headers", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 105 | "libinputreader_headers", |
| 106 | ], |
Siarhei Vishniakou | 3197718 | 2022-09-30 08:51:23 -0700 | [diff] [blame] | 107 | target: { |
Siarhei Vishniakou | 3197718 | 2022-09-30 08:51:23 -0700 | [diff] [blame] | 108 | host: { |
| 109 | static_libs: [ |
Colin Cross | 5b79930 | 2022-10-18 21:52:41 -0700 | [diff] [blame] | 110 | "libbinder", |
Siarhei Vishniakou | 3197718 | 2022-09-30 08:51:23 -0700 | [diff] [blame] | 111 | ], |
| 112 | }, |
| 113 | }, |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 114 | } |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 115 | |
Prabir Pradhan | c5e1ca4 | 2022-11-28 22:01:56 +0000 | [diff] [blame] | 116 | cc_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 Cutts | e23e22d | 2022-12-06 17:00:57 +0000 | [diff] [blame] | 130 | whole_static_libs: [ |
| 131 | "libchrome-gestures", |
| 132 | ], |
Prabir Pradhan | c5e1ca4 | 2022-11-28 22:01:56 +0000 | [diff] [blame] | 133 | } |
| 134 | |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 135 | cc_library_shared { |
| 136 | name: "libinputreader", |
Siarhei Vishniakou | 3197718 | 2022-09-30 08:51:23 -0700 | [diff] [blame] | 137 | host_supported: true, |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 138 | defaults: [ |
| 139 | "inputflinger_defaults", |
Prabir Pradhan | 8b89c2f | 2021-07-29 16:30:14 +0000 | [diff] [blame] | 140 | "libinputreader_defaults", |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 141 | ], |
| 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 Cutts | 1f48a44 | 2022-11-15 17:38:36 +0000 | [diff] [blame] | 149 | "libjsoncpp", |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 150 | ], |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 151 | export_header_lib_headers: [ |
Prabir Pradhan | 9244aea | 2020-02-05 20:31:40 -0800 | [diff] [blame] | 152 | "libinputreader_headers", |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 153 | ], |
Siarhei Vishniakou | 3197718 | 2022-09-30 08:51:23 -0700 | [diff] [blame] | 154 | target: { |
| 155 | host: { |
| 156 | include_dirs: [ |
| 157 | "bionic/libc/kernel/android/uapi/", |
| 158 | "bionic/libc/kernel/uapi", |
| 159 | ], |
| 160 | }, |
| 161 | }, |
Chris Ye | 8594e19 | 2020-07-14 10:34:06 -0700 | [diff] [blame] | 162 | static_libs: [ |
Harry Cutts | 1f48a44 | 2022-11-15 17:38:36 +0000 | [diff] [blame] | 163 | "libchrome-gestures", |
Chris Ye | 8594e19 | 2020-07-14 10:34:06 -0700 | [diff] [blame] | 164 | ], |
Prabir Pradhan | da7c00c | 2019-08-29 14:12:42 -0700 | [diff] [blame] | 165 | } |