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