blob: 8f575a8cae07dc0f0edfb1d338c00453d04ebb4e [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
Siarhei Vishniakou70622952020-07-30 11:17:23 -050017filegroup {
18 name: "inputconstants_aidl",
19 srcs: [
20 "android/os/IInputConstants.aidl",
21 ],
22}
23
Dan Willemsen59e086f2016-07-25 17:13:45 -070024cc_library {
25 name: "libinput",
26 host_supported: true,
Frank Barchard9e947882017-03-06 11:17:52 -080027 cflags: [
28 "-Wall",
29 "-Wextra",
30 "-Werror",
31 ],
Dan Willemsen59e086f2016-07-25 17:13:45 -070032 srcs: [
33 "Input.cpp",
34 "InputDevice.cpp",
Chris Ye4958d062020-08-20 13:21:10 -070035 "InputEventLabels.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070036 "Keyboard.cpp",
37 "KeyCharacterMap.cpp",
38 "KeyLayoutMap.cpp",
Siarhei Vishniakou32f36ae2020-09-02 20:17:10 -070039 "PropertyMap.cpp",
Siarhei Vishniakou26cf29d2019-02-15 16:48:38 -060040 "TouchVideoFrame.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060041 "VirtualKeyMap.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070042 ],
43
44 clang: true,
Dan Willemsen59e086f2016-07-25 17:13:45 -070045
Orion Hodsone32877a2020-04-22 11:10:13 +010046 header_libs: ["jni_headers"],
47 export_header_lib_headers: ["jni_headers"],
48
Dan Willemsen59e086f2016-07-25 17:13:45 -070049 shared_libs: [
Siarhei Vishniakouec2727e2017-07-06 10:22:03 -070050 "libbase",
Dan Willemsen59e086f2016-07-25 17:13:45 -070051 "liblog",
52 "libcutils",
53 ],
54
chaviwfd9c1ed2020-07-01 10:57:59 -070055 static_libs: [
56 "libui-types",
57 ],
58
59 export_static_lib_headers: [
60 "libui-types",
61 ],
62
Dan Willemsen59e086f2016-07-25 17:13:45 -070063 target: {
64 android: {
65 srcs: [
Dan Willemsen59e086f2016-07-25 17:13:45 -070066 "InputTransport.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060067 "InputWindow.cpp",
Atif Niyaz83846822019-07-18 15:17:40 -070068 "LatencyStatistics.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070069 "VelocityControl.cpp",
70 "VelocityTracker.cpp",
Vishnu Naire798b472020-07-23 13:52:21 -070071 "android/FocusRequest.aidl",
Chris Ye6c4243b2020-07-22 12:07:12 -070072 "android/InputApplicationInfo.aidl",
Siarhei Vishniakou70622952020-07-30 11:17:23 -050073 "android/os/IInputConstants.aidl",
Chris Ye0783e992020-06-02 21:34:49 -070074 "android/os/IInputFlinger.aidl",
75 "android/os/ISetInputWindowsListener.aidl",
Dan Willemsen59e086f2016-07-25 17:13:45 -070076 ],
77
78 shared_libs: [
79 "libutils",
80 "libbinder",
Atif Niyaz3d3fa522019-07-25 11:12:39 -070081 "libui",
Dan Willemsen59e086f2016-07-25 17:13:45 -070082 ],
Evgenii Stepanovde982972017-01-31 16:37:44 -080083
84 sanitize: {
85 misc_undefined: ["integer"],
86 },
Dan Willemsen59e086f2016-07-25 17:13:45 -070087 },
88 host: {
89 shared: {
90 enabled: false,
91 },
92 },
93 },
Chris Ye0783e992020-06-02 21:34:49 -070094
95 aidl: {
96 local_include_dirs: ["."],
97 export_aidl_headers: true
98 },
Dan Willemsen59e086f2016-07-25 17:13:45 -070099}
Dan Willemsenc7dd2b92016-08-25 17:05:22 -0700100
Siarhei Vishniakou32f36ae2020-09-02 20:17:10 -0700101cc_defaults {
102 name: "libinput_fuzz_defaults",
103 host_supported: true,
104 shared_libs: [
105 "libutils",
106 "libbase",
107 "liblog",
108 ],
109}
110
111cc_fuzz {
112 name: "libinput_fuzz_propertymap",
113 defaults: ["libinput_fuzz_defaults"],
114 srcs: [
115 "PropertyMap.cpp",
116 "PropertyMap_fuzz.cpp",
117 ],
118}
119
Dan Willemsenc7dd2b92016-08-25 17:05:22 -0700120subdirs = ["tests"]