Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 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 | |
| 17 | cc_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, |
| 31 | sanitize: { |
| 32 | misc_undefined: ["integer"], |
| 33 | }, |
| 34 | |
| 35 | shared_libs: [ |
| 36 | "liblog", |
| 37 | "libcutils", |
| 38 | ], |
| 39 | |
| 40 | target: { |
| 41 | android: { |
| 42 | srcs: [ |
| 43 | "IInputFlinger.cpp", |
| 44 | "InputTransport.cpp", |
| 45 | "VelocityControl.cpp", |
| 46 | "VelocityTracker.cpp", |
| 47 | ], |
| 48 | |
| 49 | shared_libs: [ |
| 50 | "libutils", |
| 51 | "libbinder", |
| 52 | ], |
| 53 | }, |
| 54 | host: { |
| 55 | shared: { |
| 56 | enabled: false, |
| 57 | }, |
| 58 | }, |
| 59 | }, |
| 60 | } |
Dan Willemsen | c7dd2b9 | 2016-08-25 17:05:22 -0700 | [diff] [blame^] | 61 | |
| 62 | subdirs = ["tests"] |