Merge "Heed SkipInstall flag when adding install rules for vendor-snapshot." am: 386821fae7
am: f6173cf1d2
am: c61d5f2904
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1423509 Change-Id: I5f5e866464fa2da3547b37631b454a58e3a4cf27
This commit is contained in:
@@ -541,6 +541,11 @@ func isVendorSnapshotModule(m *Module, inVendorProprietaryPath bool) bool {
|
|||||||
if !m.Enabled() || m.Properties.HideFromMake {
|
if !m.Enabled() || m.Properties.HideFromMake {
|
||||||
return false
|
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)
|
// skip proprietary modules, but include all VNDK (static)
|
||||||
if inVendorProprietaryPath && !m.IsVndk() {
|
if inVendorProprietaryPath && !m.IsVndk() {
|
||||||
return false
|
return false
|
||||||
|
Reference in New Issue
Block a user