Android.mk 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. LOCAL_PATH:= $(call my-dir)
  15. # libinput is partially built for the host (used by build time keymap validation tool)
  16. # These files are common to host and target builds.
  17. commonSources := \
  18. Input.cpp \
  19. InputDevice.cpp \
  20. Keyboard.cpp \
  21. KeyCharacterMap.cpp \
  22. KeyLayoutMap.cpp \
  23. VirtualKeyMap.cpp
  24. deviceSources := \
  25. $(commonSources) \
  26. IInputFlinger.cpp \
  27. InputTransport.cpp \
  28. VelocityControl.cpp \
  29. VelocityTracker.cpp
  30. hostSources := \
  31. $(commonSources)
  32. # For the host
  33. # =====================================================
  34. include $(CLEAR_VARS)
  35. LOCAL_SRC_FILES:= $(hostSources)
  36. LOCAL_MODULE:= libinput
  37. LOCAL_MODULE_TAGS := optional
  38. include $(BUILD_HOST_STATIC_LIBRARY)
  39. # For the device
  40. # =====================================================
  41. include $(CLEAR_VARS)
  42. LOCAL_SRC_FILES:= $(deviceSources)
  43. LOCAL_SHARED_LIBRARIES := \
  44. liblog \
  45. libcutils \
  46. libutils \
  47. libbinder
  48. LOCAL_MODULE:= libinput
  49. LOCAL_MODULE_TAGS := optional
  50. include $(BUILD_SHARED_LIBRARY)
  51. # Include subdirectory makefiles
  52. # ============================================================
  53. # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
  54. # team really wants is to build the stuff defined by this makefile.
  55. ifeq (,$(ONE_SHOT_MAKEFILE))
  56. include $(call first-makefiles-under,$(LOCAL_PATH))
  57. endif