blob: 84474ccbafdc5a80a4fd0aaf0f104b758c7c0048 [file] [log] [blame]
Andreas Huber401cd162016-08-26 10:40:30 -07001LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4LOCAL_SRC_FILES := $(call all-subdir-java-files)
5LOCAL_MODULE := hidl_test_java_lib
6LOCAL_MODULE_STEM := hidl_test_java
7LOCAL_MODULE_CLASS := JAVA_LIBRARIES
8
9intermediates := $(local-generated-sources-dir)
10
11HIDL := $(HOST_OUT_EXECUTABLES)/hidl-gen$(HOST_EXECUTABLE_SUFFIX)
12
13GEN := $(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
24LOCAL_GENERATED_SOURCES += $(GEN)
25
26include $(BUILD_JAVA_LIBRARY)
27
28################################################################################
29
30include $(CLEAR_VARS)
31LOCAL_MODULE := hidl_test_java
32LOCAL_MODULE_CLASS := EXECUTABLES
33LOCAL_SRC_FILES := hidl_test_java
34LOCAL_REQUIRED_MODULES := hidl_test_java_lib
35include $(BUILD_PREBUILT)
36
37################################################################################
38
39include $(CLEAR_VARS)
40
41LOCAL_MODULE := hidl_test_java_native
42
43LOCAL_SRC_FILES := hidl_test_java_native.cpp
44
45LOCAL_SHARED_LIBRARIES := \
46 libbase \
47 libhidl \
48 libhwbinder \
49 libutils \
50 android.hardware.tests.baz@1.0 \
51
52LOCAL_STATIC_LIBRARIES := \
53 libgtest
54
55include $(BUILD_EXECUTABLE)