1// Copyright 2010 The Android Open Source Project 2 3cc_library { 4 name: "libsparse", 5 host_supported: true, 6 unique_host_soname: true, 7 srcs: [ 8 "backed_block.c", 9 "output_file.c", 10 "sparse.c", 11 "sparse_crc32.c", 12 "sparse_err.c", 13 "sparse_read.c", 14 ], 15 cflags: ["-Werror"], 16 local_include_dirs: ["include"], 17 export_include_dirs: ["include"], 18 target: { 19 host: { 20 shared_libs: ["libz-host"], 21 }, 22 android: { 23 shared_libs: ["libz"], 24 }, 25 windows: { 26 enabled: true, 27 }, 28 }, 29} 30 31cc_binary { 32 name: "simg2img", 33 host_supported: true, 34 srcs: [ 35 "simg2img.c", 36 "sparse_crc32.c", 37 ], 38 static_libs: [ 39 "libsparse", 40 "libz", 41 ], 42 43 cflags: ["-Werror"], 44} 45 46cc_binary { 47 name: "img2simg", 48 host_supported: true, 49 srcs: ["img2simg.c"], 50 static_libs: [ 51 "libsparse", 52 "libz", 53 ], 54 55 cflags: ["-Werror"], 56} 57 58cc_binary_host { 59 name: "append2simg", 60 srcs: ["append2simg.c"], 61 static_libs: [ 62 "libsparse", 63 "libz", 64 ], 65 66 cflags: ["-Werror"], 67} 68