2022-06-30 21:50:21 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
###########################
|
|
|
|
# Rust compilation outputs
|
|
|
|
###########################
|
|
|
|
|
2022-08-27 12:06:28 +00:00
|
|
|
LIBRARY_PATH = ../out/$(TARGET_ARCH_ABI)/libmagisk-rs.a
|
|
|
|
ifneq (,$(wildcard $(LOCAL_PATH)/$(LIBRARY_PATH)))
|
2022-06-30 21:50:21 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := magisk-rs
|
2022-08-27 12:06:28 +00:00
|
|
|
LOCAL_SRC_FILES := $(LIBRARY_PATH)
|
2022-06-30 21:50:21 +00:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
2022-07-24 12:39:14 +00:00
|
|
|
endif
|
2022-06-30 21:50:21 +00:00
|
|
|
|
2022-08-27 12:06:28 +00:00
|
|
|
LIBRARY_PATH = ../out/$(TARGET_ARCH_ABI)/libmagiskboot-rs.a
|
|
|
|
ifneq (,$(wildcard $(LOCAL_PATH)/$(LIBRARY_PATH)))
|
2022-06-30 21:50:21 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := boot-rs
|
2022-08-27 12:06:28 +00:00
|
|
|
LOCAL_SRC_FILES := $(LIBRARY_PATH)
|
2022-06-30 21:50:21 +00:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
2022-07-24 12:39:14 +00:00
|
|
|
endif
|
2022-06-30 21:50:21 +00:00
|
|
|
|
2022-08-27 12:06:28 +00:00
|
|
|
LIBRARY_PATH = ../out/$(TARGET_ARCH_ABI)/libmagiskinit-rs.a
|
|
|
|
ifneq (,$(wildcard $(LOCAL_PATH)/$(LIBRARY_PATH)))
|
2022-06-30 21:50:21 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := init-rs
|
2022-08-27 12:06:28 +00:00
|
|
|
LOCAL_SRC_FILES := $(LIBRARY_PATH)
|
2022-06-30 21:50:21 +00:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
2022-07-24 12:39:14 +00:00
|
|
|
endif
|
2022-06-30 21:50:21 +00:00
|
|
|
|
2022-08-27 12:06:28 +00:00
|
|
|
LIBRARY_PATH = ../out/$(TARGET_ARCH_ABI)/libmagiskpolicy-rs.a
|
|
|
|
ifneq (,$(wildcard $(LOCAL_PATH)/$(LIBRARY_PATH)))
|
2022-06-30 21:50:21 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := policy-rs
|
2022-08-27 12:06:28 +00:00
|
|
|
LOCAL_SRC_FILES := $(LIBRARY_PATH)
|
2022-06-30 21:50:21 +00:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
2022-07-24 12:39:14 +00:00
|
|
|
endif
|