| Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 1 | // Copyright (C) 2013 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 |  | 
 | 15 | // libinput is partially built for the host (used by build time keymap validation tool) | 
 | 16 |  | 
| Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 17 | package { | 
 | 18 |     // See: http://go/android-license-faq | 
 | 19 |     // A large-scale-change added 'default_applicable_licenses' to import | 
 | 20 |     // all of the 'license_kinds' from "frameworks_native_license" | 
 | 21 |     // to get the below license kinds: | 
 | 22 |     //   SPDX-license-identifier-Apache-2.0 | 
 | 23 |     default_applicable_licenses: ["frameworks_native_license"], | 
 | 24 | } | 
 | 25 |  | 
| Siarhei Vishniakou | 7062295 | 2020-07-30 11:17:23 -0500 | [diff] [blame] | 26 | filegroup { | 
 | 27 |     name: "inputconstants_aidl", | 
 | 28 |     srcs: [ | 
| Siarhei Vishniakou | ae6229e | 2019-12-30 16:23:19 -0800 | [diff] [blame] | 29 |         "android/os/IInputConstants.aidl", | 
 | 30 |         "android/os/InputEventInjectionResult.aidl", | 
 | 31 |         "android/os/InputEventInjectionSync.aidl", | 
| Prabir Pradhan | 51e7db0 | 2022-02-07 06:02:57 -0800 | [diff] [blame] | 32 |         "android/os/InputConfig.aidl", | 
| Siarhei Vishniakou | 7062295 | 2020-07-30 11:17:23 -0500 | [diff] [blame] | 33 |     ], | 
 | 34 | } | 
 | 35 |  | 
| Siarhei Vishniakou | 9681896 | 2023-08-23 10:19:02 -0700 | [diff] [blame] | 36 | ///////////////////////////////////////////////// | 
 | 37 | // flags | 
 | 38 | ///////////////////////////////////////////////// | 
 | 39 | aconfig_declarations { | 
 | 40 |     name: "aconfig_input_flags", | 
 | 41 |     package: "com.android.input.flags", | 
 | 42 |     srcs: ["input_flags.aconfig"], | 
 | 43 | } | 
 | 44 |  | 
 | 45 | cc_aconfig_library { | 
 | 46 |     name: "aconfig_input_flags_c_lib", | 
 | 47 |     aconfig_declarations: "aconfig_input_flags", | 
 | 48 |     host_supported: true, | 
| Prabir Pradhan | a2764b7 | 2023-10-10 19:43:43 +0000 | [diff] [blame] | 49 |     // Use the test version of the aconfig flag library by default to allow tests to set local | 
 | 50 |     // overrides for flags, without having to link against a separate version of libinput or of this | 
 | 51 |     // library. Bundling this library directly into libinput prevents us from having to add this | 
 | 52 |     // library as a shared lib dependency everywhere where libinput is used. | 
 | 53 |     test: true, | 
 | 54 |     shared: { | 
 | 55 |         enabled: false, | 
 | 56 |     }, | 
| Siarhei Vishniakou | 9681896 | 2023-08-23 10:19:02 -0700 | [diff] [blame] | 57 | } | 
 | 58 |  | 
| Siarhei Vishniakou | 5c02a71 | 2023-05-15 15:45:02 -0700 | [diff] [blame] | 59 | aidl_interface { | 
 | 60 |     name: "inputconstants", | 
 | 61 |     host_supported: true, | 
 | 62 |     vendor_available: true, | 
 | 63 |     unstable: true, | 
 | 64 |     srcs: [ | 
 | 65 |         ":inputconstants_aidl", | 
 | 66 |     ], | 
 | 67 |  | 
 | 68 |     backend: { | 
 | 69 |         rust: { | 
 | 70 |             enabled: true, | 
 | 71 |         }, | 
 | 72 |     }, | 
 | 73 | } | 
 | 74 |  | 
 | 75 | rust_bindgen { | 
 | 76 |     name: "libinput_bindgen", | 
 | 77 |     host_supported: true, | 
 | 78 |     crate_name: "input_bindgen", | 
 | 79 |     visibility: ["//frameworks/native/services/inputflinger"], | 
 | 80 |     wrapper_src: "InputWrapper.hpp", | 
 | 81 |  | 
 | 82 |     include_dirs: [ | 
 | 83 |         "frameworks/native/include", | 
 | 84 |     ], | 
 | 85 |  | 
 | 86 |     source_stem: "bindings", | 
 | 87 |  | 
 | 88 |     bindgen_flags: [ | 
 | 89 |         "--verbose", | 
 | 90 |         "--allowlist-var=AMOTION_EVENT_FLAG_CANCELED", | 
| Siarhei Vishniakou | 227a7f8 | 2023-07-18 18:30:32 -0700 | [diff] [blame] | 91 |         "--allowlist-var=AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED", | 
 | 92 |         "--allowlist-var=AMOTION_EVENT_FLAG_WINDOW_IS_PARTIALLY_OBSCURED", | 
 | 93 |         "--allowlist-var=AMOTION_EVENT_FLAG_IS_ACCESSIBILITY_EVENT", | 
 | 94 |         "--allowlist-var=AMOTION_EVENT_FLAG_NO_FOCUS_CHANGE", | 
| Siarhei Vishniakou | 5c02a71 | 2023-05-15 15:45:02 -0700 | [diff] [blame] | 95 |         "--allowlist-var=AMOTION_EVENT_ACTION_CANCEL", | 
 | 96 |         "--allowlist-var=AMOTION_EVENT_ACTION_UP", | 
 | 97 |         "--allowlist-var=AMOTION_EVENT_ACTION_POINTER_DOWN", | 
 | 98 |         "--allowlist-var=AMOTION_EVENT_ACTION_DOWN", | 
 | 99 |         "--allowlist-var=AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT", | 
 | 100 |         "--allowlist-var=MAX_POINTER_ID", | 
| Siarhei Vishniakou | 2d151ac | 2023-09-19 13:30:24 -0700 | [diff] [blame] | 101 |         "--allowlist-var=AINPUT_SOURCE_CLASS_NONE", | 
 | 102 |         "--allowlist-var=AINPUT_SOURCE_CLASS_BUTTON", | 
 | 103 |         "--allowlist-var=AINPUT_SOURCE_CLASS_POINTER", | 
 | 104 |         "--allowlist-var=AINPUT_SOURCE_CLASS_NAVIGATION", | 
 | 105 |         "--allowlist-var=AINPUT_SOURCE_CLASS_POSITION", | 
 | 106 |         "--allowlist-var=AINPUT_SOURCE_CLASS_JOYSTICK", | 
 | 107 |         "--allowlist-var=AINPUT_SOURCE_UNKNOWN", | 
 | 108 |         "--allowlist-var=AINPUT_SOURCE_KEYBOARD", | 
 | 109 |         "--allowlist-var=AINPUT_SOURCE_DPAD", | 
 | 110 |         "--allowlist-var=AINPUT_SOURCE_GAMEPAD", | 
 | 111 |         "--allowlist-var=AINPUT_SOURCE_TOUCHSCREEN", | 
 | 112 |         "--allowlist-var=AINPUT_SOURCE_MOUSE", | 
 | 113 |         "--allowlist-var=AINPUT_SOURCE_STYLUS", | 
 | 114 |         "--allowlist-var=AINPUT_SOURCE_BLUETOOTH_STYLUS", | 
 | 115 |         "--allowlist-var=AINPUT_SOURCE_TRACKBALL", | 
 | 116 |         "--allowlist-var=AINPUT_SOURCE_MOUSE_RELATIVE", | 
 | 117 |         "--allowlist-var=AINPUT_SOURCE_TOUCHPAD", | 
 | 118 |         "--allowlist-var=AINPUT_SOURCE_TOUCH_NAVIGATION", | 
 | 119 |         "--allowlist-var=AINPUT_SOURCE_JOYSTICK", | 
 | 120 |         "--allowlist-var=AINPUT_SOURCE_HDMI", | 
 | 121 |         "--allowlist-var=AINPUT_SOURCE_SENSOR", | 
 | 122 |         "--allowlist-var=AINPUT_SOURCE_ROTARY_ENCODER", | 
| Siarhei Vishniakou | 5c02a71 | 2023-05-15 15:45:02 -0700 | [diff] [blame] | 123 |     ], | 
 | 124 |  | 
 | 125 |     static_libs: [ | 
 | 126 |         "inputconstants-cpp", | 
 | 127 |         "libui-types", | 
 | 128 |     ], | 
 | 129 |     shared_libs: ["libc++"], | 
 | 130 |     header_libs: [ | 
 | 131 |         "native_headers", | 
 | 132 |         "jni_headers", | 
 | 133 |         "flatbuffer_headers", | 
 | 134 |     ], | 
 | 135 | } | 
 | 136 |  | 
 | 137 | // Contains methods to help access C++ code from rust | 
 | 138 | cc_library_static { | 
 | 139 |     name: "libinput_from_rust_to_cpp", | 
 | 140 |     cpp_std: "c++20", | 
 | 141 |     host_supported: true, | 
 | 142 |     cflags: [ | 
 | 143 |         "-Wall", | 
 | 144 |         "-Wextra", | 
 | 145 |         "-Werror", | 
 | 146 |     ], | 
 | 147 |     srcs: [ | 
 | 148 |         "FromRustToCpp.cpp", | 
 | 149 |     ], | 
 | 150 |  | 
 | 151 |     generated_headers: [ | 
 | 152 |         "cxx-bridge-header", | 
 | 153 |     ], | 
 | 154 |     generated_sources: ["libinput_cxx_bridge_code"], | 
 | 155 |  | 
 | 156 |     shared_libs: [ | 
 | 157 |         "libbase", | 
 | 158 |     ], | 
 | 159 | } | 
 | 160 |  | 
| Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 161 | cc_library { | 
 | 162 |     name: "libinput", | 
| Siarhei Vishniakou | bb19287 | 2021-12-09 17:14:49 -0800 | [diff] [blame] | 163 |     cpp_std: "c++20", | 
| Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 164 |     host_supported: true, | 
| Frank Barchard | 9e94788 | 2017-03-06 11:17:52 -0800 | [diff] [blame] | 165 |     cflags: [ | 
 | 166 |         "-Wall", | 
 | 167 |         "-Wextra", | 
 | 168 |         "-Werror", | 
| Philip Quinn | 8f953ab | 2022-12-06 15:37:07 -0800 | [diff] [blame] | 169 |         "-Wno-unused-parameter", | 
| Siarhei Vishniakou | 4c155eb | 2023-06-30 11:47:12 -0700 | [diff] [blame] | 170 |         "-Wthread-safety", | 
 | 171 |         "-Wshadow", | 
 | 172 |         "-Wshadow-field-in-constructor-modified", | 
 | 173 |         "-Wshadow-uncaptured-local", | 
 | 174 |         "-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION", | 
| Frank Barchard | 9e94788 | 2017-03-06 11:17:52 -0800 | [diff] [blame] | 175 |     ], | 
| Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 176 |     srcs: [ | 
| Siarhei Vishniakou | cac8427 | 2023-06-28 14:43:25 -0700 | [diff] [blame] | 177 |         "android/os/IInputFlinger.aidl", | 
| Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 178 |         "Input.cpp", | 
 | 179 |         "InputDevice.cpp", | 
| Chris Ye | 4958d06 | 2020-08-20 13:21:10 -0700 | [diff] [blame] | 180 |         "InputEventLabels.cpp", | 
| Siarhei Vishniakou | cac8427 | 2023-06-28 14:43:25 -0700 | [diff] [blame] | 181 |         "InputTransport.cpp", | 
| Siarhei Vishniakou | 92c8fd5 | 2023-01-29 14:57:43 -0800 | [diff] [blame] | 182 |         "InputVerifier.cpp", | 
| Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 183 |         "Keyboard.cpp", | 
 | 184 |         "KeyCharacterMap.cpp", | 
 | 185 |         "KeyLayoutMap.cpp", | 
| Siarhei Vishniakou | 39147ce | 2022-11-15 12:13:04 -0800 | [diff] [blame] | 186 |         "MotionPredictor.cpp", | 
| Cody Heiner | 52db474 | 2023-06-29 13:19:01 -0700 | [diff] [blame] | 187 |         "MotionPredictorMetricsManager.cpp", | 
| Siarhei Vishniakou | 814ace3 | 2022-03-04 15:12:16 -0800 | [diff] [blame] | 188 |         "PrintTools.cpp", | 
| Siarhei Vishniakou | 32f36ae | 2020-09-02 20:17:10 -0700 | [diff] [blame] | 189 |         "PropertyMap.cpp", | 
| Philip Quinn | 8f953ab | 2022-12-06 15:37:07 -0800 | [diff] [blame] | 190 |         "TfLiteMotionPredictor.cpp", | 
| Siarhei Vishniakou | 26cf29d | 2019-02-15 16:48:38 -0600 | [diff] [blame] | 191 |         "TouchVideoFrame.cpp", | 
| Brett Chabot | 5820852 | 2020-09-09 13:55:24 -0700 | [diff] [blame] | 192 |         "VelocityControl.cpp", | 
 | 193 |         "VelocityTracker.cpp", | 
| Zixuan Qu | dd0635d | 2023-02-06 04:52:38 +0000 | [diff] [blame] | 194 |         "VirtualInputDevice.cpp", | 
| Siarhei Vishniakou | 5ac663d | 2019-02-15 17:15:56 -0600 | [diff] [blame] | 195 |         "VirtualKeyMap.cpp", | 
| Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 196 |     ], | 
 | 197 |  | 
| Philip Quinn | 8f953ab | 2022-12-06 15:37:07 -0800 | [diff] [blame] | 198 |     header_libs: [ | 
 | 199 |         "flatbuffer_headers", | 
 | 200 |         "jni_headers", | 
| Cody Heiner | 52db474 | 2023-06-29 13:19:01 -0700 | [diff] [blame] | 201 |         "libeigen", | 
| Philip Quinn | 8f953ab | 2022-12-06 15:37:07 -0800 | [diff] [blame] | 202 |         "tensorflow_headers", | 
 | 203 |     ], | 
| Cody Heiner | 52db474 | 2023-06-29 13:19:01 -0700 | [diff] [blame] | 204 |     export_header_lib_headers: [ | 
 | 205 |         "jni_headers", | 
 | 206 |         "libeigen", | 
 | 207 |     ], | 
| Orion Hodson | e32877a | 2020-04-22 11:10:13 +0100 | [diff] [blame] | 208 |  | 
| Prabir Pradhan | 1e63fc2 | 2023-02-23 19:03:03 +0000 | [diff] [blame] | 209 |     generated_headers: [ | 
| Siarhei Vishniakou | 5c02a71 | 2023-05-15 15:45:02 -0700 | [diff] [blame] | 210 |         "cxx-bridge-header", | 
 | 211 |         "libinput_cxx_bridge_header", | 
| Prabir Pradhan | 1e63fc2 | 2023-02-23 19:03:03 +0000 | [diff] [blame] | 212 |         "toolbox_input_labels", | 
 | 213 |     ], | 
 | 214 |  | 
| Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 215 |     shared_libs: [ | 
| Siarhei Vishniakou | ec2727e | 2017-07-06 10:22:03 -0700 | [diff] [blame] | 216 |         "libbase", | 
| Siarhei Vishniakou | cac8427 | 2023-06-28 14:43:25 -0700 | [diff] [blame] | 217 |         "libbinder", | 
| Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 218 |         "libcutils", | 
| Siarhei Vishniakou | 39147ce | 2022-11-15 12:13:04 -0800 | [diff] [blame] | 219 |         "liblog", | 
 | 220 |         "libPlatformProperties", | 
| Philip Quinn | f84fa49 | 2023-06-26 14:15:15 -0700 | [diff] [blame] | 221 |         "libtinyxml2", | 
| Siarhei Vishniakou | 4c155eb | 2023-06-30 11:47:12 -0700 | [diff] [blame] | 222 |         "libutils", | 
| Siarhei Vishniakou | a9fd82c | 2022-05-18 09:42:52 -0700 | [diff] [blame] | 223 |         "libvintf", | 
| Siarhei Vishniakou | 9681896 | 2023-08-23 10:19:02 -0700 | [diff] [blame] | 224 |         "server_configurable_flags", | 
| Philip Quinn | da6a448 | 2023-02-07 10:09:57 -0800 | [diff] [blame] | 225 |     ], | 
 | 226 |  | 
 | 227 |     ldflags: [ | 
 | 228 |         "-Wl,--exclude-libs=libtflite_static.a", | 
| Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 229 |     ], | 
 | 230 |  | 
| Siarhei Vishniakou | dd88248 | 2023-04-28 21:13:26 +0000 | [diff] [blame] | 231 |     sanitize: { | 
 | 232 |         undefined: true, | 
 | 233 |         all_undefined: true, | 
 | 234 |         misc_undefined: ["integer"], | 
 | 235 |     }, | 
 | 236 |  | 
| chaviw | fd9c1ed | 2020-07-01 10:57:59 -0700 | [diff] [blame] | 237 |     static_libs: [ | 
| Siarhei Vishniakou | 5c02a71 | 2023-05-15 15:45:02 -0700 | [diff] [blame] | 238 |         "inputconstants-cpp", | 
| Siarhei Vishniakou | cac8427 | 2023-06-28 14:43:25 -0700 | [diff] [blame] | 239 |         "libgui_window_info_static", | 
| chaviw | fd9c1ed | 2020-07-01 10:57:59 -0700 | [diff] [blame] | 240 |         "libui-types", | 
| Philip Quinn | da6a448 | 2023-02-07 10:09:57 -0800 | [diff] [blame] | 241 |         "libtflite_static", | 
| chaviw | fd9c1ed | 2020-07-01 10:57:59 -0700 | [diff] [blame] | 242 |     ], | 
 | 243 |  | 
| Siarhei Vishniakou | 5c02a71 | 2023-05-15 15:45:02 -0700 | [diff] [blame] | 244 |     whole_static_libs: [ | 
| Siarhei Vishniakou | 9681896 | 2023-08-23 10:19:02 -0700 | [diff] [blame] | 245 |         "aconfig_input_flags_c_lib", | 
| Prabir Pradhan | 0762b1f | 2023-06-22 23:08:18 +0000 | [diff] [blame] | 246 |         "libinput_rust_ffi", | 
| Siarhei Vishniakou | 5c02a71 | 2023-05-15 15:45:02 -0700 | [diff] [blame] | 247 |     ], | 
 | 248 |  | 
| chaviw | fd9c1ed | 2020-07-01 10:57:59 -0700 | [diff] [blame] | 249 |     export_static_lib_headers: [ | 
| Siarhei Vishniakou | cac8427 | 2023-06-28 14:43:25 -0700 | [diff] [blame] | 250 |         "libgui_window_info_static", | 
| chaviw | fd9c1ed | 2020-07-01 10:57:59 -0700 | [diff] [blame] | 251 |         "libui-types", | 
 | 252 |     ], | 
 | 253 |  | 
| Siarhei Vishniakou | 5c02a71 | 2023-05-15 15:45:02 -0700 | [diff] [blame] | 254 |     export_generated_headers: [ | 
 | 255 |         "cxx-bridge-header", | 
 | 256 |         "libinput_cxx_bridge_header", | 
 | 257 |     ], | 
 | 258 |  | 
| Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 259 |     target: { | 
 | 260 |         android: { | 
| Cody Heiner | 52db474 | 2023-06-29 13:19:01 -0700 | [diff] [blame] | 261 |             export_shared_lib_headers: ["libbinder"], | 
 | 262 |  | 
 | 263 |             shared_libs: [ | 
 | 264 |                 "libutils", | 
 | 265 |                 "libbinder", | 
 | 266 |                 // Stats logging library and its dependencies. | 
 | 267 |                 "libstatslog_libinput", | 
 | 268 |                 "libstatsbootstrap", | 
 | 269 |                 "android.os.statsbootstrap_aidl-cpp", | 
 | 270 |             ], | 
 | 271 |  | 
| Philip Quinn | 8f953ab | 2022-12-06 15:37:07 -0800 | [diff] [blame] | 272 |             required: [ | 
 | 273 |                 "motion_predictor_model_prebuilt", | 
| Philip Quinn | f84fa49 | 2023-06-26 14:15:15 -0700 | [diff] [blame] | 274 |                 "motion_predictor_model_config", | 
| Philip Quinn | 8f953ab | 2022-12-06 15:37:07 -0800 | [diff] [blame] | 275 |             ], | 
| Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 276 |         }, | 
 | 277 |         host: { | 
| Brett Chabot | 5820852 | 2020-09-09 13:55:24 -0700 | [diff] [blame] | 278 |             include_dirs: [ | 
| Zixuan Qu | dd0635d | 2023-02-06 04:52:38 +0000 | [diff] [blame] | 279 |                 "bionic/libc/kernel/android/uapi/", | 
 | 280 |                 "bionic/libc/kernel/uapi", | 
| Brett Chabot | 5820852 | 2020-09-09 13:55:24 -0700 | [diff] [blame] | 281 |             ], | 
 | 282 |         }, | 
| Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 283 |     }, | 
| Chris Ye | 0783e99 | 2020-06-02 21:34:49 -0700 | [diff] [blame] | 284 |  | 
 | 285 |     aidl: { | 
 | 286 |         local_include_dirs: ["."], | 
| Brett Chabot | 5820852 | 2020-09-09 13:55:24 -0700 | [diff] [blame] | 287 |         export_aidl_headers: true, | 
| chaviw | 3277faf | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 288 |         include_dirs: [ | 
 | 289 |             "frameworks/native/libs/gui", | 
 | 290 |         ], | 
| Chris Ye | 0783e99 | 2020-06-02 21:34:49 -0700 | [diff] [blame] | 291 |     }, | 
| Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 292 | } | 
| Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 293 |  | 
| Cody Heiner | 52db474 | 2023-06-29 13:19:01 -0700 | [diff] [blame] | 294 | // Use bootstrap version of stats logging library. | 
 | 295 | // libinput is a bootstrap process (starts early in the boot process), and thus can't use the normal | 
 | 296 | // `libstatslog` because that requires `libstatssocket`, which is only available later in the boot. | 
 | 297 | cc_library { | 
 | 298 |     name: "libstatslog_libinput", | 
 | 299 |     generated_sources: ["statslog_libinput.cpp"], | 
 | 300 |     generated_headers: ["statslog_libinput.h"], | 
 | 301 |     export_generated_headers: ["statslog_libinput.h"], | 
 | 302 |     shared_libs: [ | 
 | 303 |         "libbinder", | 
 | 304 |         "libstatsbootstrap", | 
 | 305 |         "libutils", | 
 | 306 |         "android.os.statsbootstrap_aidl-cpp", | 
 | 307 |     ], | 
 | 308 | } | 
 | 309 |  | 
 | 310 | genrule { | 
 | 311 |     name: "statslog_libinput.h", | 
 | 312 |     tools: ["stats-log-api-gen"], | 
 | 313 |     cmd: "$(location stats-log-api-gen) --header $(genDir)/statslog_libinput.h --module libinput" + | 
 | 314 |         " --namespace android,stats,libinput --bootstrap", | 
 | 315 |     out: [ | 
 | 316 |         "statslog_libinput.h", | 
 | 317 |     ], | 
 | 318 | } | 
 | 319 |  | 
 | 320 | genrule { | 
 | 321 |     name: "statslog_libinput.cpp", | 
 | 322 |     tools: ["stats-log-api-gen"], | 
 | 323 |     cmd: "$(location stats-log-api-gen) --cpp $(genDir)/statslog_libinput.cpp --module libinput" + | 
 | 324 |         " --namespace android,stats,libinput --importHeader statslog_libinput.h" + | 
 | 325 |         " --bootstrap", | 
 | 326 |     out: [ | 
 | 327 |         "statslog_libinput.cpp", | 
 | 328 |     ], | 
 | 329 | } | 
 | 330 |  | 
| Siarhei Vishniakou | 32f36ae | 2020-09-02 20:17:10 -0700 | [diff] [blame] | 331 | cc_defaults { | 
 | 332 |     name: "libinput_fuzz_defaults", | 
| Harry Cutts | 2b67ff1 | 2023-03-13 11:32:06 +0000 | [diff] [blame] | 333 |     cpp_std: "c++20", | 
| Siarhei Vishniakou | 32f36ae | 2020-09-02 20:17:10 -0700 | [diff] [blame] | 334 |     host_supported: true, | 
 | 335 |     shared_libs: [ | 
 | 336 |         "libutils", | 
 | 337 |         "libbase", | 
 | 338 |         "liblog", | 
 | 339 |     ], | 
 | 340 | } | 
 | 341 |  | 
 | 342 | cc_fuzz { | 
 | 343 |     name: "libinput_fuzz_propertymap", | 
 | 344 |     defaults: ["libinput_fuzz_defaults"], | 
 | 345 |     srcs: [ | 
 | 346 |         "PropertyMap.cpp", | 
 | 347 |         "PropertyMap_fuzz.cpp", | 
 | 348 |     ], | 
 | 349 | } | 
 | 350 |  | 
| Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 351 | subdirs = ["tests"] |