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:
5
cc/cc.go
5
cc/cc.go
@@ -1205,6 +1205,8 @@ func (c *Module) Init() android.Module {
|
||||
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 {
|
||||
return c.Properties.VndkVersion != ""
|
||||
}
|
||||
@@ -1298,6 +1300,9 @@ func (c *Module) IsVndkPrivate() bool {
|
||||
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 {
|
||||
if vndkdep := c.vndkdep; vndkdep != nil {
|
||||
return vndkdep.isVndk()
|
||||
|
Reference in New Issue
Block a user