2018-09-27 03:30:16 -04:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
2022-01-31 02:09:08 -08:00
|
|
|
# Magisk project-wide common code
|
2021-09-07 19:35:28 -07:00
|
|
|
|
2022-01-31 02:09:08 -08:00
|
|
|
include $(CLEAR_VARS)
|
2022-05-12 02:03:42 -07:00
|
|
|
LOCAL_MODULE:= libbase
|
2022-01-31 02:09:08 -08:00
|
|
|
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-30 22:11:24 -08:00
|
|
|
new.cpp \
|
|
|
|
files.cpp \
|
|
|
|
misc.cpp \
|
|
|
|
selinux.cpp \
|
|
|
|
logging.cpp \
|
|
|
|
xwrap.cpp \
|
|
|
|
stream.cpp
|
2021-10-20 03:17:42 -07:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
2022-05-12 02:03:42 -07:00
|
|
|
# Workaround "hacky" libc.a missing symbols
|
|
|
|
# To build Magisk with vanilla NDK, remove all usage of libcompat
|
2022-01-31 02:09:08 -08:00
|
|
|
|
2021-10-20 03:17:42 -07:00
|
|
|
include $(CLEAR_VARS)
|
2022-05-12 02:03:42 -07:00
|
|
|
LOCAL_MODULE:= libcompat
|
2022-01-31 02:09:08 -08:00
|
|
|
LOCAL_SRC_FILES := compat/compat.cpp
|
2018-09-27 03:30:16 -04:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|