2016-07-30 00:05:03 +02:00
|
|
|
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 \
|
|
|
|
|
2016-08-08 18:56:14 +02:00
|
|
|
$(GEN): hidl-gen
|
|
|
|
|
2016-07-30 00:05:03 +02:00
|
|
|
$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates)
|
|
|
|
|
|
|
|
$(GEN): PRIVATE_CUSTOM_TOOL = \
|
2016-08-08 18:56:14 +02:00
|
|
|
hidl-gen -o $(PRIVATE_OUTPUT_DIR) -r android.hardware:hardware/interfaces android.hardware.nfc@1.0
|
2016-07-30 00:05:03 +02:00
|
|
|
|
|
|
|
$(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)
|