Merge "Do not propagate the stub symbol file to prebuilts."
This commit is contained in:
7
cc/cc.go
7
cc/cc.go
@@ -586,13 +586,6 @@ func (c *Module) GetDepsInLinkOrder() []android.Path {
|
|||||||
return c.depsInLinkOrder
|
return c.depsInLinkOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Module) StubsSymbolFile() android.OptionalPath {
|
|
||||||
if library, ok := c.linker.(*libraryDecorator); ok {
|
|
||||||
return library.stubsSymbolFile
|
|
||||||
}
|
|
||||||
return android.OptionalPath{}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *Module) StubsVersions() []string {
|
func (c *Module) StubsVersions() []string {
|
||||||
if c.linker != nil {
|
if c.linker != nil {
|
||||||
if library, ok := c.linker.(*libraryDecorator); ok {
|
if library, ok := c.linker.(*libraryDecorator); ok {
|
||||||
|
@@ -367,9 +367,6 @@ type libraryDecorator struct {
|
|||||||
// Location of the file that should be copied to dist dir when requested
|
// Location of the file that should be copied to dist dir when requested
|
||||||
distFile android.OptionalPath
|
distFile android.OptionalPath
|
||||||
|
|
||||||
// stubs.symbol_file
|
|
||||||
stubsSymbolFile android.OptionalPath
|
|
||||||
|
|
||||||
versionScriptPath android.ModuleGenPath
|
versionScriptPath android.ModuleGenPath
|
||||||
|
|
||||||
post_install_cmds []string
|
post_install_cmds []string
|
||||||
@@ -606,7 +603,6 @@ func (library *libraryDecorator) shouldCreateSourceAbiDump(ctx ModuleContext) bo
|
|||||||
|
|
||||||
func (library *libraryDecorator) compile(ctx ModuleContext, flags Flags, deps PathDeps) Objects {
|
func (library *libraryDecorator) compile(ctx ModuleContext, flags Flags, deps PathDeps) Objects {
|
||||||
if library.buildStubs() {
|
if library.buildStubs() {
|
||||||
library.stubsSymbolFile = android.OptionalPathForModuleSrc(ctx, library.Properties.Stubs.Symbol_file)
|
|
||||||
objs, versionScript := compileStubLibrary(ctx, flags, String(library.Properties.Stubs.Symbol_file), library.MutatedProperties.StubsVersion, "--apex")
|
objs, versionScript := compileStubLibrary(ctx, flags, String(library.Properties.Stubs.Symbol_file), library.MutatedProperties.StubsVersion, "--apex")
|
||||||
library.versionScriptPath = versionScript
|
library.versionScriptPath = versionScript
|
||||||
return objs
|
return objs
|
||||||
|
@@ -271,10 +271,7 @@ func addPossiblyArchSpecificProperties(sdkModuleContext android.ModuleContext, b
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(libInfo.StubsVersion) > 0 {
|
if len(libInfo.StubsVersion) > 0 {
|
||||||
symbolFilePath := filepath.Join(nativeEtcDir, libInfo.StubsSymbolFile.Path().Base())
|
|
||||||
builder.CopyToSnapshot(libInfo.StubsSymbolFile.Path(), symbolFilePath)
|
|
||||||
stubsSet := outputProperties.AddPropertySet("stubs")
|
stubsSet := outputProperties.AddPropertySet("stubs")
|
||||||
stubsSet.AddProperty("symbol_file", symbolFilePath)
|
|
||||||
stubsSet.AddProperty("versions", []string{libInfo.StubsVersion})
|
stubsSet.AddProperty("versions", []string{libInfo.StubsVersion})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -283,7 +280,6 @@ const (
|
|||||||
nativeIncludeDir = "include"
|
nativeIncludeDir = "include"
|
||||||
nativeGeneratedIncludeDir = "include_gen"
|
nativeGeneratedIncludeDir = "include_gen"
|
||||||
nativeStubDir = "lib"
|
nativeStubDir = "lib"
|
||||||
nativeEtcDir = "etc"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// path to the native library. Relative to <sdk_root>/<api_dir>
|
// path to the native library. Relative to <sdk_root>/<api_dir>
|
||||||
@@ -348,9 +344,6 @@ type nativeLibInfoProperties struct {
|
|||||||
// are not in use.
|
// are not in use.
|
||||||
StubsVersion string
|
StubsVersion string
|
||||||
|
|
||||||
// The stubs symbol file.
|
|
||||||
StubsSymbolFile android.OptionalPath
|
|
||||||
|
|
||||||
// outputFile is not exported as it is always arch specific.
|
// outputFile is not exported as it is always arch specific.
|
||||||
outputFile android.Path
|
outputFile android.Path
|
||||||
}
|
}
|
||||||
@@ -389,7 +382,6 @@ func (p *nativeLibInfoProperties) PopulateFromVariant(ctx android.SdkMemberConte
|
|||||||
|
|
||||||
if ccModule.HasStubsVariants() {
|
if ccModule.HasStubsVariants() {
|
||||||
p.StubsVersion = ccModule.StubsVersion()
|
p.StubsVersion = ccModule.StubsVersion()
|
||||||
p.StubsSymbolFile = ccModule.StubsSymbolFile()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1766,7 +1766,6 @@ cc_prebuilt_library_shared {
|
|||||||
sdk_member_name: "stubslib",
|
sdk_member_name: "stubslib",
|
||||||
installable: false,
|
installable: false,
|
||||||
stubs: {
|
stubs: {
|
||||||
symbol_file: "etc/stubslib.map.txt",
|
|
||||||
versions: ["3"],
|
versions: ["3"],
|
||||||
},
|
},
|
||||||
arch: {
|
arch: {
|
||||||
@@ -1783,7 +1782,6 @@ cc_prebuilt_library_shared {
|
|||||||
name: "stubslib",
|
name: "stubslib",
|
||||||
prefer: false,
|
prefer: false,
|
||||||
stubs: {
|
stubs: {
|
||||||
symbol_file: "etc/stubslib.map.txt",
|
|
||||||
versions: ["3"],
|
versions: ["3"],
|
||||||
},
|
},
|
||||||
arch: {
|
arch: {
|
||||||
|
Reference in New Issue
Block a user