blob: 0c3c1f04833767429583f0ac499187fa692efa70 [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",
35 "Keyboard.cpp",
36 "KeyCharacterMap.cpp",
37 "KeyLayoutMap.cpp",
Siarhei Vishniakou26cf29d2019-02-15 16:48:38 -060038 "TouchVideoFrame.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060039 "VirtualKeyMap.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070040 ],
41
42 clang: true,
Dan Willemsen59e086f2016-07-25 17:13:45 -070043
Orion Hodsone32877a2020-04-22 11:10:13 +010044 header_libs: ["jni_headers"],
45 export_header_lib_headers: ["jni_headers"],
46
Dan Willemsen59e086f2016-07-25 17:13:45 -070047 shared_libs: [
Siarhei Vishniakouec2727e2017-07-06 10:22:03 -070048 "libbase",
Dan Willemsen59e086f2016-07-25 17:13:45 -070049 "liblog",
50 "libcutils",
51 ],
52
chaviwfd9c1ed2020-07-01 10:57:59 -070053 static_libs: [
54 "libui-types",
55 ],
56
57 export_static_lib_headers: [
58 "libui-types",
59 ],
60
Dan Willemsen59e086f2016-07-25 17:13:45 -070061 target: {
62 android: {
63 srcs: [
Dan Willemsen59e086f2016-07-25 17:13:45 -070064 "InputTransport.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060065 "InputWindow.cpp",
Atif Niyaz83846822019-07-18 15:17:40 -070066 "LatencyStatistics.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070067 "VelocityControl.cpp",
68 "VelocityTracker.cpp",
Vishnu Naire798b472020-07-23 13:52:21 -070069 "android/FocusRequest.aidl",
Chris Ye6c4243b2020-07-22 12:07:12 -070070 "android/InputApplicationInfo.aidl",
Siarhei Vishniakou70622952020-07-30 11:17:23 -050071 "android/os/IInputConstants.aidl",
Chris Ye0783e992020-06-02 21:34:49 -070072 "android/os/IInputFlinger.aidl",
73 "android/os/ISetInputWindowsListener.aidl",
Dan Willemsen59e086f2016-07-25 17:13:45 -070074 ],
75
76 shared_libs: [
77 "libutils",
78 "libbinder",
Atif Niyaz3d3fa522019-07-25 11:12:39 -070079 "libui",
Dan Willemsen59e086f2016-07-25 17:13:45 -070080 ],
Evgenii Stepanovde982972017-01-31 16:37:44 -080081
82 sanitize: {
83 misc_undefined: ["integer"],
84 },
Dan Willemsen59e086f2016-07-25 17:13:45 -070085 },
86 host: {
87 shared: {
88 enabled: false,
89 },
90 },
91 },
Chris Ye0783e992020-06-02 21:34:49 -070092
93 aidl: {
94 local_include_dirs: ["."],
95 export_aidl_headers: true
96 },
Dan Willemsen59e086f2016-07-25 17:13:45 -070097}
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070098
99subdirs = ["tests"]