blob: 88146e998066ca23a4543d13559afdc9fb05da88 [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,
Jiyong Parka0e75042018-05-24 14:11:00 +09006 recovery_available: true,
Alex Deymob0c39592017-01-11 14:37:50 -08007 unique_host_soname: true,
Dan Willemsen45f05242016-07-12 22:10:56 -07008 srcs: [
Jerry Zhang5a755072018-06-12 16:18:53 -07009 "backed_block.cpp",
10 "output_file.cpp",
11 "sparse.cpp",
12 "sparse_crc32.cpp",
13 "sparse_err.cpp",
Chris Friesa7eeb222017-04-17 21:53:16 -050014 "sparse_read.cpp",
Dan Willemsen45f05242016-07-12 22:10:56 -070015 ],
16 cflags: ["-Werror"],
17 local_include_dirs: ["include"],
18 export_include_dirs: ["include"],
Dan Willemsen5cfa0062017-09-27 16:24:45 -070019 shared_libs: [
20 "libz",
21 "libbase",
22 ],
Dan Willemsen45f05242016-07-12 22:10:56 -070023 target: {
24 windows: {
25 enabled: true,
26 },
27 },
28}
29
Dan Willemsen45f05242016-07-12 22:10:56 -070030cc_binary {
31 name: "simg2img",
32 host_supported: true,
33 srcs: [
Jerry Zhang5a755072018-06-12 16:18:53 -070034 "simg2img.cpp",
35 "sparse_crc32.cpp",
Dan Willemsen45f05242016-07-12 22:10:56 -070036 ],
37 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080038 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070039 "libz",
Chris Friesa7eeb222017-04-17 21:53:16 -050040 "libbase",
Dan Willemsen45f05242016-07-12 22:10:56 -070041 ],
42
43 cflags: ["-Werror"],
44}
45
46cc_binary {
47 name: "img2simg",
48 host_supported: true,
Jerry Zhang5a755072018-06-12 16:18:53 -070049 srcs: ["img2simg.cpp"],
Dan Willemsen45f05242016-07-12 22:10:56 -070050 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080051 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070052 "libz",
Chris Friesa7eeb222017-04-17 21:53:16 -050053 "libbase",
Dan Willemsen45f05242016-07-12 22:10:56 -070054 ],
55
56 cflags: ["-Werror"],
57}
58
59cc_binary_host {
60 name: "append2simg",
Jerry Zhang5a755072018-06-12 16:18:53 -070061 srcs: ["append2simg.cpp"],
Dan Willemsen45f05242016-07-12 22:10:56 -070062 static_libs: [
Alex Deymob0c39592017-01-11 14:37:50 -080063 "libsparse",
Dan Willemsen45f05242016-07-12 22:10:56 -070064 "libz",
Chris Friesa7eeb222017-04-17 21:53:16 -050065 "libbase",
Dan Willemsen45f05242016-07-12 22:10:56 -070066 ],
67
68 cflags: ["-Werror"],
69}
Sasha Smundak3a62fc42019-01-24 21:16:39 -080070
71python_binary_host {
72 name: "simg_dump.py",
73 main: "simg_dump.py",
74 srcs: ["simg_dump.py"],
75 version: {
76 py2: {
77 embedded_launcher: true,
78 enabled: true,
79 },
80 py3: {
81 enabled: false,
82 },
83 },
84}
hamzehd17dc6a2019-09-25 11:00:31 -070085
86cc_fuzz {
87 name: "sparse_fuzzer",
88 host_supported: false,
89 srcs: [
90 "sparse_fuzzer.cpp",
91 ],
92 static_libs: [
93 "libsparse",
94 "liblog",
95 ],
96}