blob: 6a5d434515ddb092531d06ccc012f117aebc882a [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 Vishniakou32f36ae2020-09-02 20:17:10 -070031 "PropertyMap.cpp",
Siarhei Vishniakou26cf29d2019-02-15 16:48:38 -060032 "TouchVideoFrame.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060033 "VirtualKeyMap.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070034 ],
35
36 clang: true,
Dan Willemsen59e086f2016-07-25 17:13:45 -070037
Orion Hodsona58ef352020-04-22 11:10:13 +010038 header_libs: ["jni_headers"],
39 export_header_lib_headers: ["jni_headers"],
40
Dan Willemsen59e086f2016-07-25 17:13:45 -070041 shared_libs: [
Siarhei Vishniakouec2727e2017-07-06 10:22:03 -070042 "libbase",
Dan Willemsen59e086f2016-07-25 17:13:45 -070043 "liblog",
44 "libcutils",
45 ],
46
47 target: {
48 android: {
49 srcs: [
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060050 "IInputFlinger.cpp",
51 "InputApplication.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070052 "InputTransport.cpp",
Siarhei Vishniakou5ac663d2019-02-15 17:15:56 -060053 "InputWindow.cpp",
chaviw291d88a2019-02-14 10:33:58 -080054 "ISetInputWindowsListener.cpp",
Atif Niyaz83846822019-07-18 15:17:40 -070055 "LatencyStatistics.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070056 "VelocityControl.cpp",
57 "VelocityTracker.cpp",
58 ],
59
60 shared_libs: [
61 "libutils",
62 "libbinder",
Atif Niyaz3d3fa522019-07-25 11:12:39 -070063 "libui",
Dan Willemsen59e086f2016-07-25 17:13:45 -070064 ],
Evgenii Stepanovde982972017-01-31 16:37:44 -080065
66 sanitize: {
67 misc_undefined: ["integer"],
68 },
Dan Willemsen59e086f2016-07-25 17:13:45 -070069 },
70 host: {
71 shared: {
72 enabled: false,
73 },
74 },
75 },
76}
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070077
Siarhei Vishniakou32f36ae2020-09-02 20:17:10 -070078cc_defaults {
79 name: "libinput_fuzz_defaults",
80 host_supported: true,
81 shared_libs: [
82 "libutils",
83 "libbase",
84 "liblog",
85 ],
86}
87
88cc_fuzz {
89 name: "libinput_fuzz_propertymap",
90 defaults: ["libinput_fuzz_defaults"],
91 srcs: [
92 "PropertyMap.cpp",
93 "PropertyMap_fuzz.cpp",
94 ],
95}
96
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070097subdirs = ["tests"]