Add preparers for xml

Bug: 181070625
Test: m nothing
Change-Id: I150889a025e1c23eebe1e2764b07fdbd2babef49
This commit is contained in:
Paul Duffin
2021-03-18 01:32:07 +00:00
parent 45a4971808
commit 94b6960b39
3 changed files with 25 additions and 1 deletions

View File

@@ -53,10 +53,14 @@ var (
)
func init() {
android.RegisterModuleType("prebuilt_etc_xml", PrebuiltEtcXmlFactory)
registerXmlBuildComponents(android.InitRegistrationContext)
pctx.HostBinToolVariable("XmlLintCmd", "xmllint")
}
func registerXmlBuildComponents(ctx android.RegistrationContext) {
ctx.RegisterModuleType("prebuilt_etc_xml", PrebuiltEtcXmlFactory)
}
type prebuiltEtcXmlProperties struct {
// Optional DTD that will be used to validate the xml file.
Schema *string `android:"path"`