Android.mk 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Copyright (C) 2015 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. include $(CLEAR_VARS)
  16. LOCAL_CLANG := true
  17. LOCAL_SRC_FILES:= \
  18. InputFlinger.cpp \
  19. InputDriver.cpp \
  20. InputHost.cpp
  21. LOCAL_SHARED_LIBRARIES := \
  22. libbinder \
  23. libcrypto \
  24. libcutils \
  25. libinput \
  26. liblog \
  27. libutils \
  28. libhardware
  29. # TODO: Move inputflinger to its own process and mark it hidden
  30. #LOCAL_CFLAGS += -fvisibility=hidden
  31. LOCAL_CFLAGS += -Wno-unused-parameter
  32. LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
  33. LOCAL_MODULE := libinputflingerhost
  34. include $(BUILD_SHARED_LIBRARY)
  35. ########################################################################
  36. # build input flinger executable
  37. include $(CLEAR_VARS)
  38. LOCAL_CLANG := true
  39. LOCAL_SRC_FILES:= \
  40. main.cpp
  41. LOCAL_SHARED_LIBRARIES := \
  42. libbinder \
  43. libinputflingerhost \
  44. libutils
  45. LOCAL_MODULE := inputflinger
  46. include $(BUILD_EXECUTABLE)