3a62fc44e8
See build/soong/README.md for more information. Bug: 122332380 Test: treehugger Change-Id: I39a69c722922cfb19059d10ff37132442f0337ba
84 lines
1.5 KiB
Text
84 lines
1.5 KiB
Text
// Copyright 2010 The Android Open Source Project
|
|
|
|
cc_library {
|
|
name: "libsparse",
|
|
host_supported: true,
|
|
recovery_available: true,
|
|
unique_host_soname: 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,
|
|
},
|
|
},
|
|
}
|
|
|
|
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,
|
|
},
|
|
},
|
|
}
|