platform_system_core/libsparse/Android.bp
Jiyong Park 3ed3d4cd94 Add assemble_cvd to com.android.virt
assemble_cvd directly or indirectly depends on these modules. To add
assemble_cvd to the com.anroid.virt APEX, these modules are marked as
being available to the APEX.

Bug: 174639526
Test: m com.android.virt
Change-Id: Id3b2989a9f038a1cdc769a2021a116cf09ab1b15
2021-01-05 14:46:01 +09:00

103 lines
1.8 KiB
Text

// Copyright 2010 The Android Open Source Project
cc_library {
name: "libsparse",
host_supported: true,
ramdisk_available: true,
vendor_ramdisk_available: true,
recovery_available: true,
unique_host_soname: true,
vendor_available: true,
srcs: [
"backed_block.cpp",
"output_file.cpp",
"sparse.cpp",
"sparse_crc32.cpp",
"sparse_err.cpp",
"sparse_read.cpp",
],
cflags: ["-Werror"],
local_include_dirs: ["include"],
export_include_dirs: ["include"],
shared_libs: [
"libz",
"libbase",
],
target: {
windows: {
enabled: true,
},
},
apex_available: [
"//apex_available:platform",
"com.android.virt",
],
}
cc_binary {
name: "simg2img",
host_supported: true,
srcs: [
"simg2img.cpp",
"sparse_crc32.cpp",
],
static_libs: [
"libsparse",
"libz",
"libbase",
],
cflags: ["-Werror"],
}
cc_binary {
name: "img2simg",
host_supported: true,
srcs: ["img2simg.cpp"],
static_libs: [
"libsparse",
"libz",
"libbase",
],
cflags: ["-Werror"],
}
cc_binary_host {
name: "append2simg",
srcs: ["append2simg.cpp"],
static_libs: [
"libsparse",
"libz",
"libbase",
],
cflags: ["-Werror"],
}
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,
},
},
}
cc_fuzz {
name: "sparse_fuzzer",
host_supported: false,
srcs: [
"sparse_fuzzer.cpp",
],
static_libs: [
"libsparse",
"liblog",
],
}