2016-07-13 07:10:56 +02:00
|
|
|
// Copyright 2010 The Android Open Source Project
|
|
|
|
|
2021-02-17 04:02:14 +01:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
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,
|
2020-11-19 05:22:47 +01:00
|
|
|
vendor_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,
|
2020-09-03 17:43:43 +02:00
|
|
|
vendor_available: 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: {
|
2023-06-23 02:06:40 +02:00
|
|
|
darwin: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
2016-07-13 07:10:56 +02:00
|
|
|
windows: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
},
|
2021-01-05 06:46:01 +01:00
|
|
|
apex_available: [
|
|
|
|
"//apex_available:platform",
|
|
|
|
"com.android.virt",
|
|
|
|
],
|
2016-07-13 07:10:56 +02:00
|
|
|
}
|
|
|
|
|
2023-08-26 00:34:08 +02:00
|
|
|
cc_binary_host {
|
2016-07-13 07:10:56 +02:00
|
|
|
name: "simg2img",
|
|
|
|
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"],
|
2023-06-23 02:06:40 +02:00
|
|
|
target: {
|
|
|
|
darwin: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
},
|
2016-07-13 07:10:56 +02:00
|
|
|
}
|
|
|
|
|
2023-08-26 00:34:08 +02:00
|
|
|
cc_binary_host {
|
2016-07-13 07:10:56 +02:00
|
|
|
name: "img2simg",
|
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 {
|
2022-09-06 03:12:42 +02:00
|
|
|
name: "simg_dump",
|
2019-01-25 06:16:39 +01:00
|
|
|
main: "simg_dump.py",
|
|
|
|
srcs: ["simg_dump.py"],
|
|
|
|
version: {
|
|
|
|
py3: {
|
2021-08-18 00:02:00 +02:00
|
|
|
embedded_launcher: true,
|
2019-01-25 06:16:39 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2019-09-25 20:00:31 +02:00
|
|
|
|
|
|
|
cc_fuzz {
|
|
|
|
name: "sparse_fuzzer",
|
2021-12-31 06:09:32 +01:00
|
|
|
host_supported: true,
|
2019-09-25 20:00:31 +02:00
|
|
|
srcs: [
|
|
|
|
"sparse_fuzzer.cpp",
|
|
|
|
],
|
|
|
|
static_libs: [
|
|
|
|
"libsparse",
|
2021-12-31 06:09:32 +01:00
|
|
|
"libbase",
|
|
|
|
"libz",
|
2019-09-25 20:00:31 +02:00
|
|
|
"liblog",
|
|
|
|
],
|
|
|
|
}
|