summaryrefslogtreecommitdiff
path: root/xml/xml.go
diff options
context:
space:
mode:
authorJaewoong Jung <jungjw@google.com>2020-06-01 10:45:49 -0700
committerJaewoong Jung <jungjw@google.com>2020-06-01 13:44:48 -0700
commit4b79e98a6e4f882d6bbb882e9fed626e0c490bd7 (patch)
treef1497567645e52e96f18a1cc46a1eee07e93c2a4 /xml/xml.go
parenta91b64d3eeea5598062326c02cdd14dd8d8b704b (diff)
Soong package structure refactoring
Give prebuilt_etc and sh_binary their own packages and split the gigantic main Android.bp up to small, per-package ones. Test: m nothing, TreeHugger Bug: 156980228 Change-Id: I7b00cd344b9f16861f1ff39edf0029f016b853d0
Diffstat (limited to 'xml/xml.go')
-rw-r--r--xml/xml.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/xml/xml.go b/xml/xml.go
index 3a680eca3..8810ae4d5 100644
--- a/xml/xml.go
+++ b/xml/xml.go
@@ -16,6 +16,7 @@ package xml
import (
"android/soong/android"
+ "android/soong/etc"
"github.com/google/blueprint"
"github.com/google/blueprint/proptools"
@@ -62,7 +63,7 @@ type prebuiltEtcXmlProperties struct {
}
type prebuiltEtcXml struct {
- android.PrebuiltEtc
+ etc.PrebuiltEtc
properties prebuiltEtcXmlProperties
}
@@ -121,7 +122,7 @@ func (p *prebuiltEtcXml) GenerateAndroidBuildActions(ctx android.ModuleContext)
func PrebuiltEtcXmlFactory() android.Module {
module := &prebuiltEtcXml{}
module.AddProperties(&module.properties)
- android.InitPrebuiltEtcModule(&module.PrebuiltEtc, "etc")
+ etc.InitPrebuiltEtcModule(&module.PrebuiltEtc, "etc")
// This module is device-only
android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibFirst)
return module