Update Android.mk

This commit is contained in:
2025-09-04 02:10:45 -07:00
parent 4b543c15de
commit d175f00470

View File

@@ -1,4 +1,5 @@
LOCAL_PATH := $(call my-dir) LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS) include $(CLEAR_VARS)
# Determine the target architecture directory and pattern # Determine the target architecture directory and pattern
ifeq ($(TARGET_ARCH),arm64) ifeq ($(TARGET_ARCH),arm64)
@@ -18,6 +19,9 @@ ifneq ($(APK_PATTERN),)
# Find the APK file # Find the APK file
APK_FILE := $(wildcard $(LOCAL_PATH)/prebuilt/$(ARCH_DIR)/$(APK_PATTERN)) APK_FILE := $(wildcard $(LOCAL_PATH)/prebuilt/$(ARCH_DIR)/$(APK_PATTERN))
# Take the first match only
APK_FILE := $(firstword $(APK_FILE_LIST))
ifeq ($(APK_FILE),) ifeq ($(APK_FILE),)
$(warning No VivladiBrowser APK found for architecture $(TARGET_ARCH)) $(warning No VivladiBrowser APK found for architecture $(TARGET_ARCH))
$(warning Directory: $(LOCAL_PATH)/prebuilt/$(ARCH_DIR)/) $(warning Directory: $(LOCAL_PATH)/prebuilt/$(ARCH_DIR)/)