Home | History | Annotate | Download | only in libsparse
      1 # Copyright 2010 The Android Open Source Project
      2 
      3 LOCAL_PATH:= $(call my-dir)
      4 
      5 libsparse_src_files := \
      6         backed_block.c \
      7         output_file.c \
      8         sparse.c \
      9         sparse_crc32.c \
     10         sparse_err.c \
     11         sparse_read.c
     12 
     13 
     14 include $(CLEAR_VARS)
     15 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
     16 LOCAL_SRC_FILES := $(libsparse_src_files)
     17 LOCAL_MODULE := libsparse_host
     18 LOCAL_STATIC_LIBRARIES := libz
     19 LOCAL_C_INCLUDES += $(LOCAL_PATH)/include external/zlib
     20 include $(BUILD_HOST_STATIC_LIBRARY)
     21 
     22 
     23 include $(CLEAR_VARS)
     24 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
     25 LOCAL_SRC_FILES := $(libsparse_src_files)
     26 LOCAL_MODULE := libsparse
     27 LOCAL_C_INCLUDES += $(LOCAL_PATH)/include external/zlib
     28 LOCAL_SHARED_LIBRARIES := \
     29     libz
     30 include $(BUILD_SHARED_LIBRARY)
     31 
     32 
     33 include $(CLEAR_VARS)
     34 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
     35 LOCAL_SRC_FILES := $(libsparse_src_files)
     36 LOCAL_MODULE := libsparse_static
     37 LOCAL_C_INCLUDES += $(LOCAL_PATH)/include external/zlib
     38 LOCAL_STATIC_LIBRARIES := libz
     39 include $(BUILD_STATIC_LIBRARY)
     40 
     41 
     42 include $(CLEAR_VARS)
     43 LOCAL_SRC_FILES := simg2img.c \
     44 	sparse_crc32.c
     45 LOCAL_MODULE := simg2img_host
     46 # Need a unique module name, but exe should still be called simg2img
     47 LOCAL_MODULE_STEM := simg2img
     48 LOCAL_STATIC_LIBRARIES := \
     49     libsparse_host \
     50     libz
     51 include $(BUILD_HOST_EXECUTABLE)
     52 
     53 
     54 include $(CLEAR_VARS)
     55 LOCAL_SRC_FILES := simg2img.c \
     56 	sparse_crc32.c
     57 LOCAL_MODULE := simg2img
     58 LOCAL_STATIC_LIBRARIES := \
     59     libsparse_static \
     60     libz
     61 include $(BUILD_EXECUTABLE)
     62 
     63 
     64 include $(CLEAR_VARS)
     65 LOCAL_SRC_FILES := img2simg.c
     66 LOCAL_MODULE := img2simg_host
     67 # Need a unique module name, but exe should still be called simg2img
     68 LOCAL_MODULE_STEM := img2simg
     69 LOCAL_STATIC_LIBRARIES := \
     70     libsparse_host \
     71     libz
     72 include $(BUILD_HOST_EXECUTABLE)
     73 
     74 
     75 include $(CLEAR_VARS)
     76 LOCAL_SRC_FILES := img2simg.c
     77 LOCAL_MODULE := img2simg
     78 LOCAL_STATIC_LIBRARIES := \
     79     libsparse_static \
     80     libz
     81 include $(BUILD_EXECUTABLE)
     82 
     83 
     84 include $(CLEAR_VARS)
     85 LOCAL_SRC_FILES := simg2simg.c
     86 LOCAL_MODULE := simg2simg
     87 LOCAL_STATIC_LIBRARIES := \
     88     libsparse_host \
     89     libz
     90 include $(BUILD_HOST_EXECUTABLE)
     91 
     92 
     93 include $(CLEAR_VARS)
     94 LOCAL_MODULE := simg_dump.py
     95 LOCAL_SRC_FILES := simg_dump.py
     96 LOCAL_MODULE_CLASS := EXECUTABLES
     97 LOCAL_IS_HOST_MODULE := true
     98 include $(BUILD_PREBUILT)
     99 
    100