Build a static library for header-only libraries
library.static() was being used to determine if a library was static, shared, or header only, which resulted in header only libraries behaving like shared libraries, when they should be treated as static libraries with no sources. Explicitly use library.static(), library.shared(), and library.header() instead. Bug: 35228396 Test: builds, manually examine changes to build.ninja and Android.mk Change-Id: I51729992cc6338deda1396b86f12bc9f73e674d8
This commit is contained in:
@@ -335,7 +335,7 @@ func newStubLibrary() (*Module, []interface{}) {
|
||||
module.linker = stub
|
||||
module.installer = stub
|
||||
|
||||
return module, []interface{}{&stub.properties}
|
||||
return module, []interface{}{&stub.properties, &library.MutatedProperties}
|
||||
}
|
||||
|
||||
func ndkLibraryFactory() (blueprint.Module, []interface{}) {
|
||||
|
Reference in New Issue
Block a user