platform_hardware_interfaces/nfc/1.0/Android.mk
Iliyan Malchev 6cf9db2362 fix build
Add hidl-gen as a dependency on HAL modules, and set the -r path
properly in the absence of $TOP being defined.

Proper fix will include auto-generating the makefile correctly form
hidl-gen.

Change-Id: I9dbe27b80c6c9ab4be9f88bf50496bdfd7cee423
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-08-08 09:56:20 -07:00

32 lines
874 B
Makefile

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := android.hardware.nfc@1.0
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
intermediates := $(local-generated-sources-dir)
GEN := \
$(intermediates)/android/hardware/nfc/1.0/types.cpp \
$(intermediates)/android/hardware/nfc/1.0/NfcAll.cpp \
$(intermediates)/android/hardware/nfc/1.0/NfcClientCallbackAll.cpp \
$(GEN): hidl-gen
$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates)
$(GEN): PRIVATE_CUSTOM_TOOL = \
hidl-gen -o $(PRIVATE_OUTPUT_DIR) -r android.hardware:hardware/interfaces android.hardware.nfc@1.0
$(GEN): $(LOCAL_PATH)/types.hal $(LOCAL_PATH)/INfc.hal $(LOCAL_PATH)/INfcClientCallback.hal
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN)
LOCAL_EXPORT_C_INCLUDE_DIRS := $(intermediates)
LOCAL_SHARED_LIBRARIES := \
libhwbinder \
libutils \
include $(BUILD_SHARED_LIBRARY)