blob: 6ec0991c78fe20b1f06ce3480841518656c455e8 [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 Willemsen45f05242016-07-12 22:10:56 -070018 target: {
Alex Deymob0c39592017-01-11 14:37:50 -080019 host: {
Chris Friesa7eeb222017-04-17 21:53:16 -050020 shared_libs: [
21 "libz-host",
22 "libbase",
23 ],
Alex Deymob0c39592017-01-11 14:37:50 -080024 },
25 android: {
Chris Friesa7eeb222017-04-17 21:53:16 -050026 shared_libs: [
27 "libz",
28 "libbase",
29 ],
Alex Deymob0c39592017-01-11 14:37:50 -080030 },
Dan Willemsen45f05242016-07-12 22:10:56 -070031 windows: {
32 enabled: true,
33 },
34 },
35}
36
Dan Willemsen45f05242016-07-12 22:10:56 -070037cc_binary {
38 name: "simg2img",
39 host_supported: true,
40 srcs: [
41 "simg2img.c",
42 "sparse_crc32.c",
43 ],
44 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080045 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070046 "libz",
Chris Friesa7eeb222017-04-17 21:53:16 -050047 "libbase",
Dan Willemsen45f05242016-07-12 22:10:56 -070048 ],
49
50 cflags: ["-Werror"],
51}
52
53cc_binary {
54 name: "img2simg",
55 host_supported: true,
56 srcs: ["img2simg.c"],
57 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080058 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070059 "libz",
Chris Friesa7eeb222017-04-17 21:53:16 -050060 "libbase",
Dan Willemsen45f05242016-07-12 22:10:56 -070061 ],
62
63 cflags: ["-Werror"],
64}
65
66cc_binary_host {
67 name: "append2simg",
68 srcs: ["append2simg.c"],
69 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080070 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070071 "libz",
Chris Friesa7eeb222017-04-17 21:53:16 -050072 "libbase",
Dan Willemsen45f05242016-07-12 22:10:56 -070073 ],
74
75 cflags: ["-Werror"],
76}