Delete Android.mk
This commit is contained in:
51
Android.mk
51
Android.mk
@@ -1,51 +0,0 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
# Determine the target architecture directory and pattern
|
||||
ifeq ($(TARGET_ARCH),arm64)
|
||||
ARCH_DIR := arm64
|
||||
APK_PATTERN := *arm64*.apk
|
||||
else ifeq ($(TARGET_ARCH),arm)
|
||||
ARCH_DIR := armhf
|
||||
APK_PATTERN := *armeabi*.apk
|
||||
else ifeq ($(TARGET_ARCH),x86_64)
|
||||
ARCH_DIR := x86_64
|
||||
APK_PATTERN := *x86-64*.apk
|
||||
else
|
||||
$(warning Unsupported architecture $(TARGET_ARCH) for VivladiBrowser)
|
||||
APK_PATTERN :=
|
||||
endif
|
||||
|
||||
ifneq ($(APK_PATTERN),)
|
||||
APK_FILE := $(firstword $(wildcard $(LOCAL_PATH)/prebuilt/$(ARCH_DIR)/$(APK_PATTERN)))
|
||||
|
||||
ifeq ($(APK_FILE),)
|
||||
$(warning No VivladiBrowser APK found for architecture $(TARGET_ARCH))
|
||||
$(warning Directory: $(LOCAL_PATH)/prebuilt/$(ARCH_DIR)/)
|
||||
$(warning Pattern: $(APK_PATTERN))
|
||||
else
|
||||
LOCAL_MODULE := VivladiBrowser
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := APPS
|
||||
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
|
||||
LOCAL_SRC_FILES := prebuilt/$(ARCH_DIR)/$(notdir $(APK_FILE))
|
||||
LOCAL_CERTIFICATE := PRESIGNED
|
||||
|
||||
# Override stock browsers
|
||||
LOCAL_OVERRIDES_PACKAGES := Browser Browser2
|
||||
|
||||
# Match manifest optional libraries
|
||||
LOCAL_OPTIONAL_USES_LIBRARIES := \
|
||||
android.car \
|
||||
androidx.window.extensions \
|
||||
com.android.extensions.xr \
|
||||
android.ext.adservices \
|
||||
androidx.window.sidecar
|
||||
|
||||
# No preopt to avoid build-time dex issues
|
||||
LOCAL_DEX_PREOPT := false
|
||||
|
||||
include $(BUILD_PREBUILT)
|
||||
endif
|
||||
endif
|
Reference in New Issue
Block a user