From 18b86e4fd2b0db14881ada83471926865766327d Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 5 Jan 2021 00:01:02 -0800 Subject: [PATCH] Update Android.mk for test binary Make Android Studio happy --- native/jni/Android.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/native/jni/Android.mk b/native/jni/Android.mk index fb063aef6..82dfde97e 100644 --- a/native/jni/Android.mk +++ b/native/jni/Android.mk @@ -140,15 +140,16 @@ include $(BUILD_EXECUTABLE) endif ifdef B_TEST +ifneq (,$(wildcard jni/test.cpp)) include $(CLEAR_VARS) LOCAL_MODULE := test LOCAL_STATIC_LIBRARIES := libutils LOCAL_C_INCLUDES := jni/include LOCAL_SRC_FILES := test.cpp -LOCAL_LDFLAGS := -static include $(BUILD_EXECUTABLE) +endif endif ifdef B_BB