summaryrefslogtreecommitdiff
path: root/rust/androidmk.go
diff options
context:
space:
mode:
author Jiyong Park <jiyong@google.com> 2020-11-17 22:21:02 +0900
committer Jiyong Park <jiyong@google.com> 2020-11-30 15:40:48 +0000
commit99644e92c86e400fb78595edf02184139574c2ca (patch)
tree42017649a604b8a75c3ac29734865c7f1a30458c /rust/androidmk.go
parentd35d92a7b57c61deaa3316e624d6a9898475704d (diff)
rust modules can be included in apex
We will have some APEXes having rust binaries and libraries. So, adding the support for the types of modules. rust.Module now inherits from android.ApexModuleBase and implements the android.ApexModule interface. Bug: 172414324 Test: m Exempt-From-Owner-Approval: rebased after +2 from the owner Change-Id: I356ef4c45f782a6460f001e83af96d1710642d80
Diffstat (limited to 'rust/androidmk.go')
-rw-r--r--rust/androidmk.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/androidmk.go b/rust/androidmk.go
index 74cd9bfa6..4e8b14d05 100644
--- a/rust/androidmk.go
+++ b/rust/androidmk.go
@@ -43,7 +43,7 @@ func (mod *Module) SubAndroidMk(data *android.AndroidMkEntries, obj interface{})
}
func (mod *Module) AndroidMkEntries() []android.AndroidMkEntries {
- if mod.Properties.HideFromMake {
+ if mod.Properties.HideFromMake || mod.hideApexVariantFromMake {
return []android.AndroidMkEntries{android.AndroidMkEntries{Disabled: true}}
}