Merge "versioning macro is exported from prebuilt stubs as well"
This commit is contained in:
@@ -17,6 +17,7 @@ package cc
|
||||
import (
|
||||
"android/soong/android"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -117,6 +118,8 @@ func (p *prebuiltLibraryLinker) link(ctx ModuleContext,
|
||||
return nil
|
||||
}
|
||||
|
||||
p.libraryDecorator.exportVersioningMacroIfNeeded(ctx)
|
||||
|
||||
in := android.PathForModuleSrc(ctx, srcs[0])
|
||||
|
||||
if p.static() {
|
||||
@@ -226,6 +229,11 @@ func (p *prebuiltLibraryLinker) disablePrebuilt() {
|
||||
p.properties.Srcs = nil
|
||||
}
|
||||
|
||||
// Implements versionedInterface
|
||||
func (p *prebuiltLibraryLinker) implementationModuleName(name string) string {
|
||||
return strings.TrimPrefix(name, "prebuilt_")
|
||||
}
|
||||
|
||||
func NewPrebuiltLibrary(hod android.HostOrDeviceSupported) (*Module, *libraryDecorator) {
|
||||
module, library := NewLibrary(hod)
|
||||
module.compiler = nil
|
||||
|
Reference in New Issue
Block a user