| Jeff Brown | 5912f95 | 2013-07-01 19:10:31 -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 | LOCAL_PATH:= $(call my-dir) | 
 | 16 |  | 
 | 17 | # libinput is partially built for the host (used by build time keymap validation tool) | 
 | 18 | # These files are common to host and target builds. | 
 | 19 |  | 
 | 20 | commonSources := \ | 
 | 21 |     Input.cpp \ | 
 | 22 |     InputDevice.cpp \ | 
 | 23 |     Keyboard.cpp \ | 
 | 24 |     KeyCharacterMap.cpp \ | 
 | 25 |     KeyLayoutMap.cpp \ | 
 | 26 |     VirtualKeyMap.cpp | 
 | 27 |  | 
 | 28 | deviceSources := \ | 
 | 29 |     $(commonSources) \ | 
| Jeff Brown | 40c9e0a | 2013-07-15 13:27:05 -0700 | [diff] [blame] | 30 |     IInputFlinger.cpp \ | 
| Jeff Brown | 5912f95 | 2013-07-01 19:10:31 -0700 | [diff] [blame] | 31 |     InputTransport.cpp \ | 
 | 32 |     VelocityControl.cpp \ | 
 | 33 |     VelocityTracker.cpp | 
 | 34 |  | 
 | 35 | hostSources := \ | 
 | 36 |     $(commonSources) | 
 | 37 |  | 
 | 38 | # For the host | 
 | 39 | # ===================================================== | 
 | 40 |  | 
 | 41 | include $(CLEAR_VARS) | 
 | 42 |  | 
 | 43 | LOCAL_SRC_FILES:= $(hostSources) | 
 | 44 |  | 
 | 45 | LOCAL_MODULE:= libinput | 
 | 46 |  | 
 | 47 | LOCAL_MODULE_TAGS := optional | 
 | 48 |  | 
 | 49 | include $(BUILD_HOST_STATIC_LIBRARY) | 
 | 50 |  | 
 | 51 |  | 
 | 52 | # For the device | 
 | 53 | # ===================================================== | 
 | 54 |  | 
 | 55 | include $(CLEAR_VARS) | 
 | 56 |  | 
 | 57 | LOCAL_SRC_FILES:= $(deviceSources) | 
 | 58 |  | 
| Dan Austin | 29b3555 | 2015-09-22 14:33:57 -0700 | [diff] [blame] | 59 | LOCAL_CLANG := true | 
 | 60 | LOCAL_SANITIZE := integer | 
 | 61 |  | 
| Jeff Brown | 5912f95 | 2013-07-01 19:10:31 -0700 | [diff] [blame] | 62 | LOCAL_SHARED_LIBRARIES := \ | 
 | 63 | 	liblog \ | 
 | 64 | 	libcutils \ | 
 | 65 | 	libutils \ | 
| Jeff Brown | 5a2f68e | 2013-07-15 17:28:19 -0700 | [diff] [blame] | 66 | 	libbinder | 
| Jeff Brown | 5912f95 | 2013-07-01 19:10:31 -0700 | [diff] [blame] | 67 |  | 
 | 68 | LOCAL_MODULE:= libinput | 
 | 69 |  | 
 | 70 | LOCAL_MODULE_TAGS := optional | 
 | 71 |  | 
 | 72 | include $(BUILD_SHARED_LIBRARY) | 
 | 73 |  | 
 | 74 |  | 
 | 75 | # Include subdirectory makefiles | 
 | 76 | # ============================================================ | 
 | 77 |  | 
 | 78 | # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework | 
 | 79 | # team really wants is to build the stuff defined by this makefile. | 
 | 80 | ifeq (,$(ONE_SHOT_MAKEFILE)) | 
 | 81 | include $(call first-makefiles-under,$(LOCAL_PATH)) | 
 | 82 | endif |