blob: 9485d5b0e6b4a04e54823972332c29f599b7c262 [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,
20
21 srcs: [
22 "Input.cpp",
23 "InputDevice.cpp",
24 "Keyboard.cpp",
25 "KeyCharacterMap.cpp",
26 "KeyLayoutMap.cpp",
27 "VirtualKeyMap.cpp",
28 ],
29
30 clang: true,
Dan Willemsen59e086f2016-07-25 17:13:45 -070031
32 shared_libs: [
33 "liblog",
34 "libcutils",
35 ],
36
37 target: {
38 android: {
39 srcs: [
40 "IInputFlinger.cpp",
41 "InputTransport.cpp",
42 "VelocityControl.cpp",
43 "VelocityTracker.cpp",
44 ],
45
46 shared_libs: [
47 "libutils",
48 "libbinder",
49 ],
Evgenii Stepanovde982972017-01-31 16:37:44 -080050
51 sanitize: {
52 misc_undefined: ["integer"],
53 },
Dan Willemsen59e086f2016-07-25 17:13:45 -070054 },
55 host: {
56 shared: {
57 enabled: false,
58 },
59 },
60 },
61}
Dan Willemsenc7dd2b92016-08-25 17:05:22 -070062
63subdirs = ["tests"]