Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 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 \ |
Colin Cross | a21930b | 2012-04-26 14:24:35 -0700 | [diff] [blame] | 9 | sparse_crc32.c \ |
Colin Cross | 0c4c47f | 2012-04-25 19:02:58 -0700 | [diff] [blame] | 10 | sparse_err.c \ |
| 11 | sparse_read.c |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 12 | |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 13 | |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 14 | include $(CLEAR_VARS) |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 15 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 16 | LOCAL_SRC_FILES := $(libsparse_src_files) |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 17 | LOCAL_MODULE := libsparse_host |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 18 | LOCAL_STATIC_LIBRARIES := libz |
| 19 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/include external/zlib |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 20 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 21 | |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 22 | |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 23 | include $(CLEAR_VARS) |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 24 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 25 | LOCAL_SRC_FILES := $(libsparse_src_files) |
| 26 | LOCAL_MODULE := libsparse |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 27 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/include external/zlib |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 28 | LOCAL_SHARED_LIBRARIES := \ |
| 29 | libz |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 30 | include $(BUILD_SHARED_LIBRARY) |
| 31 | |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 32 | |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 33 | include $(CLEAR_VARS) |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 34 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 35 | LOCAL_SRC_FILES := $(libsparse_src_files) |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 36 | LOCAL_MODULE := libsparse_static |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 37 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/include external/zlib |
| 38 | LOCAL_STATIC_LIBRARIES := libz |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 39 | include $(BUILD_STATIC_LIBRARY) |
| 40 | |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 41 | |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 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) |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 55 | LOCAL_SRC_FILES := simg2img.c \ |
| 56 | sparse_crc32.c |
| 57 | LOCAL_MODULE := simg2img |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 58 | LOCAL_STATIC_LIBRARIES := \ |
| 59 | libsparse_static \ |
| 60 | libz |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 61 | include $(BUILD_EXECUTABLE) |
| 62 | |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 63 | |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 64 | include $(CLEAR_VARS) |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 65 | LOCAL_SRC_FILES := img2simg.c |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 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 |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 72 | include $(BUILD_HOST_EXECUTABLE) |
| 73 | |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 74 | |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 75 | include $(CLEAR_VARS) |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 76 | LOCAL_SRC_FILES := img2simg.c |
| 77 | LOCAL_MODULE := img2simg |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 78 | LOCAL_STATIC_LIBRARIES := \ |
| 79 | libsparse_static \ |
| 80 | libz |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 81 | include $(BUILD_EXECUTABLE) |
| 82 | |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 83 | |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 84 | include $(CLEAR_VARS) |
Colin Cross | bdc6d39 | 2012-05-02 15:18:22 -0700 | [diff] [blame] | 85 | LOCAL_SRC_FILES := simg2simg.c |
| 86 | LOCAL_MODULE := simg2simg |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 87 | LOCAL_STATIC_LIBRARIES := \ |
| 88 | libsparse_host \ |
| 89 | libz |
Colin Cross | bdc6d39 | 2012-05-02 15:18:22 -0700 | [diff] [blame] | 90 | include $(BUILD_HOST_EXECUTABLE) |
| 91 | |
Colin Cross | bdc6d39 | 2012-05-02 15:18:22 -0700 | [diff] [blame] | 92 | |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 93 | include $(CLEAR_VARS) |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 94 | LOCAL_MODULE := simg_dump.py |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 95 | LOCAL_SRC_FILES := simg_dump.py |
| 96 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 97 | LOCAL_IS_HOST_MODULE := true |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 98 | include $(BUILD_PREBUILT) |
Joe Onorato | 5069b01 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 99 | |