2012-05-20 22:28:05 +02:00
|
|
|
# Copyright 2010 The Android Open Source Project
|
|
|
|
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
libsparse_src_files := \
|
|
|
|
backed_block.c \
|
|
|
|
output_file.c \
|
|
|
|
sparse.c \
|
2012-04-26 23:24:35 +02:00
|
|
|
sparse_crc32.c \
|
2012-04-26 04:02:58 +02:00
|
|
|
sparse_err.c \
|
|
|
|
sparse_read.c
|
2012-05-20 22:28:05 +02:00
|
|
|
|
|
|
|
|
2012-07-24 04:15:14 +02:00
|
|
|
include $(CLEAR_VARS)
|
2012-05-20 22:28:05 +02:00
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
|
|
LOCAL_SRC_FILES := $(libsparse_src_files)
|
2012-07-24 04:15:14 +02:00
|
|
|
LOCAL_MODULE := libsparse_host
|
2012-05-20 22:28:05 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := libz
|
2014-12-12 05:19:27 +01:00
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
2014-05-01 18:15:02 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2015-08-13 23:43:34 +02:00
|
|
|
LOCAL_MODULE_HOST_OS := darwin linux windows
|
2012-05-20 22:28:05 +02:00
|
|
|
include $(BUILD_HOST_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2012-07-24 04:15:14 +02:00
|
|
|
include $(CLEAR_VARS)
|
2012-05-20 22:28:05 +02:00
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
|
|
LOCAL_SRC_FILES := $(libsparse_src_files)
|
|
|
|
LOCAL_MODULE := libsparse
|
2014-12-12 05:19:27 +01:00
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
|
2012-07-24 04:15:14 +02:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libz
|
2014-05-01 18:15:02 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2012-05-20 22:28:05 +02:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
|
2012-07-24 04:15:14 +02:00
|
|
|
include $(CLEAR_VARS)
|
2012-05-20 22:28:05 +02:00
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
|
|
LOCAL_SRC_FILES := $(libsparse_src_files)
|
2012-07-24 04:15:14 +02:00
|
|
|
LOCAL_MODULE := libsparse_static
|
2014-12-12 05:19:27 +01:00
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
|
2012-05-20 22:28:05 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := libz
|
2014-05-01 18:15:02 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2012-05-20 22:28:05 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
2012-07-24 04:15:14 +02:00
|
|
|
include $(CLEAR_VARS)
|
2012-05-20 22:28:05 +02:00
|
|
|
LOCAL_SRC_FILES := simg2img.c \
|
|
|
|
sparse_crc32.c
|
2012-07-24 04:15:14 +02:00
|
|
|
LOCAL_MODULE := simg2img_host
|
|
|
|
# Need a unique module name, but exe should still be called simg2img
|
|
|
|
LOCAL_MODULE_STEM := simg2img
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libsparse_host \
|
|
|
|
libz
|
2014-05-01 18:15:02 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2012-05-20 22:28:05 +02:00
|
|
|
include $(BUILD_HOST_EXECUTABLE)
|
|
|
|
|
|
|
|
|
2012-07-24 04:15:14 +02:00
|
|
|
include $(CLEAR_VARS)
|
2012-05-20 22:28:05 +02:00
|
|
|
LOCAL_SRC_FILES := simg2img.c \
|
|
|
|
sparse_crc32.c
|
|
|
|
LOCAL_MODULE := simg2img
|
2012-07-24 04:15:14 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libsparse_static \
|
|
|
|
libz
|
2014-05-01 18:15:02 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2012-05-20 22:28:05 +02:00
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
|
2012-07-24 04:15:14 +02:00
|
|
|
include $(CLEAR_VARS)
|
2012-05-20 22:28:05 +02:00
|
|
|
LOCAL_SRC_FILES := img2simg.c
|
2012-07-24 04:15:14 +02:00
|
|
|
LOCAL_MODULE := img2simg_host
|
|
|
|
# Need a unique module name, but exe should still be called simg2img
|
|
|
|
LOCAL_MODULE_STEM := img2simg
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libsparse_host \
|
|
|
|
libz
|
2014-05-01 18:15:02 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2012-05-20 22:28:05 +02:00
|
|
|
include $(BUILD_HOST_EXECUTABLE)
|
|
|
|
|
|
|
|
|
2012-07-24 04:15:14 +02:00
|
|
|
include $(CLEAR_VARS)
|
2012-05-20 22:28:05 +02:00
|
|
|
LOCAL_SRC_FILES := img2simg.c
|
|
|
|
LOCAL_MODULE := img2simg
|
2012-07-24 04:15:14 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libsparse_static \
|
|
|
|
libz
|
2014-05-01 18:15:02 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2012-05-20 22:28:05 +02:00
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
|
2014-04-25 23:28:54 +02:00
|
|
|
ifneq ($(HOST_OS),windows)
|
|
|
|
|
2012-07-24 04:15:14 +02:00
|
|
|
include $(CLEAR_VARS)
|
2013-07-08 23:04:02 +02:00
|
|
|
LOCAL_SRC_FILES := append2simg.c
|
|
|
|
LOCAL_MODULE := append2simg
|
2012-07-24 04:15:14 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libsparse_host \
|
|
|
|
libz
|
2014-05-01 18:15:02 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2012-05-03 00:18:22 +02:00
|
|
|
include $(BUILD_HOST_EXECUTABLE)
|
|
|
|
|
2014-04-25 23:28:54 +02:00
|
|
|
endif
|
2012-05-03 00:18:22 +02:00
|
|
|
|
2012-07-24 04:15:14 +02:00
|
|
|
include $(CLEAR_VARS)
|
2012-05-20 22:28:05 +02:00
|
|
|
LOCAL_MODULE := simg_dump.py
|
|
|
|
LOCAL_SRC_FILES := simg_dump.py
|
|
|
|
LOCAL_MODULE_CLASS := EXECUTABLES
|
|
|
|
LOCAL_IS_HOST_MODULE := true
|
2014-05-01 18:15:02 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
2012-05-20 22:28:05 +02:00
|
|
|
include $(BUILD_PREBUILT)
|