blob: b8946563c945b71ed8e53eb181216654d059a409 [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",
Chris Friesa7eeb222017-04-17 21:53:16 -050013 "sparse_read.cpp",
Dan Willemsen45f05242016-07-12 22:10:56 -070014 ],
15 cflags: ["-Werror"],
16 local_include_dirs: ["include"],
17 export_include_dirs: ["include"],
Dan Willemsen5cfa0062017-09-27 16:24:45 -070018 shared_libs: [
19 "libz",
20 "libbase",
21 ],
Dan Willemsen45f05242016-07-12 22:10:56 -070022 target: {
23 windows: {
24 enabled: true,
25 },
26 },
27}
28
Dan Willemsen45f05242016-07-12 22:10:56 -070029cc_binary {
30 name: "simg2img",
31 host_supported: true,
32 srcs: [
33 "simg2img.c",
34 "sparse_crc32.c",
35 ],
36 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080037 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070038 "libz",
Chris Friesa7eeb222017-04-17 21:53:16 -050039 "libbase",
Dan Willemsen45f05242016-07-12 22:10:56 -070040 ],
41
42 cflags: ["-Werror"],
43}
44
45cc_binary {
46 name: "img2simg",
47 host_supported: true,
48 srcs: ["img2simg.c"],
49 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080050 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070051 "libz",
Chris Friesa7eeb222017-04-17 21:53:16 -050052 "libbase",
Dan Willemsen45f05242016-07-12 22:10:56 -070053 ],
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",
Chris Friesa7eeb222017-04-17 21:53:16 -050064 "libbase",
Dan Willemsen45f05242016-07-12 22:10:56 -070065 ],
66
67 cflags: ["-Werror"],
68}