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