2016-12-30 18:44:24 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2017-02-27 21:43:49 +00:00
|
|
|
LOCAL_MODULE := magiskboot
|
2017-03-04 13:18:24 +00:00
|
|
|
LOCAL_STATIC_LIBRARIES := libz liblzma liblz4 libbz2
|
2017-03-01 20:12:47 +00:00
|
|
|
LOCAL_C_INCLUDES := \
|
2017-07-30 10:15:00 +00:00
|
|
|
$(LOCAL_PATH) \
|
|
|
|
jni/include \
|
2017-03-04 13:16:59 +00:00
|
|
|
jni/ndk-compression/zlib/ \
|
2017-03-01 20:12:47 +00:00
|
|
|
jni/ndk-compression/xz/src/liblzma/api/ \
|
2017-03-01 21:23:31 +00:00
|
|
|
jni/ndk-compression/lz4/lib/ \
|
2017-03-04 13:16:59 +00:00
|
|
|
jni/ndk-compression/bzip2/
|
2017-03-01 20:12:47 +00:00
|
|
|
|
2017-04-27 19:15:48 +00:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
main.c \
|
2017-07-12 18:14:10 +00:00
|
|
|
bootimg.c \
|
2017-04-27 19:15:48 +00:00
|
|
|
hexpatch.c \
|
|
|
|
compress.c \
|
2017-07-02 13:36:09 +00:00
|
|
|
boot_utils.c \
|
2017-04-27 19:15:48 +00:00
|
|
|
cpio.c \
|
|
|
|
sha1.c \
|
2017-04-28 13:48:38 +00:00
|
|
|
../utils/xwrap.c \
|
2017-07-02 13:36:09 +00:00
|
|
|
../utils/vector.c \
|
|
|
|
../utils/list.c
|
2017-03-04 13:18:24 +00:00
|
|
|
LOCAL_CFLAGS += -DZLIB_CONST
|
2016-12-30 18:44:24 +00:00
|
|
|
include $(BUILD_EXECUTABLE)
|
2017-03-01 20:12:47 +00:00
|
|
|
|
2017-03-04 13:16:59 +00:00
|
|
|
include jni/ndk-compression/zlib/Android.mk
|
2017-03-01 20:12:47 +00:00
|
|
|
include jni/ndk-compression/xz/src/liblzma/Android.mk
|
|
|
|
include jni/ndk-compression/lz4/lib/Android.mk
|
2017-03-01 21:23:31 +00:00
|
|
|
include jni/ndk-compression/bzip2/Android.mk
|