Merge "Revert "Export non-apex variants of modules to make"" am: ff8c95b610
am: 85b9f6e7b2
am: e36c6c1c37
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2481059 Change-Id: Ib05486f8c8934cd530a6f08f02c6901f2a0907bb Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -76,6 +76,9 @@ func (library *Library) AndroidMkEntries() []android.AndroidMkEntries {
|
||||
entriesList = append(entriesList, dexpreoptEntries...)
|
||||
}
|
||||
entriesList = append(entriesList, android.AndroidMkEntries{Disabled: true})
|
||||
} 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 {
|
||||
entriesList = append(entriesList, android.AndroidMkEntries{
|
||||
Class: "JAVA_LIBRARIES",
|
||||
@@ -91,8 +94,7 @@ func (library *Library) AndroidMkEntries() []android.AndroidMkEntries {
|
||||
entries.AddStrings("LOCAL_LOGTAGS_FILES", logtags...)
|
||||
}
|
||||
|
||||
if library.installFile == nil || !library.ApexModuleBase.AvailableFor(android.AvailableToPlatform) {
|
||||
// If the ApexModule is not available for the platform, it shouldn't be installed.
|
||||
if library.installFile == nil {
|
||||
entries.SetBoolIfTrue("LOCAL_UNINSTALLABLE_MODULE", true)
|
||||
}
|
||||
if library.dexJarFile.IsSet() {
|
||||
|
Reference in New Issue
Block a user