aboutsummaryrefslogtreecommitdiff
path: root/squashfs-tools/Android.mk
blob: 10b45b619cdbad87faf05b3c4e02a9e32bd354c1 (plain)
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
# Copyright (C) 2015 The Android Open Source Project

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

# squashfs-tools depends on Linux Kernel specific headers (e.g. sysinfo.h).
LOCAL_MODULE_HOST_OS := linux darwin

# The LOCAL_MODULE name is referenced by the code. Don't change it.
LOCAL_MODULE := mksquashfs

LOCAL_SRC_FILES := \
    mksquashfs.c \
    read_fs.c \
    action.c \
    swap.c \
    pseudo.c \
    compressor.c \
    sort.c \
    progressbar.c \
    read_file.c \
    info.c \
    restore.c \
    process_fragments.c \
    caches-queues-lists.c \
    xattr.c \
    read_xattrs.c \
    gzip_wrapper.c \
    android.c \
    lz4_wrapper.c

LOCAL_CFLAGS := -I -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -Wall \
                -DCOMP_DEFAULT="\"lz4\"" -DGZIP_SUPPORT -DLZ4_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT \
                -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-arith -Wno-missing-field-initializers \
                -Wno-unused-function -Werror

LOCAL_LDLIBS := -lm

LOCAL_SHARED_LIBRARIES := libcutils libselinux
LOCAL_STATIC_LIBRARIES := liblz4 libz

include $(BUILD_HOST_EXECUTABLE)