Andreas Huber | 401cd16 | 2016-08-26 10:40:30 -0700 | [diff] [blame^] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | LOCAL_SRC_FILES := $(call all-subdir-java-files) |
| 5 | LOCAL_MODULE := hidl_test_java_lib |
| 6 | LOCAL_MODULE_STEM := hidl_test_java |
| 7 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 8 | |
| 9 | intermediates := $(local-generated-sources-dir) |
| 10 | |
| 11 | HIDL := $(HOST_OUT_EXECUTABLES)/hidl-gen$(HOST_EXECUTABLE_SUFFIX) |
| 12 | |
| 13 | GEN := $(intermediates)/android/hardware/tests/baz/1.0/IBaz.java \ |
| 14 | $(intermediates)/android/hardware/tests/baz/1.0/IBazCallback.java \ |
| 15 | $(intermediates)/android/hardware/tests/baz/1.0/IBase.java \ |
| 16 | |
| 17 | $(GEN): $(HIDL) |
| 18 | $(GEN): PRIVATE_HIDL := $(HIDL) |
| 19 | $(GEN): PRIVATE_OUTPUT_DIR := $(intermediates) |
| 20 | $(GEN): PRIVATE_CUSTOM_TOOL = $(PRIVATE_HIDL) -Ljava -randroid.hardware:hardware/interfaces -o $(PRIVATE_OUTPUT_DIR) android.hardware.tests.baz@1.0 |
| 21 | $(GEN): |
| 22 | $(transform-generated-source) |
| 23 | |
| 24 | LOCAL_GENERATED_SOURCES += $(GEN) |
| 25 | |
| 26 | include $(BUILD_JAVA_LIBRARY) |
| 27 | |
| 28 | ################################################################################ |
| 29 | |
| 30 | include $(CLEAR_VARS) |
| 31 | LOCAL_MODULE := hidl_test_java |
| 32 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 33 | LOCAL_SRC_FILES := hidl_test_java |
| 34 | LOCAL_REQUIRED_MODULES := hidl_test_java_lib |
| 35 | include $(BUILD_PREBUILT) |
| 36 | |
| 37 | ################################################################################ |
| 38 | |
| 39 | include $(CLEAR_VARS) |
| 40 | |
| 41 | LOCAL_MODULE := hidl_test_java_native |
| 42 | |
| 43 | LOCAL_SRC_FILES := hidl_test_java_native.cpp |
| 44 | |
| 45 | LOCAL_SHARED_LIBRARIES := \ |
| 46 | libbase \ |
| 47 | libhidl \ |
| 48 | libhwbinder \ |
| 49 | libutils \ |
| 50 | android.hardware.tests.baz@1.0 \ |
| 51 | |
| 52 | LOCAL_STATIC_LIBRARIES := \ |
| 53 | libgtest |
| 54 | |
| 55 | include $(BUILD_EXECUTABLE) |