Merge "Heed SkipInstall flag when adding install rules for vendor-snapshot."

This commit is contained in:
Treehugger Robot 2020-09-15 16:49:35 +00:00 committed by Gerrit Code Review
commit 386821fae7

View file

@ -541,6 +541,11 @@ func isVendorSnapshotModule(m *Module, inVendorProprietaryPath bool) bool {
if !m.Enabled() || m.Properties.HideFromMake {
return false
}
// When android/prebuilt.go selects between source and prebuilt, it sets
// SkipInstall on the other one to avoid duplicate install rules in make.
if m.IsSkipInstall() {
return false
}
// skip proprietary modules, but include all VNDK (static)
if inVendorProprietaryPath && !m.IsVndk() {
return false