2018-09-27 07:30:16 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
2022-01-31 10:09:08 +00:00
|
|
|
# Magisk project-wide common code
|
2021-09-08 02:35:28 +00:00
|
|
|
|
2022-01-31 10:09:08 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE:= libutils
|
|
|
|
LOCAL_C_INCLUDES := jni/include $(LOCAL_PATH)/include out/generated
|
|
|
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)
|
|
|
|
LOCAL_EXPORT_STATIC_LIBRARIES := libcxx
|
|
|
|
LOCAL_STATIC_LIBRARIES := libcxx
|
|
|
|
LOCAL_SRC_FILES := \
|
2020-12-31 06:11:24 +00:00
|
|
|
new.cpp \
|
|
|
|
files.cpp \
|
|
|
|
misc.cpp \
|
|
|
|
selinux.cpp \
|
|
|
|
logging.cpp \
|
|
|
|
xwrap.cpp \
|
|
|
|
stream.cpp
|
2021-10-20 10:17:42 +00:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2022-01-31 10:09:08 +00:00
|
|
|
# libutils + "hacky" libc.a missing symbols
|
|
|
|
|
|
|
|
# To build Magisk with vanilla NDK, simply
|
|
|
|
# remove compat.cpp from sources, or replace
|
|
|
|
# all usage of libutilx to libutils
|
|
|
|
|
2021-10-20 10:17:42 +00:00
|
|
|
include $(CLEAR_VARS)
|
2022-01-31 10:09:08 +00:00
|
|
|
LOCAL_MODULE:= libutilx
|
|
|
|
LOCAL_EXPORT_STATIC_LIBRARIES := libutils
|
|
|
|
LOCAL_STATIC_LIBRARIES := libutils
|
|
|
|
LOCAL_SRC_FILES := compat/compat.cpp
|
2018-09-27 07:30:16 +00:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|