diff options
Diffstat (limited to 'rust/testing.go')
| -rw-r--r-- | rust/testing.go | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/rust/testing.go b/rust/testing.go index 4a1894c05..66877a907 100644 --- a/rust/testing.go +++ b/rust/testing.go @@ -79,6 +79,13 @@ func GatherRequiredDepsForTest() string { nocrt: true, system_shared_libs: [], } + cc_library { + name: "libprotobuf-cpp-full", + no_libcrt: true, + nocrt: true, + system_shared_libs: [], + export_include_dirs: ["libprotobuf-cpp-full-includes"], + } rust_library { name: "libstd", crate_name: "std", @@ -103,13 +110,25 @@ func GatherRequiredDepsForTest() string { srcs: ["foo.rs"], host_supported: true, } + rust_library { + name: "libgrpcio", + crate_name: "grpcio", + srcs: ["foo.rs"], + host_supported: true, + } + rust_library { + name: "libfutures", + crate_name: "futures", + srcs: ["foo.rs"], + host_supported: true, + } ` + cc.GatherRequiredDepsForTest(android.NoOsType) return bp } -func CreateTestContext() *android.TestContext { - ctx := android.NewTestArchContext() +func CreateTestContext(config android.Config) *android.TestContext { + ctx := android.NewTestArchContext(config) android.RegisterPrebuiltMutators(ctx) ctx.PreArchMutators(android.RegisterDefaultsPreArchMutators) cc.RegisterRequiredBuildComponentsForTest(ctx) |