diff options
author | Tianjie Xu <xunchang@google.com> | 2017-01-09 20:18:29 +0100 |
---|---|---|
committer | Tianjie Xu <xunchang@google.com> | 2017-01-19 04:37:06 +0100 |
commit | d17a6885253da909e376ba5ca5084f5281f3557c (patch) | |
tree | 8603c5d1df466bcec6dda5c88ad8cd3bc66cad6d /tests/Android.mk | |
parent | Merge "minui: Export minui/minui.h." (diff) | |
download | android_bootable_recovery-d17a6885253da909e376ba5ca5084f5281f3557c.tar android_bootable_recovery-d17a6885253da909e376ba5ca5084f5281f3557c.tar.gz android_bootable_recovery-d17a6885253da909e376ba5ca5084f5281f3557c.tar.bz2 android_bootable_recovery-d17a6885253da909e376ba5ca5084f5281f3557c.tar.lz android_bootable_recovery-d17a6885253da909e376ba5ca5084f5281f3557c.tar.xz android_bootable_recovery-d17a6885253da909e376ba5ca5084f5281f3557c.tar.zst android_bootable_recovery-d17a6885253da909e376ba5ca5084f5281f3557c.zip |
Diffstat (limited to '')
-rw-r--r-- | tests/Android.mk | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/tests/Android.mk b/tests/Android.mk index 1203817a2..1dbd2b614 100644 --- a/tests/Android.mk +++ b/tests/Android.mk @@ -49,10 +49,34 @@ LOCAL_CLANG := true LOCAL_CFLAGS := -Werror LOCAL_MODULE := recovery_manual_test LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk -LOCAL_STATIC_LIBRARIES := libbase +LOCAL_STATIC_LIBRARIES := \ + libminui \ + libbase LOCAL_SRC_FILES := manual/recovery_test.cpp -LOCAL_SHARED_LIBRARIES := liblog +LOCAL_SHARED_LIBRARIES := \ + liblog \ + libpng + +resource_files := $(call find-files-in-subdirs, bootable/recovery, \ + "*_text.png", \ + res-mdpi/images \ + res-hdpi/images \ + res-xhdpi/images \ + res-xxhdpi/images \ + res-xxxhdpi/images \ + ) + +# The resource image files that will go to $OUT/data/nativetest/recovery. +testimage_out_path := $(TARGET_OUT_DATA)/nativetest/recovery +GEN := $(addprefix $(testimage_out_path)/, $(resource_files)) + +$(GEN): PRIVATE_PATH := $(LOCAL_PATH) +$(GEN): PRIVATE_CUSTOM_TOOL = cp $< $@ +$(GEN): $(testimage_out_path)/% : bootable/recovery/% + $(transform-generated-source) +LOCAL_GENERATED_SOURCES += $(GEN) + include $(BUILD_NATIVE_TEST) # Component tests |