Merge "cc: Add docstring for IsVndk() and UseVndk()" am: 9fd9129b57

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2310668

Change-Id: Iebde8af8a3695fed89db119556fbe562c91dc0d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Yi-yo Chiang
2022-11-25 09:42:50 +00:00
committed by Automerger Merge Worker

View File

@@ -1205,6 +1205,8 @@ func (c *Module) Init() android.Module {
return c return c
} }
// UseVndk() returns true if this module is built against VNDK.
// This means the vendor and product variants of a module.
func (c *Module) UseVndk() bool { func (c *Module) UseVndk() bool {
return c.Properties.VndkVersion != "" return c.Properties.VndkVersion != ""
} }
@@ -1298,6 +1300,9 @@ func (c *Module) IsVndkPrivate() bool {
return false return false
} }
// IsVndk() returns true if this module has a vndk variant.
// Note that IsVndk() returns true for all variants of vndk-enabled libraries. Not only vendor variant,
// but also platform and product variants of vndk-enabled libraries return true for IsVndk().
func (c *Module) IsVndk() bool { func (c *Module) IsVndk() bool {
if vndkdep := c.vndkdep; vndkdep != nil { if vndkdep := c.vndkdep; vndkdep != nil {
return vndkdep.isVndk() return vndkdep.isVndk()