2016-12-30 19:44:24 +01:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2017-02-27 22:43:49 +01:00
|
|
|
LOCAL_MODULE := magiskboot
|
2017-03-04 14:18:24 +01:00
|
|
|
LOCAL_STATIC_LIBRARIES := libz liblzma liblz4 libbz2
|
2017-03-01 21:12:47 +01:00
|
|
|
LOCAL_C_INCLUDES := \
|
2017-04-27 21:15:48 +02:00
|
|
|
jni/utils \
|
2017-03-04 14:16:59 +01:00
|
|
|
jni/ndk-compression/zlib/ \
|
2017-03-01 21:12:47 +01:00
|
|
|
jni/ndk-compression/xz/src/liblzma/api/ \
|
2017-03-01 22:23:31 +01:00
|
|
|
jni/ndk-compression/lz4/lib/ \
|
2017-03-04 14:16:59 +01:00
|
|
|
jni/ndk-compression/bzip2/
|
2017-03-01 21:12:47 +01:00
|
|
|
|
2017-04-27 21:15:48 +02: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 15:48:38 +02:00
|
|
|
../utils/xwrap.c \
|
2017-04-27 21:15:48 +02:00
|
|
|
../utils/vector.c
|
2017-03-04 14:18:24 +01:00
|
|
|
LOCAL_CFLAGS += -DZLIB_CONST
|
2016-12-30 19:44:24 +01:00
|
|
|
include $(BUILD_EXECUTABLE)
|
2017-03-01 21:12:47 +01:00
|
|
|
|
2017-03-04 14:16:59 +01:00
|
|
|
include jni/ndk-compression/zlib/Android.mk
|
2017-03-01 21:12:47 +01:00
|
|
|
include jni/ndk-compression/xz/src/liblzma/Android.mk
|
|
|
|
include jni/ndk-compression/lz4/lib/Android.mk
|
2017-03-01 22:23:31 +01:00
|
|
|
include jni/ndk-compression/bzip2/Android.mk
|