summaryrefslogtreecommitdiff
path: root/rust/androidmk.go
diff options
context:
space:
mode:
author Ivan Lozano <ivanlozano@google.com> 2021-04-02 12:41:32 -0400
committer Ivan Lozano <ivanlozano@google.com> 2021-04-13 13:17:12 -0400
commitc08897c1e442be2e0f6db99ca310c9dc7c2e3194 (patch)
treebd693eb07a3e34c5306a86bcb9f6b7e92af3c67f /rust/androidmk.go
parent699e218324982be07c431dfa9e1a59e482dc8511 (diff)
Add more Rust vendor image support.
This adds Rust vendor image support for all module types except Rust prebuilts. Bug: 184042776 Test: New Soong tests. Test: Example cc_library vendor module can depend on rust_ffi_shared. Test: Example rust_library vendor-only module compiles. Change-Id: Iaa30ad51fdaedcbf14687da5472581f6af62ff59
Diffstat (limited to 'rust/androidmk.go')
-rw-r--r--rust/androidmk.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/androidmk.go b/rust/androidmk.go
index dea32a34d..f8ab2aa7b 100644
--- a/rust/androidmk.go
+++ b/rust/androidmk.go
@@ -60,6 +60,10 @@ func (mod *Module) AndroidMkEntries() []android.AndroidMkEntries {
entries.AddStrings("LOCAL_SHARED_LIBRARIES", mod.Properties.AndroidMkSharedLibs...)
entries.AddStrings("LOCAL_STATIC_LIBRARIES", mod.Properties.AndroidMkStaticLibs...)
entries.AddStrings("LOCAL_SOONG_LINK_TYPE", mod.makeLinkType)
+ if mod.UseVndk() {
+ entries.SetBool("LOCAL_USE_VNDK", true)
+ }
+
},
},
}
@@ -75,6 +79,7 @@ func (mod *Module) AndroidMkEntries() []android.AndroidMkEntries {
mod.SubAndroidMk(&ret, mod.sanitize)
}
+ ret.SubName += mod.Properties.RustSubName
ret.SubName += mod.Properties.SubName
return []android.AndroidMkEntries{ret}