blob: 180700db0b19580188747b6c2a361f8c1c252c45 [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
17cc_library {
18 name: "libinput",
19 host_supported: true,
Frank Barchard9e947882017-03-06 11:17:52 -080020 cflags: [
21 "-Wall",
22 "-Wextra",
23 "-Werror",
24 ],
Dan Willemsen59e086f2016-07-25 17:13:45 -070025 srcs: [
26 "Input.cpp",
27 "InputDevice.cpp",
28 "Keyboard.cpp",
29 "KeyCharacterMap.cpp",
30 "KeyLayoutMap.cpp",
Siarhei Vishniakou26cf29d2019-02-15 16:48:38 -060031 "TouchVideoFrame.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060032 "VirtualKeyMap.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070033 ],
34
35 clang: true,
Dan Willemsen59e086f2016-07-25 17:13:45 -070036
Orion Hodsone32877a2020-04-22 11:10:13 +010037 header_libs: ["jni_headers"],
38 export_header_lib_headers: ["jni_headers"],
39
Dan Willemsen59e086f2016-07-25 17:13:45 -070040 shared_libs: [
Siarhei Vishniakouec2727e2017-07-06 10:22:03 -070041 "libbase",
Dan Willemsen59e086f2016-07-25 17:13:45 -070042 "liblog",
43 "libcutils",
44 ],
45
chaviwfd9c1ed2020-07-01 10:57:59 -070046 static_libs: [
47 "libui-types",
48 ],
49
50 export_static_lib_headers: [
51 "libui-types",
52 ],
53
Dan Willemsen59e086f2016-07-25 17:13:45 -070054 target: {
55 android: {
56 srcs: [
Dan Willemsen59e086f2016-07-25 17:13:45 -070057 "InputTransport.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060058 "InputWindow.cpp",
Atif Niyaz83846822019-07-18 15:17:40 -070059 "LatencyStatistics.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070060 "VelocityControl.cpp",
61 "VelocityTracker.cpp",
Vishnu Naire798b472020-07-23 13:52:21 -070062 "android/FocusRequest.aidl",
Chris Ye6c4243b2020-07-22 12:07:12 -070063 "android/InputApplicationInfo.aidl",
Chris Ye0783e992020-06-02 21:34:49 -070064 "android/os/IInputFlinger.aidl",
65 "android/os/ISetInputWindowsListener.aidl",
Dan Willemsen59e086f2016-07-25 17:13:45 -070066 ],
67
68 shared_libs: [
69 "libutils",
70 "libbinder",
Atif Niyaz3d3fa522019-07-25 11:12:39 -070071 "libui",
Dan Willemsen59e086f2016-07-25 17:13:45 -070072 ],
Evgenii Stepanovde982972017-01-31 16:37:44 -080073
74 sanitize: {
75 misc_undefined: ["integer"],
76 },
Dan Willemsen59e086f2016-07-25 17:13:45 -070077 },
78 host: {
79 shared: {
80 enabled: false,
81 },
82 },
83 },
Chris Ye0783e992020-06-02 21:34:49 -070084
85 aidl: {
86 local_include_dirs: ["."],
87 export_aidl_headers: true
88 },
Dan Willemsen59e086f2016-07-25 17:13:45 -070089}
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070090
91subdirs = ["tests"]