Export static libraries.
Export static libraries through LOCAL_STATIC_LIBRARIES and LOCAL_WHOLE_STATIC_LIBRARIES. This enables dependency-based NOTICE file generation. Also, add a notice property in the libwinpthread module. Bug: 36073965 Test: cc_test.go Change-Id: Ic63ca523b40acac82bbe876f7aa40ecd495907c5
This commit is contained in:
@@ -70,6 +70,12 @@ func (c *Module) AndroidMk() android.AndroidMkData {
|
||||
if len(c.Properties.AndroidMkSharedLibs) > 0 {
|
||||
fmt.Fprintln(w, "LOCAL_SHARED_LIBRARIES := "+strings.Join(c.Properties.AndroidMkSharedLibs, " "))
|
||||
}
|
||||
if len(c.Properties.AndroidMkStaticLibs) > 0 {
|
||||
fmt.Fprintln(w, "LOCAL_STATIC_LIBRARIES := "+strings.Join(c.Properties.AndroidMkStaticLibs, " "))
|
||||
}
|
||||
if len(c.Properties.AndroidMkWholeStaticLibs) > 0 {
|
||||
fmt.Fprintln(w, "LOCAL_WHOLE_STATIC_LIBRARIES := "+strings.Join(c.Properties.AndroidMkWholeStaticLibs, " "))
|
||||
}
|
||||
fmt.Fprintln(w, "LOCAL_SOONG_LINK_TYPE :=", c.getMakeLinkType())
|
||||
if c.useVndk() {
|
||||
fmt.Fprintln(w, "LOCAL_USE_VNDK := true")
|
||||
|
Reference in New Issue
Block a user