Add rust_benchmark module to soong.

This commit adds rust_benchmark and rust_benchmark_host commands to
soong. Respectively running rust benchmarks on device and host. Currently
only criterion based benchmarks are supported and criterion library is
automatically linked.

Test: atest <module with rust_benchmark defined>
Bug: 155309706
Change-Id: I6edfc2b4bf30b1163fe59b8c2ecdcd4e7125e7b9
This commit is contained in:
Jakub Kotur
2021-01-06 12:40:43 +01:00
parent 8f8029a92b
commit 1d640d0521
5 changed files with 154 additions and 0 deletions

View File

@@ -429,6 +429,7 @@ func DefaultsFactory(props ...interface{}) android.Module {
module.AddProperties(
&BaseProperties{},
&cc.VendorProperties{},
&BenchmarkProperties{},
&BindgenProperties{},
&BaseCompilerProperties{},
&BinaryCompilerProperties{},