java_library support for building headers-only
Flag for java_library modules to build just the Turbine headers and skip building an impl jar. Test: m framework-minus-apex-headers Bug: 289776578 Ignore-AOSP-First: Change stacked with changes in internal repos Change-Id: If8b4033462d39c689cba0ed38cc343e4786ea280
This commit is contained in:
@@ -79,6 +79,9 @@ func (library *Library) AndroidMkEntries() []android.AndroidMkEntries {
|
||||
} else if !library.ApexModuleBase.AvailableFor(android.AvailableToPlatform) {
|
||||
// Platform variant. If not available for the platform, we don't need Make module.
|
||||
entriesList = append(entriesList, android.AndroidMkEntries{Disabled: true})
|
||||
} else if library.properties.Headers_only {
|
||||
// If generating headers only then don't expose to Make.
|
||||
entriesList = append(entriesList, android.AndroidMkEntries{Disabled: true})
|
||||
} else {
|
||||
entriesList = append(entriesList, android.AndroidMkEntries{
|
||||
Class: "JAVA_LIBRARIES",
|
||||
|
Reference in New Issue
Block a user