blob: dd8b5fd1de8047f7a8c0c0c1f4657f7a65c66749 [file] [log] [blame]
Dan Willemsen45f05242016-07-12 22:10:56 -07001// Copyright 2010 The Android Open Source Project
2
Alex Deymob0c39592017-01-11 14:37:50 -08003cc_library {
4 name: "libsparse",
5 host_supported: true,
6 unique_host_soname: true,
Dan Willemsen45f05242016-07-12 22:10:56 -07007 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"],
Dan Willemsen45f05242016-07-12 22:10:56 -070018 target: {
Alex Deymob0c39592017-01-11 14:37:50 -080019 host: {
20 shared_libs: ["libz-host"],
21 },
22 android: {
23 shared_libs: ["libz"],
24 },
Dan Willemsen45f05242016-07-12 22:10:56 -070025 windows: {
26 enabled: true,
27 },
28 },
29}
30
Dan Willemsen45f05242016-07-12 22:10:56 -070031cc_binary {
32 name: "simg2img",
33 host_supported: true,
34 srcs: [
35 "simg2img.c",
36 "sparse_crc32.c",
37 ],
38 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080039 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070040 "libz",
41 ],
42
43 cflags: ["-Werror"],
44}
45
46cc_binary {
47 name: "img2simg",
48 host_supported: true,
49 srcs: ["img2simg.c"],
50 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080051 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070052 "libz",
53 ],
54
55 cflags: ["-Werror"],
56}
57
58cc_binary_host {
59 name: "append2simg",
60 srcs: ["append2simg.c"],
61 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080062 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070063 "libz",
64 ],
65
66 cflags: ["-Werror"],
67}