Merge "Propagate Soong header_libs to module-info.json"
This commit is contained in:
@@ -92,6 +92,9 @@ func (c *Module) AndroidMkEntries() []android.AndroidMkEntries {
|
|||||||
if len(c.Properties.AndroidMkWholeStaticLibs) > 0 {
|
if len(c.Properties.AndroidMkWholeStaticLibs) > 0 {
|
||||||
entries.AddStrings("LOCAL_WHOLE_STATIC_LIBRARIES", c.Properties.AndroidMkWholeStaticLibs...)
|
entries.AddStrings("LOCAL_WHOLE_STATIC_LIBRARIES", c.Properties.AndroidMkWholeStaticLibs...)
|
||||||
}
|
}
|
||||||
|
if len(c.Properties.AndroidMkHeaderLibs) > 0 {
|
||||||
|
entries.AddStrings("LOCAL_HEADER_LIBRARIES", c.Properties.AndroidMkHeaderLibs...)
|
||||||
|
}
|
||||||
entries.SetString("LOCAL_SOONG_LINK_TYPE", c.makeLinkType)
|
entries.SetString("LOCAL_SOONG_LINK_TYPE", c.makeLinkType)
|
||||||
if c.UseVndk() {
|
if c.UseVndk() {
|
||||||
entries.SetBool("LOCAL_USE_VNDK", true)
|
entries.SetBool("LOCAL_USE_VNDK", true)
|
||||||
|
4
cc/cc.go
4
cc/cc.go
@@ -223,6 +223,7 @@ type BaseProperties struct {
|
|||||||
AndroidMkStaticLibs []string `blueprint:"mutated"`
|
AndroidMkStaticLibs []string `blueprint:"mutated"`
|
||||||
AndroidMkRuntimeLibs []string `blueprint:"mutated"`
|
AndroidMkRuntimeLibs []string `blueprint:"mutated"`
|
||||||
AndroidMkWholeStaticLibs []string `blueprint:"mutated"`
|
AndroidMkWholeStaticLibs []string `blueprint:"mutated"`
|
||||||
|
AndroidMkHeaderLibs []string `blueprint:"mutated"`
|
||||||
HideFromMake bool `blueprint:"mutated"`
|
HideFromMake bool `blueprint:"mutated"`
|
||||||
PreventInstall bool `blueprint:"mutated"`
|
PreventInstall bool `blueprint:"mutated"`
|
||||||
ApexesProvidingSharedLibs []string `blueprint:"mutated"`
|
ApexesProvidingSharedLibs []string `blueprint:"mutated"`
|
||||||
@@ -2606,6 +2607,9 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
|
|||||||
case wholeStaticDepTag:
|
case wholeStaticDepTag:
|
||||||
c.Properties.AndroidMkWholeStaticLibs = append(
|
c.Properties.AndroidMkWholeStaticLibs = append(
|
||||||
c.Properties.AndroidMkWholeStaticLibs, makeLibName(depName))
|
c.Properties.AndroidMkWholeStaticLibs, makeLibName(depName))
|
||||||
|
case headerDepTag:
|
||||||
|
c.Properties.AndroidMkHeaderLibs = append(
|
||||||
|
c.Properties.AndroidMkHeaderLibs, makeLibName(depName))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user