From 94b6960b39e8fe9fdd6bbfac338659dd2b48aa79 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Thu, 18 Mar 2021 01:32:07 +0000 Subject: Add preparers for xml Bug: 181070625 Test: m nothing Change-Id: I150889a025e1c23eebe1e2764b07fdbd2babef49 --- xml/xml.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'xml/xml.go') 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"` -- cgit v1.2.3-59-g8ed1b