1OLD_LOCAL_PATH := $(LOCAL_PATH) 2LOCAL_PATH := $(call my-dir) 3 4LIBEXT4_UTILS_SOURCES := \ 5 src/allocate.c \ 6 src/contents.c \ 7 src/crc16.c \ 8 src/ext4_sb.c \ 9 src/ext4_utils.c \ 10 src/extent.c \ 11 src/indirect.c \ 12 src/make_ext4fs.c \ 13 src/sha1.c \ 14 src/uuid.c \ 15 src/wipe.c \ 16 17LIBEXT4_UTILS_INCLUDES := $(LOCAL_PATH)/include 18 19LIBEXT4_UTILS_CFLAGS := -DHOST 20ifeq ($(HOST_OS),windows) 21 LIBEXT4_UTILS_CFLAGS += -DUSE_MINGW=1 22endif 23 24$(call start-emulator-library,emulator-libext4_utils) 25LOCAL_SRC_FILES := $(LIBEXT4_UTILS_SOURCES) 26LOCAL_C_INCLUDES := \ 27 $(LIBEXT4_UTILS_INCLUDES) \ 28 $(LIBSPARSE_INCLUDES) \ 29 $(LIBSELINUX_INCLUDES) 30LOCAL_CFLAGS := $(LIBEXT4_UTILS_CFLAGS) 31$(call end-emulator-library) 32 33$(call start-emulator64-library,emulator64-libext4_utils) 34LOCAL_SRC_FILES := $(LIBEXT4_UTILS_SOURCES) 35LOCAL_C_INCLUDES := \ 36 $(LIBEXT4_UTILS_INCLUDES) \ 37 $(LIBSPARSE_INCLUDES) \ 38 $(LIBSELINUX_INCLUDES) 39LOCAL_CFLAGS := $(LIBEXT4_UTILS_CFLAGS) 40$(call end-emulator-library) 41 42$(call start-emulator-program,emulator_make_ext4fs) 43LOCAL_SRC_FILES := src/make_ext4fs_main.c 44LOCAL_C_INCLUDES := \ 45 $(LIBEXT4_UTILS_INCLUDES) \ 46 $(LIBSELINUX_INCLUDES) 47LOCAL_CFLAGS := $(LIBEXT4_UTILS_CFLAGS) 48LOCAL_STATIC_LIBRARIES := \ 49 emulator-libext4_utils \ 50 emulator-libsparse \ 51 emulator-libselinux \ 52 emulator-zlib 53$(call end-emulator-program) 54 55$(call start-emulator64-program,emulator64_make_ext4fs) 56LOCAL_SRC_FILES := src/make_ext4fs_main.c 57LOCAL_C_INCLUDES := \ 58 $(LIBEXT4_UTILS_INCLUDES) \ 59 $(LIBSELINUX_INCLUDES) 60LOCAL_CFLAGS := $(LIBEXT4_UTILS_CFLAGS) 61LOCAL_STATIC_LIBRARIES := \ 62 emulator64-libext4_utils \ 63 emulator64-libsparse \ 64 emulator64-libselinux \ 65 emulator64-zlib 66$(call end-emulator-program) 67 68LOCAL_PATH := $(OLD_LOCAL_PATH)