Merge "Expose the NDK STLs to make."
am: b267295324
Change-Id: I920e6a38b60345f2a274cc49cf54b236b23b81e3
This commit is contained in:
@@ -372,3 +372,14 @@ func (c *vndkPrebuiltLibraryDecorator) AndroidMk(ctx AndroidMkContext, ret *andr
|
||||
fmt.Fprintln(w, "LOCAL_MODULE_STEM := "+stem)
|
||||
})
|
||||
}
|
||||
|
||||
func (c *ndkPrebuiltStlLinker) AndroidMk(ctx AndroidMkContext, ret *android.AndroidMkData) {
|
||||
ret.Class = "SHARED_LIBRARIES"
|
||||
|
||||
ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) {
|
||||
// Prevent make from installing the libraries to obj/lib (since we have
|
||||
// dozens of libraries with the same name, they'll clobber each other
|
||||
// and the real versions of the libraries from the platform).
|
||||
fmt.Fprintln(w, "LOCAL_COPY_TO_INTERMEDIATE_LIBRARIES := false")
|
||||
})
|
||||
}
|
||||
|
@@ -141,7 +141,10 @@ func ndkPrebuiltSharedStlFactory() android.Module {
|
||||
module.compiler = nil
|
||||
module.linker = linker
|
||||
module.installer = nil
|
||||
module.Properties.HideFromMake = true
|
||||
minVersionString := "minimum"
|
||||
noStlString := "none"
|
||||
module.Properties.Sdk_version = &minVersionString
|
||||
module.stl.Properties.Stl = &noStlString
|
||||
return module.Init()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user