forked from rayae/libinvoker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
51 lines (43 loc) · 1.81 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES += src/main/img2simg.c src/main/simg2img.c
LOCAL_SRC_FILES += src/main/mkcpio.c src/main/uncpio.c
LOCAL_SRC_FILES += src/main/minigzip.c
LOCAL_SRC_FILES += src/main/sdat2img.c
LOCAL_SRC_FILES += src/main/split_app.c
LOCAL_SRC_FILES += src/toolbox/dd.c
LOCAL_SRC_FILES += src/toolbox/envalid.c
# libsparse
LOCAL_SRC_FILES += src/libsparse/backed_block.c \
src/libsparse/output_file.c \
src/libsparse/sparse.c \
src/libsparse/sparse_crc32.c \
src/libsparse/sparse_err.c \
src/libsparse/sparse_read.c
# libz
LOCAL_SRC_FILES += src/zlib/adler32.c src/zlib/compress.c src/zlib/crc32.c src/zlib/deflate.c
LOCAL_SRC_FILES += src/zlib/gzclose.c src/zlib/inftrees.c src/zlib/infback.c
LOCAL_SRC_FILES += src/zlib/gzlib.c src/zlib/gzread.c src/zlib/gzwrite.c src/zlib/inflate.c
LOCAL_SRC_FILES += src/zlib/inffast.c src/zlib/trees.c src/zlib/uncompr.c src/zlib/zutil.c
# libselinux
LOCAL_SRC_FILES += src/libselinux/callbacks.c src/libselinux/check_context.c
LOCAL_SRC_FILES += src/libselinux/freecon.c src/libselinux/init.c
LOCAL_SRC_FILES += src/libselinux/label.c src/libselinux/label_file.c src/libselinux/label_android_property.c
LOCAL_C_INCLUDES := src/include
LOCAL_MODULE := libinvoker_main
LOCAL_CFLAGS := -DANDROID
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES += src/mkbootimg/mkbootimg.c src/mkbootimg/unpackbootimg.c src/mkbootimg/sha.c
LOCAL_C_INCLUDES := src/include
LOCAL_MODULE := libbootimg
LOCAL_CFLAGS := -DANDROID -fno-stack-protector
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES += src/invoker.c
LOCAL_CFLAGS := -DANDROID
LOCAL_LDFLAGS := -static
LOCAL_MODULE := invoker
LOCAL_STATIC_LIBRARIES := libinvoker_main libbootimg
LOCAL_FORCE_STATIC_EXECUTABLE := true
include $(BUILD_EXECUTABLE)