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.cpp", 14 ], 15 cflags: ["-Werror"], 16 local_include_dirs: ["include"], 17 export_include_dirs: ["include"], 18 shared_libs: [ 19 "libz", 20 "libbase", 21 ], 22 target: { 23 windows: { 24 enabled: true, 25 }, 26 }, 27} 28 29cc_binary { 30 name: "simg2img", 31 host_supported: true, 32 srcs: [ 33 "simg2img.c", 34 "sparse_crc32.c", 35 ], 36 static_libs: [ 37 "libsparse", 38 "libz", 39 "libbase", 40 ], 41 42 cflags: ["-Werror"], 43} 44 45cc_binary { 46 name: "img2simg", 47 host_supported: true, 48 srcs: ["img2simg.c"], 49 static_libs: [ 50 "libsparse", 51 "libz", 52 "libbase", 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 "libbase", 65 ], 66 67 cflags: ["-Werror"], 68} 69