1// 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 cflags: [ 21 "-Wall", 22 "-Wextra", 23 "-Werror", 24 ], 25 srcs: [ 26 "Input.cpp", 27 "InputDevice.cpp", 28 "Keyboard.cpp", 29 "KeyCharacterMap.cpp", 30 "KeyLayoutMap.cpp", 31 "TouchVideoFrame.cpp", 32 "VirtualKeyMap.cpp", 33 ], 34 35 clang: true, 36 37 shared_libs: [ 38 "libbase", 39 "liblog", 40 "libcutils", 41 ], 42 43 target: { 44 android: { 45 srcs: [ 46 "IInputFlinger.cpp", 47 "InputApplication.cpp", 48 "InputTransport.cpp", 49 "InputWindow.cpp", 50 "ISetInputWindowsListener.cpp", 51 "VelocityControl.cpp", 52 "VelocityTracker.cpp", 53 ], 54 55 shared_libs: [ 56 "libutils", 57 "libbinder", 58 "libui" 59 ], 60 61 sanitize: { 62 misc_undefined: ["integer"], 63 }, 64 }, 65 host: { 66 shared: { 67 enabled: false, 68 }, 69 }, 70 }, 71} 72 73subdirs = ["tests"] 74