mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 02:25:28 +00:00
38 lines
1.0 KiB
Makefile
38 lines
1.0 KiB
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
###########################
|
|
# Rust compilation outputs
|
|
###########################
|
|
|
|
LIBRARY_PATH = ../out/$(TARGET_ARCH_ABI)/libmagisk-rs.a
|
|
ifneq (,$(wildcard $(LOCAL_PATH)/$(LIBRARY_PATH)))
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := magisk-rs
|
|
LOCAL_SRC_FILES := $(LIBRARY_PATH)
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
endif
|
|
|
|
LIBRARY_PATH = ../out/$(TARGET_ARCH_ABI)/libmagiskboot-rs.a
|
|
ifneq (,$(wildcard $(LOCAL_PATH)/$(LIBRARY_PATH)))
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := boot-rs
|
|
LOCAL_SRC_FILES := $(LIBRARY_PATH)
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
endif
|
|
|
|
LIBRARY_PATH = ../out/$(TARGET_ARCH_ABI)/libmagiskinit-rs.a
|
|
ifneq (,$(wildcard $(LOCAL_PATH)/$(LIBRARY_PATH)))
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := init-rs
|
|
LOCAL_SRC_FILES := $(LIBRARY_PATH)
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
endif
|
|
|
|
LIBRARY_PATH = ../out/$(TARGET_ARCH_ABI)/libmagiskpolicy-rs.a
|
|
ifneq (,$(wildcard $(LOCAL_PATH)/$(LIBRARY_PATH)))
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := policy-rs
|
|
LOCAL_SRC_FILES := $(LIBRARY_PATH)
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
endif
|