blob: a2d6a8a798453e1826c5a110521d6fd3969a55a4 [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",
Siarhei Vishniakoue96bc7a2018-09-06 10:19:16 -070019 cpp_std: "c++17",
Dan Willemsen59e086f2016-07-25 17:13:45 -070020 host_supported: true,
Frank Barchard9e947882017-03-06 11:17:52 -080021 cflags: [
22 "-Wall",
23 "-Wextra",
24 "-Werror",
25 ],
Dan Willemsen59e086f2016-07-25 17:13:45 -070026 srcs: [
27 "Input.cpp",
28 "InputDevice.cpp",
29 "Keyboard.cpp",
30 "KeyCharacterMap.cpp",
31 "KeyLayoutMap.cpp",
32 "VirtualKeyMap.cpp",
33 ],
34
35 clang: true,
Dan Willemsen59e086f2016-07-25 17:13:45 -070036
37 shared_libs: [
Siarhei Vishniakouec2727e2017-07-06 10:22:03 -070038 "libbase",
Dan Willemsen59e086f2016-07-25 17:13:45 -070039 "liblog",
40 "libcutils",
41 ],
42
43 target: {
44 android: {
45 srcs: [
46 "IInputFlinger.cpp",
47 "InputTransport.cpp",
48 "VelocityControl.cpp",
49 "VelocityTracker.cpp",
50 ],
51
52 shared_libs: [
53 "libutils",
54 "libbinder",
55 ],
Evgenii Stepanovde982972017-01-31 16:37:44 -080056
57 sanitize: {
58 misc_undefined: ["integer"],
59 },
Dan Willemsen59e086f2016-07-25 17:13:45 -070060 },
61 host: {
62 shared: {
63 enabled: false,
64 },
65 },
66 },
67}
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070068
69subdirs = ["tests"]