Merge "Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master" into stage-aosp-master

This commit is contained in:
TreeHugger Robot 2019-09-11 20:31:35 +00:00 committed by Android (Google) Code Review
commit fb041f8508

View file

@ -195,6 +195,10 @@ func (p *Prebuilt) usePrebuilt(ctx TopDownMutatorContext, source Module) bool {
return source == nil || !source.Enabled()
}
func (p *Prebuilt) SourceExists() bool {
return p.properties.SourceExists
}
func (p *Prebuilt) checkSingleSourceProperties() {
if !p.srcProps.IsValid() || p.srcField.Name == "" {
panic(fmt.Errorf("invalid single source prebuilt %+v", p))
@ -215,7 +219,3 @@ func (p *Prebuilt) getSingleSourceFieldValue() string {
}
return value.String()
}
func (p *Prebuilt) SourceExists() bool {
return p.properties.SourceExists
}