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 | 20258b5 | 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 | 20258b5 | 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 |
Trevor Drake | a840300 | 2014-12-12 04:19:27 +0000 | [diff] [blame] | 19 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
Mark Salyzyn | 8116c8c | 2014-05-01 09:15:02 -0700 | [diff] [blame] | 20 | LOCAL_CFLAGS := -Werror |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 21 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 22 | |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 23 | |
Joe Onorato | 20258b5 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 24 | include $(CLEAR_VARS) |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 25 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 26 | LOCAL_SRC_FILES := $(libsparse_src_files) |
| 27 | LOCAL_MODULE := libsparse |
Trevor Drake | a840300 | 2014-12-12 04:19:27 +0000 | [diff] [blame] | 28 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/include |
Joe Onorato | 20258b5 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 29 | LOCAL_SHARED_LIBRARIES := \ |
| 30 | libz |
Mark Salyzyn | 8116c8c | 2014-05-01 09:15:02 -0700 | [diff] [blame] | 31 | LOCAL_CFLAGS := -Werror |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 32 | include $(BUILD_SHARED_LIBRARY) |
| 33 | |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 34 | |
Joe Onorato | 20258b5 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 35 | include $(CLEAR_VARS) |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 36 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 37 | LOCAL_SRC_FILES := $(libsparse_src_files) |
Joe Onorato | 20258b5 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 38 | LOCAL_MODULE := libsparse_static |
Trevor Drake | a840300 | 2014-12-12 04:19:27 +0000 | [diff] [blame] | 39 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/include |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 40 | LOCAL_STATIC_LIBRARIES := libz |
Mark Salyzyn | 8116c8c | 2014-05-01 09:15:02 -0700 | [diff] [blame] | 41 | LOCAL_CFLAGS := -Werror |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 42 | include $(BUILD_STATIC_LIBRARY) |
| 43 | |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 44 | |
Joe Onorato | 20258b5 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 45 | include $(CLEAR_VARS) |
| 46 | LOCAL_SRC_FILES := simg2img.c \ |
| 47 | sparse_crc32.c |
| 48 | LOCAL_MODULE := simg2img_host |
| 49 | # Need a unique module name, but exe should still be called simg2img |
| 50 | LOCAL_MODULE_STEM := simg2img |
| 51 | LOCAL_STATIC_LIBRARIES := \ |
| 52 | libsparse_host \ |
| 53 | libz |
Mark Salyzyn | 8116c8c | 2014-05-01 09:15:02 -0700 | [diff] [blame] | 54 | LOCAL_CFLAGS := -Werror |
Joe Onorato | 20258b5 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 55 | include $(BUILD_HOST_EXECUTABLE) |
| 56 | |
| 57 | |
| 58 | include $(CLEAR_VARS) |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 59 | LOCAL_SRC_FILES := simg2img.c \ |
| 60 | sparse_crc32.c |
| 61 | LOCAL_MODULE := simg2img |
Joe Onorato | 20258b5 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 62 | LOCAL_STATIC_LIBRARIES := \ |
| 63 | libsparse_static \ |
| 64 | libz |
Mark Salyzyn | 8116c8c | 2014-05-01 09:15:02 -0700 | [diff] [blame] | 65 | LOCAL_CFLAGS := -Werror |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 66 | include $(BUILD_EXECUTABLE) |
| 67 | |
Joe Onorato | 20258b5 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 68 | |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 69 | include $(CLEAR_VARS) |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 70 | LOCAL_SRC_FILES := img2simg.c |
Joe Onorato | 20258b5 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 71 | LOCAL_MODULE := img2simg_host |
| 72 | # Need a unique module name, but exe should still be called simg2img |
| 73 | LOCAL_MODULE_STEM := img2simg |
| 74 | LOCAL_STATIC_LIBRARIES := \ |
| 75 | libsparse_host \ |
| 76 | libz |
Mark Salyzyn | 8116c8c | 2014-05-01 09:15:02 -0700 | [diff] [blame] | 77 | LOCAL_CFLAGS := -Werror |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 78 | include $(BUILD_HOST_EXECUTABLE) |
| 79 | |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 80 | |
Joe Onorato | 20258b5 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 81 | include $(CLEAR_VARS) |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 82 | LOCAL_SRC_FILES := img2simg.c |
| 83 | LOCAL_MODULE := img2simg |
Joe Onorato | 20258b5 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 84 | LOCAL_STATIC_LIBRARIES := \ |
| 85 | libsparse_static \ |
| 86 | libz |
Mark Salyzyn | 8116c8c | 2014-05-01 09:15:02 -0700 | [diff] [blame] | 87 | LOCAL_CFLAGS := -Werror |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 88 | include $(BUILD_EXECUTABLE) |
| 89 | |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 90 | |
Colin Cross | 0e3f47e | 2014-04-25 14:28:54 -0700 | [diff] [blame] | 91 | ifneq ($(HOST_OS),windows) |
| 92 | |
Joe Onorato | 20258b5 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 93 | include $(CLEAR_VARS) |
Geremy Condra | de807f2 | 2013-07-08 14:04:02 -0700 | [diff] [blame] | 94 | LOCAL_SRC_FILES := append2simg.c |
| 95 | LOCAL_MODULE := append2simg |
Joe Onorato | 20258b5 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 96 | LOCAL_STATIC_LIBRARIES := \ |
| 97 | libsparse_host \ |
| 98 | libz |
Mark Salyzyn | 8116c8c | 2014-05-01 09:15:02 -0700 | [diff] [blame] | 99 | LOCAL_CFLAGS := -Werror |
Colin Cross | bdc6d39 | 2012-05-02 15:18:22 -0700 | [diff] [blame] | 100 | include $(BUILD_HOST_EXECUTABLE) |
| 101 | |
Colin Cross | 0e3f47e | 2014-04-25 14:28:54 -0700 | [diff] [blame] | 102 | endif |
Colin Cross | bdc6d39 | 2012-05-02 15:18:22 -0700 | [diff] [blame] | 103 | |
Joe Onorato | 20258b5 | 2012-07-23 19:15:14 -0700 | [diff] [blame] | 104 | include $(CLEAR_VARS) |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 105 | LOCAL_MODULE := simg_dump.py |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 106 | LOCAL_SRC_FILES := simg_dump.py |
| 107 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 108 | LOCAL_IS_HOST_MODULE := true |
Mark Salyzyn | 8116c8c | 2014-05-01 09:15:02 -0700 | [diff] [blame] | 109 | LOCAL_CFLAGS := -Werror |
Colin Cross | 28fa5bc | 2012-05-20 13:28:05 -0700 | [diff] [blame] | 110 | include $(BUILD_PREBUILT) |