Annotate paths and deprecate ExtractSource(s)Deps
Add `android:"path"` to all properties that take paths to source files, and remove the calls to ExtractSource(s)Deps, the pathsDepsMutator will add the necessary SourceDepTag dependency. Test: All soong tests Change-Id: I488ba1a5d680aaa50b04fc38acf693e23c6d4d6d
This commit is contained in:
@@ -58,7 +58,7 @@ func init() {
|
||||
|
||||
type prebuiltEtcXmlProperties struct {
|
||||
// Optional DTD that will be used to validate the xml file.
|
||||
Schema *string
|
||||
Schema *string `android:"path"`
|
||||
}
|
||||
|
||||
type prebuiltEtcXml struct {
|
||||
@@ -73,9 +73,6 @@ func (p *prebuiltEtcXml) timestampFilePath(ctx android.ModuleContext) android.Wr
|
||||
|
||||
func (p *prebuiltEtcXml) DepsMutator(ctx android.BottomUpMutatorContext) {
|
||||
p.PrebuiltEtc.DepsMutator(ctx)
|
||||
|
||||
// To support ":modulename" in schema
|
||||
android.ExtractSourceDeps(ctx, p.properties.Schema)
|
||||
}
|
||||
|
||||
func (p *prebuiltEtcXml) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||
|
Reference in New Issue
Block a user