Android.mk 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # Copyright (C) 2009 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. # we have the common sources, plus some device-specific stuff
  15. sources := \
  16. AppOpsManager.cpp \
  17. Binder.cpp \
  18. BpBinder.cpp \
  19. BufferedTextOutput.cpp \
  20. Debug.cpp \
  21. IAppOpsCallback.cpp \
  22. IAppOpsService.cpp \
  23. IBatteryStats.cpp \
  24. IInterface.cpp \
  25. IMemory.cpp \
  26. IPCThreadState.cpp \
  27. IPermissionController.cpp \
  28. IProcessInfoService.cpp \
  29. ProcessInfoService.cpp \
  30. IServiceManager.cpp \
  31. MemoryDealer.cpp \
  32. MemoryBase.cpp \
  33. MemoryHeapBase.cpp \
  34. Parcel.cpp \
  35. PermissionCache.cpp \
  36. ProcessState.cpp \
  37. Static.cpp \
  38. TextOutput.cpp \
  39. ifeq ($(BOARD_NEEDS_MEMORYHEAPION),true)
  40. sources += \
  41. MemoryHeapIon.cpp
  42. endif
  43. LOCAL_PATH:= $(call my-dir)
  44. include $(CLEAR_VARS)
  45. ifeq ($(BOARD_NEEDS_MEMORYHEAPION),true)
  46. LOCAL_SHARED_LIBRARIES += libion_exynos
  47. LOCAL_CFLAGS += -DUSE_MEMORY_HEAP_ION
  48. ifeq ($(TARGET_SLSI_VARIANT),cm)
  49. SLSI_DIR := samsung_slsi-cm
  50. PLATFORM_DIR := $(TARGET_BOARD_PLATFORM)
  51. else
  52. SLSI_DIR := samsung_slsi
  53. PLATFORM_DIR := $(TARGET_BOARD_PLATFORM)-$(TARGET_SLSI_VARIANT)
  54. endif
  55. LOCAL_C_INCLUDES += hardware/$(SLSI_DIR)/$(PLATFORM_DIR)/include
  56. endif
  57. LOCAL_MODULE := libbinder
  58. LOCAL_SHARED_LIBRARIES += liblog libcutils libutils
  59. LOCAL_SRC_FILES := $(sources)
  60. ifneq ($(TARGET_USES_64_BIT_BINDER),true)
  61. ifneq ($(TARGET_IS_64_BIT),true)
  62. LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1
  63. endif
  64. endif
  65. LOCAL_CFLAGS += -Werror
  66. include $(BUILD_SHARED_LIBRARY)
  67. include $(CLEAR_VARS)
  68. ifeq ($(BOARD_NEEDS_MEMORYHEAPION),true)
  69. LOCAL_SHARED_LIBRARIES += libion_exynos
  70. LOCAL_CFLAGS += -DUSE_MEMORY_HEAP_ION
  71. ifeq ($(TARGET_SLSI_VARIANT),cm)
  72. SLSI_DIR := samsung_slsi-cm
  73. PLATFORM_DIR := $(TARGET_BOARD_PLATFORM)
  74. else
  75. SLSI_DIR := samsung_slsi
  76. PLATFORM_DIR := $(TARGET_BOARD_PLATFORM)-$(TARGET_SLSI_VARIANT)
  77. endif
  78. LOCAL_C_INCLUDES += hardware/$(SLSI_DIR)/$(PLATFORM_DIR)/include
  79. endif
  80. LOCAL_MODULE := libbinder
  81. LOCAL_STATIC_LIBRARIES += libutils
  82. LOCAL_SRC_FILES := $(sources)
  83. ifeq ($(BOARD_NEEDS_MEMORYHEAPPMEM),true)
  84. LOCAL_C_INCLUDES += \
  85. $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
  86. LOCAL_ADDITIONAL_DEPENDENCIES := \
  87. $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
  88. endif
  89. ifneq ($(TARGET_USES_64_BIT_BINDER),true)
  90. ifneq ($(TARGET_IS_64_BIT),true)
  91. LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1
  92. endif
  93. endif
  94. LOCAL_CFLAGS += -Werror
  95. include $(BUILD_STATIC_LIBRARY)