blob: 393c0f6c15bf28c466bd8fa15723c67d73e8f218 [file] [log] [blame]
Dan Willemsen59e086f2016-07-25 17:13:45 -07001// 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 Badour3c538232021-02-12 21:26:48 -080017package {
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
Dan Willemsen59e086f2016-07-25 17:13:45 -070026cc_library {
27 name: "libinput",
28 host_supported: true,
Frank Barchard9e947882017-03-06 11:17:52 -080029 cflags: [
30 "-Wall",
31 "-Wextra",
32 "-Werror",
33 ],
Dan Willemsen59e086f2016-07-25 17:13:45 -070034 srcs: [
35 "Input.cpp",
36 "InputDevice.cpp",
37 "Keyboard.cpp",
38 "KeyCharacterMap.cpp",
39 "KeyLayoutMap.cpp",
Siarhei Vishniakou32f36ae2020-09-02 20:17:10 -070040 "PropertyMap.cpp",
Siarhei Vishniakou26cf29d2019-02-15 16:48:38 -060041 "TouchVideoFrame.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060042 "VirtualKeyMap.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070043 ],
44
45 clang: true,
Dan Willemsen59e086f2016-07-25 17:13:45 -070046
Orion Hodsona58ef352020-04-22 11:10:13 +010047 header_libs: ["jni_headers"],
48 export_header_lib_headers: ["jni_headers"],
49
Dan Willemsen59e086f2016-07-25 17:13:45 -070050 shared_libs: [
Siarhei Vishniakouec2727e2017-07-06 10:22:03 -070051 "libbase",
Dan Willemsen59e086f2016-07-25 17:13:45 -070052 "liblog",
53 "libcutils",
54 ],
55
56 target: {
57 android: {
58 srcs: [
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060059 "IInputFlinger.cpp",
60 "InputApplication.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070061 "InputTransport.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060062 "InputWindow.cpp",
chaviw291d88a2019-02-14 10:33:58 -080063 "ISetInputWindowsListener.cpp",
Atif Niyaz83846822019-07-18 15:17:40 -070064 "LatencyStatistics.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070065 "VelocityControl.cpp",
66 "VelocityTracker.cpp",
67 ],
68
69 shared_libs: [
70 "libutils",
71 "libbinder",
Atif Niyaz3d3fa522019-07-25 11:12:39 -070072 "libui",
Dan Willemsen59e086f2016-07-25 17:13:45 -070073 ],
Evgenii Stepanovde982972017-01-31 16:37:44 -080074
75 sanitize: {
76 misc_undefined: ["integer"],
77 },
Dan Willemsen59e086f2016-07-25 17:13:45 -070078 },
79 host: {
80 shared: {
81 enabled: false,
82 },
83 },
84 },
85}
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070086
Siarhei Vishniakou32f36ae2020-09-02 20:17:10 -070087cc_defaults {
88 name: "libinput_fuzz_defaults",
89 host_supported: true,
90 shared_libs: [
91 "libutils",
92 "libbase",
93 "liblog",
94 ],
95}
96
97cc_fuzz {
98 name: "libinput_fuzz_propertymap",
99 defaults: ["libinput_fuzz_defaults"],
100 srcs: [
101 "PropertyMap.cpp",
102 "PropertyMap_fuzz.cpp",
103 ],
104}
105
Dan Willemsenc7dd2b92016-08-25 17:05:22 -0700106subdirs = ["tests"]