diff options
author | Paul Duffin <paulduffin@google.com> | 2021-03-18 01:32:07 +0000 |
---|---|---|
committer | Paul Duffin <paulduffin@google.com> | 2021-03-18 01:43:50 +0000 |
commit | 94b6960b39e8fe9fdd6bbfac338659dd2b48aa79 (patch) | |
tree | cc7f012761686519bc2949c844456c7d67bc5a08 /xml/xml.go | |
parent | 45a497180892a47cd69758b9d9126b7c608485ce (diff) |
Add preparers for xml
Bug: 181070625
Test: m nothing
Change-Id: I150889a025e1c23eebe1e2764b07fdbd2babef49
Diffstat (limited to 'xml/xml.go')
-rw-r--r-- | xml/xml.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xml/xml.go b/xml/xml.go index 8810ae4d5..c28107847 100644 --- a/xml/xml.go +++ b/xml/xml.go @@ -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"` |