1 # Copyright (C) 2015 The Android Open Source Project 2 3 LOCAL_PATH:= $(call my-dir) 4 5 include $(CLEAR_VARS) 6 7 # squashfs-tools depends on Linux Kernel specific headers (e.g. sysinfo.h). 8 LOCAL_MODULE_HOST_OS := linux darwin 9 10 # The LOCAL_MODULE name is referenced by the code. Don't change it. 11 LOCAL_MODULE := mksquashfs 12 13 LOCAL_SRC_FILES := \ 14 mksquashfs.c \ 15 read_fs.c \ 16 action.c \ 17 swap.c \ 18 pseudo.c \ 19 compressor.c \ 20 sort.c \ 21 progressbar.c \ 22 read_file.c \ 23 info.c \ 24 restore.c \ 25 process_fragments.c \ 26 caches-queues-lists.c \ 27 xattr.c \ 28 read_xattrs.c \ 29 gzip_wrapper.c \ 30 android.c \ 31 lz4_wrapper.c 32 33 LOCAL_CFLAGS := -I -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -Wall \ 34 -DCOMP_DEFAULT="\"lz4\"" -DGZIP_SUPPORT -DLZ4_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT \ 35 -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-arith -Wno-missing-field-initializers \ 36 -Wno-unused-function -Werror 37 38 LOCAL_LDLIBS := -lpthread -lm -lz 39 40 LOCAL_SHARED_LIBRARIES := libcutils libselinux 41 LOCAL_STATIC_LIBRARIES := liblz4 42 43 include $(BUILD_HOST_EXECUTABLE) 44