summaryrefslogtreecommitdiff
path: root/xml/xml.go
diff options
context:
space:
mode:
Diffstat (limited to 'xml/xml.go')
-rw-r--r--xml/xml.go6
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"`