blob: 860b9ae4aed8e07c50ed71b1163a2db17c7d62df [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,
Yifan Honge85233c2020-11-18 20:22:47 -08007 vendor_ramdisk_available: true,
Jiyong Parka0e75042018-05-24 14:11:00 +09008 recovery_available: true,
Alex Deymob0c39592017-01-11 14:37:50 -08009 unique_host_soname: true,
Alistair Delva9e28cd32020-09-03 08:43:43 -070010 vendor_available: true,
Dan Willemsen45f05242016-07-12 22:10:56 -070011 srcs: [
Jerry Zhang5a755072018-06-12 16:18:53 -070012 "backed_block.cpp",
13 "output_file.cpp",
14 "sparse.cpp",
15 "sparse_crc32.cpp",
16 "sparse_err.cpp",
Chris Friesa7eeb222017-04-17 21:53:16 -050017 "sparse_read.cpp",
Dan Willemsen45f05242016-07-12 22:10:56 -070018 ],
19 cflags: ["-Werror"],
20 local_include_dirs: ["include"],
21 export_include_dirs: ["include"],
Dan Willemsen5cfa0062017-09-27 16:24:45 -070022 shared_libs: [
23 "libz",
24 "libbase",
25 ],
Dan Willemsen45f05242016-07-12 22:10:56 -070026 target: {
27 windows: {
28 enabled: true,
29 },
30 },
31}
32
Dan Willemsen45f05242016-07-12 22:10:56 -070033cc_binary {
34 name: "simg2img",
35 host_supported: true,
36 srcs: [
Jerry Zhang5a755072018-06-12 16:18:53 -070037 "simg2img.cpp",
38 "sparse_crc32.cpp",
Dan Willemsen45f05242016-07-12 22:10:56 -070039 ],
40 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080041 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070042 "libz",
Chris Friesa7eeb222017-04-17 21:53:16 -050043 "libbase",
Dan Willemsen45f05242016-07-12 22:10:56 -070044 ],
45
46 cflags: ["-Werror"],
47}
48
49cc_binary {
50 name: "img2simg",
51 host_supported: true,
Jerry Zhang5a755072018-06-12 16:18:53 -070052 srcs: ["img2simg.cpp"],
Dan Willemsen45f05242016-07-12 22:10:56 -070053 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080054 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070055 "libz",
Chris Friesa7eeb222017-04-17 21:53:16 -050056 "libbase",
Dan Willemsen45f05242016-07-12 22:10:56 -070057 ],
58
59 cflags: ["-Werror"],
60}
61
62cc_binary_host {
63 name: "append2simg",
Jerry Zhang5a755072018-06-12 16:18:53 -070064 srcs: ["append2simg.cpp"],
Dan Willemsen45f05242016-07-12 22:10:56 -070065 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080066 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070067 "libz",
Chris Friesa7eeb222017-04-17 21:53:16 -050068 "libbase",
Dan Willemsen45f05242016-07-12 22:10:56 -070069 ],
70
71 cflags: ["-Werror"],
72}
Sasha Smundak3a62fc42019-01-24 21:16:39 -080073
74python_binary_host {
75 name: "simg_dump.py",
76 main: "simg_dump.py",
77 srcs: ["simg_dump.py"],
78 version: {
79 py2: {
80 embedded_launcher: true,
81 enabled: true,
82 },
83 py3: {
84 enabled: false,
85 },
86 },
87}
hamzehd17dc6a2019-09-25 11:00:31 -070088
89cc_fuzz {
90 name: "sparse_fuzzer",
91 host_supported: false,
92 srcs: [
93 "sparse_fuzzer.cpp",
94 ],
95 static_libs: [
96 "libsparse",
97 "liblog",
98 ],
99}