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)
|
|
|
|
|
2016-08-08 22:29:22 +02:00
|
|
|
HIDL := $(HOST_OUT_EXECUTABLES)/hidl-gen$(HOST_EXECUTABLE_SUFFIX)
|
|
|
|
|
2016-08-10 16:39:17 +02:00
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
# Build types.hal
|
2016-08-10 16:39:17 +02:00
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
GEN := $(intermediates)/android/hardware/nfc/1.0/types.cpp
|
2016-08-08 22:29:22 +02:00
|
|
|
$(GEN): $(HIDL)
|
2016-08-10 16:39:17 +02:00
|
|
|
$(GEN): PRIVATE_HIDL := $(HIDL)
|
2016-09-07 21:45:02 +02:00
|
|
|
$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/types.hal
|
2016-07-30 00:05:03 +02:00
|
|
|
$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates)
|
2016-08-10 16:39:17 +02:00
|
|
|
$(GEN): PRIVATE_CUSTOM_TOOL = \
|
|
|
|
$(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \
|
2016-08-31 18:10:55 +02:00
|
|
|
-Lc++ -randroid.hardware:hardware/interfaces \
|
2016-09-07 21:45:02 +02:00
|
|
|
android.hardware.nfc@1.0::types
|
2016-08-10 16:39:17 +02:00
|
|
|
|
2016-09-07 21:45:02 +02:00
|
|
|
$(GEN): $(LOCAL_PATH)/types.hal
|
2016-08-10 16:39:17 +02:00
|
|
|
$(transform-generated-source)
|
|
|
|
LOCAL_GENERATED_SOURCES += $(GEN)
|
2016-07-30 00:05:03 +02:00
|
|
|
|
2016-08-10 16:39:17 +02:00
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
# Build INfc.hal
|
2016-08-10 16:39:17 +02:00
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
GEN := $(intermediates)/android/hardware/nfc/1.0/NfcAll.cpp
|
2016-08-10 16:39:17 +02:00
|
|
|
$(GEN): $(HIDL)
|
|
|
|
$(GEN): PRIVATE_HIDL := $(HIDL)
|
2016-09-07 21:45:02 +02:00
|
|
|
$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/INfc.hal
|
|
|
|
$(GEN): PRIVATE_DEPS += $(LOCAL_PATH)/INfcClientCallback.hal
|
|
|
|
$(GEN): $(LOCAL_PATH)/INfcClientCallback.hal
|
|
|
|
$(GEN): PRIVATE_DEPS += $(LOCAL_PATH)/types.hal
|
|
|
|
$(GEN): $(LOCAL_PATH)/types.hal
|
2016-08-10 16:39:17 +02:00
|
|
|
$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates)
|
2016-07-30 00:05:03 +02:00
|
|
|
$(GEN): PRIVATE_CUSTOM_TOOL = \
|
2016-08-10 16:39:17 +02:00
|
|
|
$(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \
|
2016-08-31 18:10:55 +02:00
|
|
|
-Lc++ -randroid.hardware:hardware/interfaces \
|
2016-09-07 21:45:02 +02:00
|
|
|
android.hardware.nfc@1.0::INfc
|
2016-07-30 00:05:03 +02:00
|
|
|
|
2016-09-07 21:45:02 +02:00
|
|
|
$(GEN): $(LOCAL_PATH)/INfc.hal
|
2016-07-30 00:05:03 +02:00
|
|
|
$(transform-generated-source)
|
2016-08-10 16:39:17 +02:00
|
|
|
LOCAL_GENERATED_SOURCES += $(GEN)
|
2016-07-30 00:05:03 +02:00
|
|
|
|
2016-08-10 16:39:17 +02:00
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
# Build INfcClientCallback.hal
|
2016-08-10 16:39:17 +02:00
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
GEN := $(intermediates)/android/hardware/nfc/1.0/NfcClientCallbackAll.cpp
|
2016-08-10 16:39:17 +02:00
|
|
|
$(GEN): $(HIDL)
|
|
|
|
$(GEN): PRIVATE_HIDL := $(HIDL)
|
2016-09-07 21:45:02 +02:00
|
|
|
$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/INfcClientCallback.hal
|
|
|
|
$(GEN): PRIVATE_DEPS += $(LOCAL_PATH)/types.hal
|
|
|
|
$(GEN): $(LOCAL_PATH)/types.hal
|
2016-08-10 16:39:17 +02:00
|
|
|
$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates)
|
|
|
|
$(GEN): PRIVATE_CUSTOM_TOOL = \
|
|
|
|
$(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \
|
2016-08-31 18:10:55 +02:00
|
|
|
-Lc++ -randroid.hardware:hardware/interfaces \
|
2016-09-07 21:45:02 +02:00
|
|
|
android.hardware.nfc@1.0::INfcClientCallback
|
2016-08-10 16:39:17 +02:00
|
|
|
|
2016-09-07 21:45:02 +02:00
|
|
|
$(GEN): $(LOCAL_PATH)/INfcClientCallback.hal
|
2016-08-10 16:39:17 +02:00
|
|
|
$(transform-generated-source)
|
2016-07-30 00:05:03 +02:00
|
|
|
LOCAL_GENERATED_SOURCES += $(GEN)
|
|
|
|
|
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(intermediates)
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
2016-08-19 14:06:56 +02:00
|
|
|
libhidl \
|
2016-07-30 00:05:03 +02:00
|
|
|
libhwbinder \
|
|
|
|
libutils \
|
2016-09-13 02:54:52 +02:00
|
|
|
libcutils \
|
2016-07-30 00:05:03 +02:00
|
|
|
|
2016-08-27 03:55:21 +02:00
|
|
|
LOCAL_MULTILIB := both
|
2016-07-30 00:05:03 +02:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2016-08-31 18:10:55 +02:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := android.hardware.nfc@1.0-java
|
|
|
|
LOCAL_MODULE_CLASS := JAVA_LIBRARIES
|
|
|
|
|
|
|
|
intermediates := $(local-generated-sources-dir)
|
|
|
|
|
|
|
|
HIDL := $(HOST_OUT_EXECUTABLES)/hidl-gen$(HOST_EXECUTABLE_SUFFIX)
|
|
|
|
|
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
# Build types.hal (nfc_data_t)
|
2016-08-31 18:10:55 +02:00
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
GEN := $(intermediates)/android/hardware/nfc/1.0/nfc_data_t.java
|
2016-08-31 18:10:55 +02:00
|
|
|
$(GEN): $(HIDL)
|
|
|
|
$(GEN): PRIVATE_HIDL := $(HIDL)
|
2016-09-07 21:45:02 +02:00
|
|
|
$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/types.hal
|
2016-08-31 18:10:55 +02:00
|
|
|
$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates)
|
|
|
|
$(GEN): PRIVATE_CUSTOM_TOOL = \
|
|
|
|
$(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \
|
|
|
|
-Ljava -randroid.hardware:hardware/interfaces \
|
2016-09-07 21:45:02 +02:00
|
|
|
android.hardware.nfc@1.0::types.nfc_data_t
|
2016-08-31 18:10:55 +02:00
|
|
|
|
2016-09-07 21:45:02 +02:00
|
|
|
$(GEN): $(LOCAL_PATH)/types.hal
|
2016-08-31 18:10:55 +02:00
|
|
|
$(transform-generated-source)
|
|
|
|
LOCAL_GENERATED_SOURCES += $(GEN)
|
|
|
|
|
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
# Build types.hal (nfc_event_t)
|
2016-08-31 18:10:55 +02:00
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
GEN := $(intermediates)/android/hardware/nfc/1.0/nfc_event_t.java
|
2016-08-31 18:10:55 +02:00
|
|
|
$(GEN): $(HIDL)
|
|
|
|
$(GEN): PRIVATE_HIDL := $(HIDL)
|
2016-09-07 21:45:02 +02:00
|
|
|
$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/types.hal
|
2016-08-31 18:10:55 +02:00
|
|
|
$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates)
|
|
|
|
$(GEN): PRIVATE_CUSTOM_TOOL = \
|
|
|
|
$(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \
|
|
|
|
-Ljava -randroid.hardware:hardware/interfaces \
|
2016-09-07 21:45:02 +02:00
|
|
|
android.hardware.nfc@1.0::types.nfc_event_t
|
2016-08-31 18:10:55 +02:00
|
|
|
|
2016-09-07 21:45:02 +02:00
|
|
|
$(GEN): $(LOCAL_PATH)/types.hal
|
2016-08-31 18:10:55 +02:00
|
|
|
$(transform-generated-source)
|
|
|
|
LOCAL_GENERATED_SOURCES += $(GEN)
|
|
|
|
|
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
# Build types.hal (nfc_status_t)
|
2016-08-31 18:10:55 +02:00
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
GEN := $(intermediates)/android/hardware/nfc/1.0/nfc_status_t.java
|
2016-08-31 18:10:55 +02:00
|
|
|
$(GEN): $(HIDL)
|
|
|
|
$(GEN): PRIVATE_HIDL := $(HIDL)
|
|
|
|
$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/types.hal
|
|
|
|
$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates)
|
|
|
|
$(GEN): PRIVATE_CUSTOM_TOOL = \
|
|
|
|
$(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \
|
|
|
|
-Ljava -randroid.hardware:hardware/interfaces \
|
2016-09-07 21:45:02 +02:00
|
|
|
android.hardware.nfc@1.0::types.nfc_status_t
|
2016-08-31 18:10:55 +02:00
|
|
|
|
|
|
|
$(GEN): $(LOCAL_PATH)/types.hal
|
|
|
|
$(transform-generated-source)
|
|
|
|
LOCAL_GENERATED_SOURCES += $(GEN)
|
|
|
|
|
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
# Build INfc.hal
|
2016-08-31 18:10:55 +02:00
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
GEN := $(intermediates)/android/hardware/nfc/1.0/INfc.java
|
2016-08-31 18:10:55 +02:00
|
|
|
$(GEN): $(HIDL)
|
|
|
|
$(GEN): PRIVATE_HIDL := $(HIDL)
|
2016-09-07 21:45:02 +02:00
|
|
|
$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/INfc.hal
|
|
|
|
$(GEN): PRIVATE_DEPS += $(LOCAL_PATH)/INfcClientCallback.hal
|
|
|
|
$(GEN): $(LOCAL_PATH)/INfcClientCallback.hal
|
|
|
|
$(GEN): PRIVATE_DEPS += $(LOCAL_PATH)/types.hal
|
|
|
|
$(GEN): $(LOCAL_PATH)/types.hal
|
2016-08-31 18:10:55 +02:00
|
|
|
$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates)
|
|
|
|
$(GEN): PRIVATE_CUSTOM_TOOL = \
|
|
|
|
$(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \
|
|
|
|
-Ljava -randroid.hardware:hardware/interfaces \
|
2016-09-07 21:45:02 +02:00
|
|
|
android.hardware.nfc@1.0::INfc
|
2016-08-31 18:10:55 +02:00
|
|
|
|
2016-09-07 21:45:02 +02:00
|
|
|
$(GEN): $(LOCAL_PATH)/INfc.hal
|
2016-08-31 18:10:55 +02:00
|
|
|
$(transform-generated-source)
|
|
|
|
LOCAL_GENERATED_SOURCES += $(GEN)
|
|
|
|
|
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
# Build INfcClientCallback.hal
|
2016-08-31 18:10:55 +02:00
|
|
|
#
|
2016-09-07 21:45:02 +02:00
|
|
|
GEN := $(intermediates)/android/hardware/nfc/1.0/INfcClientCallback.java
|
2016-08-31 18:10:55 +02:00
|
|
|
$(GEN): $(HIDL)
|
|
|
|
$(GEN): PRIVATE_HIDL := $(HIDL)
|
2016-09-07 21:45:02 +02:00
|
|
|
$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/INfcClientCallback.hal
|
|
|
|
$(GEN): PRIVATE_DEPS += $(LOCAL_PATH)/types.hal
|
|
|
|
$(GEN): $(LOCAL_PATH)/types.hal
|
2016-08-31 18:10:55 +02:00
|
|
|
$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates)
|
|
|
|
$(GEN): PRIVATE_CUSTOM_TOOL = \
|
|
|
|
$(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \
|
|
|
|
-Ljava -randroid.hardware:hardware/interfaces \
|
2016-09-07 21:45:02 +02:00
|
|
|
android.hardware.nfc@1.0::INfcClientCallback
|
2016-08-31 18:10:55 +02:00
|
|
|
|
2016-09-07 21:45:02 +02:00
|
|
|
$(GEN): $(LOCAL_PATH)/INfcClientCallback.hal
|
2016-08-31 18:10:55 +02:00
|
|
|
$(transform-generated-source)
|
|
|
|
LOCAL_GENERATED_SOURCES += $(GEN)
|
|
|
|
include $(BUILD_JAVA_LIBRARY)
|
2016-09-23 01:23:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|