From c86b6d43129790fbd31e4f124cb6d1bfafce0373 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Fri, 28 Apr 2017 22:43:09 +0300 Subject: Complete support for project pathmap * Use project pathmap when available for LOCAL_C_INCLUDES Change-Id: Iddc7cc8509d966307c4a490c9d6c15d761dbb3b4 --- tests/Android.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3