Split cc_prebuilt_shared_library into static variants

am: bba99041db

Change-Id: Icee925b63f21f4b3f6533a9507564db998573ea1
This commit is contained in:
Colin Cross
2016-11-30 05:14:28 +00:00
committed by android-build-merger
2 changed files with 6 additions and 3 deletions

View File

@@ -845,8 +845,10 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
}
if tag == reuseObjTag {
depPaths.Objs = depPaths.Objs.Append(cc.compiler.(libraryInterface).reuseObjs())
return
if l, ok := cc.compiler.(libraryInterface); ok {
depPaths.Objs = depPaths.Objs.Append(l.reuseObjs())
return
}
}
if t, ok := tag.(dependencyTag); ok && t.library {

View File

@@ -60,13 +60,14 @@ func (p *prebuiltLibraryLinker) link(ctx ModuleContext,
}
func prebuiltSharedLibraryFactory() (blueprint.Module, []interface{}) {
module, library := NewLibrary(android.HostAndDeviceSupported, true, false)
module, library := NewLibrary(android.HostAndDeviceSupported, true, true)
module.compiler = nil
prebuilt := &prebuiltLibraryLinker{
libraryDecorator: library,
}
module.linker = prebuilt
module.installer = prebuilt
return module.Init()
}