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 | |
Siarhei Vishniakou | 7062295 | 2020-07-30 11:17:23 -0500 | [diff] [blame^] | 17 | filegroup { |
| 18 | name: "inputconstants_aidl", |
| 19 | srcs: [ |
| 20 | "android/os/IInputConstants.aidl", |
| 21 | ], |
| 22 | } |
| 23 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 24 | cc_library { |
| 25 | name: "libinput", |
| 26 | host_supported: true, |
Frank Barchard | 9e94788 | 2017-03-06 11:17:52 -0800 | [diff] [blame] | 27 | cflags: [ |
| 28 | "-Wall", |
| 29 | "-Wextra", |
| 30 | "-Werror", |
| 31 | ], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 32 | srcs: [ |
| 33 | "Input.cpp", |
| 34 | "InputDevice.cpp", |
| 35 | "Keyboard.cpp", |
| 36 | "KeyCharacterMap.cpp", |
| 37 | "KeyLayoutMap.cpp", |
Siarhei Vishniakou | 26cf29d | 2019-02-15 16:48:38 -0600 | [diff] [blame] | 38 | "TouchVideoFrame.cpp", |
Siarhei Vishniakou | 5ac663d | 2019-02-15 17:15:56 -0600 | [diff] [blame] | 39 | "VirtualKeyMap.cpp", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 40 | ], |
| 41 | |
| 42 | clang: true, |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 43 | |
Orion Hodson | e32877a | 2020-04-22 11:10:13 +0100 | [diff] [blame] | 44 | header_libs: ["jni_headers"], |
| 45 | export_header_lib_headers: ["jni_headers"], |
| 46 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 47 | shared_libs: [ |
Siarhei Vishniakou | ec2727e | 2017-07-06 10:22:03 -0700 | [diff] [blame] | 48 | "libbase", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 49 | "liblog", |
| 50 | "libcutils", |
| 51 | ], |
| 52 | |
chaviw | fd9c1ed | 2020-07-01 10:57:59 -0700 | [diff] [blame] | 53 | static_libs: [ |
| 54 | "libui-types", |
| 55 | ], |
| 56 | |
| 57 | export_static_lib_headers: [ |
| 58 | "libui-types", |
| 59 | ], |
| 60 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 61 | target: { |
| 62 | android: { |
| 63 | srcs: [ |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 64 | "InputTransport.cpp", |
Siarhei Vishniakou | 5ac663d | 2019-02-15 17:15:56 -0600 | [diff] [blame] | 65 | "InputWindow.cpp", |
Atif Niyaz | 8384682 | 2019-07-18 15:17:40 -0700 | [diff] [blame] | 66 | "LatencyStatistics.cpp", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 67 | "VelocityControl.cpp", |
| 68 | "VelocityTracker.cpp", |
Vishnu Nair | e798b47 | 2020-07-23 13:52:21 -0700 | [diff] [blame] | 69 | "android/FocusRequest.aidl", |
Chris Ye | 6c4243b | 2020-07-22 12:07:12 -0700 | [diff] [blame] | 70 | "android/InputApplicationInfo.aidl", |
Siarhei Vishniakou | 7062295 | 2020-07-30 11:17:23 -0500 | [diff] [blame^] | 71 | "android/os/IInputConstants.aidl", |
Chris Ye | 0783e99 | 2020-06-02 21:34:49 -0700 | [diff] [blame] | 72 | "android/os/IInputFlinger.aidl", |
| 73 | "android/os/ISetInputWindowsListener.aidl", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 74 | ], |
| 75 | |
| 76 | shared_libs: [ |
| 77 | "libutils", |
| 78 | "libbinder", |
Atif Niyaz | 3d3fa52 | 2019-07-25 11:12:39 -0700 | [diff] [blame] | 79 | "libui", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 80 | ], |
Evgenii Stepanov | de98297 | 2017-01-31 16:37:44 -0800 | [diff] [blame] | 81 | |
| 82 | sanitize: { |
| 83 | misc_undefined: ["integer"], |
| 84 | }, |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 85 | }, |
| 86 | host: { |
| 87 | shared: { |
| 88 | enabled: false, |
| 89 | }, |
| 90 | }, |
| 91 | }, |
Chris Ye | 0783e99 | 2020-06-02 21:34:49 -0700 | [diff] [blame] | 92 | |
| 93 | aidl: { |
| 94 | local_include_dirs: ["."], |
| 95 | export_aidl_headers: true |
| 96 | }, |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 97 | } |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame] | 98 | |
| 99 | subdirs = ["tests"] |