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