platform_build_soong/bloaty/Android.bp
Thiébaud Weksteen e4dd14b25f bloaty: measure stripped Rust binaries
Modify bloaty's MeasureSizeForPath to allow a module to provide multiple
paths. This is used to measure both unstripped and stripped
libraries/binaries. Add unit test to ensure correct measurements are
generated for Rust.

Test: m out/soong/binary_sizes.pb.gz
Change-Id: I59439b77dbf1cf5ad71e1c02996a6a90938536b4
2021-04-15 12:02:51 +02:00

45 lines
818 B
Text

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
bootstrap_go_package {
name: "soong-bloaty",
pkgPath: "android/soong/bloaty",
deps: [
"blueprint",
"soong-android",
],
srcs: [
"bloaty.go",
"testing.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"],
}