2016-07-13 07:10:56 +02:00
|
|
|
// Copyright 2010 The Android Open Source Project
|
|
|
|
|
2017-01-11 23:37:50 +01:00
|
|
|
cc_library {
|
|
|
|
name: "libsparse",
|
|
|
|
host_supported: true,
|
2020-01-22 03:17:19 +01:00
|
|
|
ramdisk_available: true,
|
2018-05-24 07:11:00 +02:00
|
|
|
recovery_available: true,
|
2017-01-11 23:37:50 +01:00
|
|
|
unique_host_soname: true,
|
2016-07-13 07:10:56 +02:00
|
|
|
srcs: [
|
2018-06-13 01:18:53 +02:00
|
|
|
"backed_block.cpp",
|
|
|
|
"output_file.cpp",
|
|
|
|
"sparse.cpp",
|
|
|
|
"sparse_crc32.cpp",
|
|
|
|
"sparse_err.cpp",
|
2017-04-18 04:53:16 +02:00
|
|
|
"sparse_read.cpp",
|
2016-07-13 07:10:56 +02:00
|
|
|
],
|
|
|
|
cflags: ["-Werror"],
|
|
|
|
local_include_dirs: ["include"],
|
|
|
|
export_include_dirs: ["include"],
|
2017-09-28 01:24:45 +02:00
|
|
|
shared_libs: [
|
|
|
|
"libz",
|
|
|
|
"libbase",
|
|
|
|
],
|
2016-07-13 07:10:56 +02:00
|
|
|
target: {
|
|
|
|
windows: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "simg2img",
|
|
|
|
host_supported: true,
|
|
|
|
srcs: [
|
2018-06-13 01:18:53 +02:00
|
|
|
"simg2img.cpp",
|
|
|
|
"sparse_crc32.cpp",
|
2016-07-13 07:10:56 +02:00
|
|
|
],
|
|
|
|
static_libs: [
|
2017-01-11 23:37:50 +01:00
|
|
|
"libsparse",
|
2016-07-13 07:10:56 +02:00
|
|
|
"libz",
|
2017-04-18 04:53:16 +02:00
|
|
|
"libbase",
|
2016-07-13 07:10:56 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
cflags: ["-Werror"],
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "img2simg",
|
|
|
|
host_supported: true,
|
2018-06-13 01:18:53 +02:00
|
|
|
srcs: ["img2simg.cpp"],
|
2016-07-13 07:10:56 +02:00
|
|
|
static_libs: [
|
2017-01-11 23:37:50 +01:00
|
|
|
"libsparse",
|
2016-07-13 07:10:56 +02:00
|
|
|
"libz",
|
2017-04-18 04:53:16 +02:00
|
|
|
"libbase",
|
2016-07-13 07:10:56 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
cflags: ["-Werror"],
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary_host {
|
|
|
|
name: "append2simg",
|
2018-06-13 01:18:53 +02:00
|
|
|
srcs: ["append2simg.cpp"],
|
2016-07-13 07:10:56 +02:00
|
|
|
static_libs: [
|
2017-01-11 23:37:50 +01:00
|
|
|
"libsparse",
|
2016-07-13 07:10:56 +02:00
|
|
|
"libz",
|
2017-04-18 04:53:16 +02:00
|
|
|
"libbase",
|
2016-07-13 07:10:56 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
cflags: ["-Werror"],
|
|
|
|
}
|
2019-01-25 06:16:39 +01:00
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "simg_dump.py",
|
|
|
|
main: "simg_dump.py",
|
|
|
|
srcs: ["simg_dump.py"],
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
embedded_launcher: true,
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
py3: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2019-09-25 20:00:31 +02:00
|
|
|
|
|
|
|
cc_fuzz {
|
|
|
|
name: "sparse_fuzzer",
|
|
|
|
host_supported: false,
|
|
|
|
srcs: [
|
|
|
|
"sparse_fuzzer.cpp",
|
|
|
|
],
|
|
|
|
static_libs: [
|
|
|
|
"libsparse",
|
|
|
|
"liblog",
|
|
|
|
],
|
|
|
|
}
|