blob: fc676f14e974c33865baf5e2b17e33028cec0883 [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",
31 "VirtualKeyMap.cpp",
32 ],
33
34 clang: true,
Dan Willemsen59e086f2016-07-25 17:13:45 -070035
36 shared_libs: [
Siarhei Vishniakouec2727e2017-07-06 10:22:03 -070037 "libbase",
Dan Willemsen59e086f2016-07-25 17:13:45 -070038 "liblog",
39 "libcutils",
40 ],
41
42 target: {
43 android: {
44 srcs: [
Dan Willemsen59e086f2016-07-25 17:13:45 -070045 "InputTransport.cpp",
46 "VelocityControl.cpp",
47 "VelocityTracker.cpp",
Robert Carr3720ed02018-08-08 16:08:27 -070048 "InputApplication.cpp",
Robert Carr1cc78672018-07-31 14:25:57 -070049 "InputWindow.cpp",
50 "IInputFlinger.cpp"
Dan Willemsen59e086f2016-07-25 17:13:45 -070051 ],
52
53 shared_libs: [
54 "libutils",
55 "libbinder",
Robert Carr3720ed02018-08-08 16:08:27 -070056 "libui"
Dan Willemsen59e086f2016-07-25 17:13:45 -070057 ],
Evgenii Stepanovde982972017-01-31 16:37:44 -080058
59 sanitize: {
60 misc_undefined: ["integer"],
61 },
Dan Willemsen59e086f2016-07-25 17:13:45 -070062 },
63 host: {
64 shared: {
65 enabled: false,
66 },
67 },
68 },
69}
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070070
71subdirs = ["tests"]