summaryrefslogtreecommitdiffstats
path: root/tests/Android.mk
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2017-04-28 21:43:09 +0200
committerDees Troy <dees_troy@teamw.in>2017-06-24 14:32:07 +0200
commitc86b6d43129790fbd31e4f124cb6d1bfafce0373 (patch)
tree1ae1d1d8529195f87b0db006e44a4621c7645410 /tests/Android.mk
parentFix incorrect 'unlink' return value check (diff)
downloadandroid_bootable_recovery-c86b6d43129790fbd31e4f124cb6d1bfafce0373.tar
android_bootable_recovery-c86b6d43129790fbd31e4f124cb6d1bfafce0373.tar.gz
android_bootable_recovery-c86b6d43129790fbd31e4f124cb6d1bfafce0373.tar.bz2
android_bootable_recovery-c86b6d43129790fbd31e4f124cb6d1bfafce0373.tar.lz
android_bootable_recovery-c86b6d43129790fbd31e4f124cb6d1bfafce0373.tar.xz
android_bootable_recovery-c86b6d43129790fbd31e4f124cb6d1bfafce0373.tar.zst
android_bootable_recovery-c86b6d43129790fbd31e4f124cb6d1bfafce0373.zip
Diffstat (limited to '')
-rw-r--r--tests/Android.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/Android.mk b/tests/Android.mk
index a66991b21..4fc92fa95 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -16,6 +16,12 @@
LOCAL_PATH := $(call my-dir)
+ifdef project-path-for
+ RECOVERY_PATH := $(call project-path-for,recovery)
+else
+ RECOVERY_PATH := bootable/recovery
+endif
+
# Unit tests
include $(CLEAR_VARS)
LOCAL_CLANG := true
@@ -28,7 +34,7 @@ LOCAL_STATIC_LIBRARIES := \
LOCAL_SRC_FILES := unit/asn1_decoder_test.cpp
LOCAL_SRC_FILES += unit/recovery_test.cpp
LOCAL_SRC_FILES += unit/locale_test.cpp
-LOCAL_C_INCLUDES := bootable/recovery
+LOCAL_C_INCLUDES := $(RECOVERY_PATH)
LOCAL_SHARED_LIBRARIES := liblog
include $(BUILD_NATIVE_TEST)
@@ -38,7 +44,7 @@ LOCAL_CLANG := true
LOCAL_CFLAGS += -Wno-unused-parameter
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_MODULE := recovery_component_test
-LOCAL_C_INCLUDES := bootable/recovery
+LOCAL_C_INCLUDES := $(RECOVERY_PATH)
LOCAL_SRC_FILES := \
component/verifier_test.cpp \
component/applypatch_test.cpp