blob: bf06bbc6327bdabb1983a342f5172615e49fe557 [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,
Yifan Hong7dd45532020-01-21 18:17:19 -08006 ramdisk_available: true,
Jiyong Parka0e75042018-05-24 14:11:00 +09007 recovery_available: true,
Alex Deymob0c39592017-01-11 14:37:50 -08008 unique_host_soname: true,
Alistair Delva9e28cd32020-09-03 08:43:43 -07009 vendor_available: true,
Dan Willemsen45f05242016-07-12 22:10:56 -070010 srcs: [
Jerry Zhang5a755072018-06-12 16:18:53 -070011 "backed_block.cpp",
12 "output_file.cpp",
13 "sparse.cpp",
14 "sparse_crc32.cpp",
15 "sparse_err.cpp",
Chris Friesa7eeb222017-04-17 21:53:16 -050016 "sparse_read.cpp",
Dan Willemsen45f05242016-07-12 22:10:56 -070017 ],
18 cflags: ["-Werror"],
19 local_include_dirs: ["include"],
20 export_include_dirs: ["include"],
Dan Willemsen5cfa0062017-09-27 16:24:45 -070021 shared_libs: [
22 "libz",
23 "libbase",
24 ],
Dan Willemsen45f05242016-07-12 22:10:56 -070025 target: {
26 windows: {
27 enabled: true,
28 },
29 },
30}
31
Dan Willemsen45f05242016-07-12 22:10:56 -070032cc_binary {
33 name: "simg2img",
34 host_supported: true,
35 srcs: [
Jerry Zhang5a755072018-06-12 16:18:53 -070036 "simg2img.cpp",
37 "sparse_crc32.cpp",
Dan Willemsen45f05242016-07-12 22:10:56 -070038 ],
39 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080040 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070041 "libz",
Chris Friesa7eeb222017-04-17 21:53:16 -050042 "libbase",
Dan Willemsen45f05242016-07-12 22:10:56 -070043 ],
44
45 cflags: ["-Werror"],
46}
47
48cc_binary {
49 name: "img2simg",
50 host_supported: true,
Jerry Zhang5a755072018-06-12 16:18:53 -070051 srcs: ["img2simg.cpp"],
Dan Willemsen45f05242016-07-12 22:10:56 -070052 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080053 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070054 "libz",
Chris Friesa7eeb222017-04-17 21:53:16 -050055 "libbase",
Dan Willemsen45f05242016-07-12 22:10:56 -070056 ],
57
58 cflags: ["-Werror"],
59}
60
61cc_binary_host {
62 name: "append2simg",
Jerry Zhang5a755072018-06-12 16:18:53 -070063 srcs: ["append2simg.cpp"],
Dan Willemsen45f05242016-07-12 22:10:56 -070064 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080065 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070066 "libz",
Chris Friesa7eeb222017-04-17 21:53:16 -050067 "libbase",
Dan Willemsen45f05242016-07-12 22:10:56 -070068 ],
69
70 cflags: ["-Werror"],
71}
Sasha Smundak3a62fc42019-01-24 21:16:39 -080072
73python_binary_host {
74 name: "simg_dump.py",
75 main: "simg_dump.py",
76 srcs: ["simg_dump.py"],
77 version: {
78 py2: {
79 embedded_launcher: true,
80 enabled: true,
81 },
82 py3: {
83 enabled: false,
84 },
85 },
86}
hamzehd17dc6a2019-09-25 11:00:31 -070087
88cc_fuzz {
89 name: "sparse_fuzzer",
90 host_supported: false,
91 srcs: [
92 "sparse_fuzzer.cpp",
93 ],
94 static_libs: [
95 "libsparse",
96 "liblog",
97 ],
98}