2016-12-31 02:44:24 +08:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2017-02-28 05:43:49 +08:00
|
|
|
LOCAL_MODULE := magiskboot
|
2017-03-04 21:18:24 +08:00
|
|
|
LOCAL_STATIC_LIBRARIES := libz liblzma liblz4 libbz2
|
2017-03-02 04:12:47 +08:00
|
|
|
LOCAL_C_INCLUDES := \
|
2017-04-28 03:15:48 +08:00
|
|
|
jni/utils \
|
2017-03-04 21:16:59 +08:00
|
|
|
jni/ndk-compression/zlib/ \
|
2017-03-02 04:12:47 +08:00
|
|
|
jni/ndk-compression/xz/src/liblzma/api/ \
|
2017-03-02 05:23:31 +08:00
|
|
|
jni/ndk-compression/lz4/lib/ \
|
2017-03-04 21:16:59 +08:00
|
|
|
jni/ndk-compression/bzip2/
|
2017-03-02 04:12:47 +08:00
|
|
|
|
2017-04-28 03:15:48 +08:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
main.c \
|
|
|
|
unpack.c \
|
|
|
|
repack.c \
|
|
|
|
hexpatch.c \
|
|
|
|
parseimg.c \
|
|
|
|
compress.c \
|
|
|
|
utils.c \
|
|
|
|
cpio.c \
|
|
|
|
sha1.c \
|
2017-04-28 21:48:38 +08:00
|
|
|
../utils/xwrap.c \
|
2017-04-28 03:15:48 +08:00
|
|
|
../utils/vector.c
|
2017-03-04 21:18:24 +08:00
|
|
|
LOCAL_CFLAGS += -DZLIB_CONST
|
2016-12-31 02:44:24 +08:00
|
|
|
include $(BUILD_EXECUTABLE)
|
2017-03-02 04:12:47 +08:00
|
|
|
|
2017-03-04 21:16:59 +08:00
|
|
|
include jni/ndk-compression/zlib/Android.mk
|
2017-03-02 04:12:47 +08:00
|
|
|
include jni/ndk-compression/xz/src/liblzma/Android.mk
|
|
|
|
include jni/ndk-compression/lz4/lib/Android.mk
|
2017-03-02 05:23:31 +08:00
|
|
|
include jni/ndk-compression/bzip2/Android.mk
|