2022-06-30 21:50:21 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
###########################
|
|
|
|
# Rust compilation outputs
|
|
|
|
###########################
|
|
|
|
|
2022-07-24 12:39:14 +00:00
|
|
|
ifdef B_MAGISK
|
2022-06-30 21:50:21 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := magisk-rs
|
|
|
|
LOCAL_SRC_FILES := ../out/$(TARGET_ARCH_ABI)/libmagisk-rs.a
|
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
2022-07-24 12:39:14 +00:00
|
|
|
endif
|
2022-06-30 21:50:21 +00:00
|
|
|
|
2022-07-24 12:39:14 +00:00
|
|
|
ifdef B_BOOT
|
2022-06-30 21:50:21 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := boot-rs
|
|
|
|
LOCAL_SRC_FILES := ../out/$(TARGET_ARCH_ABI)/libmagiskboot-rs.a
|
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
2022-07-24 12:39:14 +00:00
|
|
|
endif
|
2022-06-30 21:50:21 +00:00
|
|
|
|
2022-07-24 12:39:14 +00:00
|
|
|
ifdef B_INIT
|
2022-06-30 21:50:21 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := init-rs
|
|
|
|
LOCAL_SRC_FILES := ../out/$(TARGET_ARCH_ABI)/libmagiskinit-rs.a
|
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
2022-07-24 12:39:14 +00:00
|
|
|
endif
|
2022-06-30 21:50:21 +00:00
|
|
|
|
2022-07-24 12:39:14 +00:00
|
|
|
ifdef B_POLICY
|
2022-06-30 21:50:21 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := policy-rs
|
|
|
|
LOCAL_SRC_FILES := ../out/$(TARGET_ARCH_ABI)/libmagiskpolicy-rs.a
|
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
2022-07-24 12:39:14 +00:00
|
|
|
endif
|