6d48aad0ff
This package can be used by other binary generator to gather the section sizes at build time. It uses bloaty_merger to export all the measured data into a single proto file. Bug: 172339742 Test: m out/soong/binary_sizes.pb Change-Id: I0ca87cdb2fb8b77226e79d9dcd762abe64aeea51
40 lines
726 B
Text
40 lines
726 B
Text
bootstrap_go_package {
|
|
name: "soong-bloaty",
|
|
pkgPath: "android/soong/bloaty",
|
|
deps: [
|
|
"blueprint",
|
|
"soong-android",
|
|
],
|
|
srcs: [
|
|
"bloaty.go",
|
|
],
|
|
pluginFor: ["soong_build"],
|
|
}
|
|
|
|
python_test_host {
|
|
name: "bloaty_merger_test",
|
|
srcs: [
|
|
"bloaty_merger_test.py",
|
|
"bloaty_merger.py",
|
|
"file_sections.proto",
|
|
],
|
|
proto: {
|
|
canonical_path_from_root: false,
|
|
},
|
|
libs: [
|
|
"pyfakefs",
|
|
"ninja_rsp",
|
|
],
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "bloaty_merger",
|
|
srcs: [
|
|
"bloaty_merger.py",
|
|
"file_sections.proto",
|
|
],
|
|
proto: {
|
|
canonical_path_from_root: false,
|
|
},
|
|
libs: ["ninja_rsp"],
|
|
}
|