aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2016-08-23 20:10:57 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-08-23 20:10:57 +0000
commit83964d6f92f0fb4fd4ad65132220f53b07e1e25b (patch)
treecc6f5136575fba65a67cf1b577795b315b8fbd3f
parent8d6e227c104cd05d3bf5a23e64b7277361b9f882 (diff)
parente1d764e369cd49f7d1f485798e073662e0bee4b1 (diff)
downloadbuild_soong-83964d6f92f0fb4fd4ad65132220f53b07e1e25b.tar.gz
build_soong-83964d6f92f0fb4fd4ad65132220f53b07e1e25b.tar.bz2
build_soong-83964d6f92f0fb4fd4ad65132220f53b07e1e25b.zip
Export DefaultsFactory
am: e1d764e369 Change-Id: I5c4b2350707736d018110670c9739b41ba664401
-rw-r--r--cc/cc.go14
1 files changed, 9 insertions, 5 deletions
diff --git a/cc/cc.go b/cc/cc.go
index 7984449a..801768d5 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -888,9 +888,13 @@ func (*Defaults) GenerateAndroidBuildActions(ctx android.ModuleContext) {
}
func defaultsFactory() (blueprint.Module, []interface{}) {
+ return DefaultsFactory()
+}
+
+func DefaultsFactory(props ...interface{}) (blueprint.Module, []interface{}) {
module := &Defaults{}
- propertyStructs := []interface{}{
+ props = append(props,
&BaseProperties{},
&BaseCompilerProperties{},
&BaseLinkerProperties{},
@@ -903,12 +907,12 @@ func defaultsFactory() (blueprint.Module, []interface{}) {
&StlProperties{},
&SanitizeProperties{},
&StripProperties{},
- }
+ )
- _, propertyStructs = android.InitAndroidArchModule(module, android.HostAndDeviceDefault,
- android.MultilibDefault, propertyStructs...)
+ _, props = android.InitAndroidArchModule(module, android.HostAndDeviceDefault,
+ android.MultilibDefault, props...)
- return android.InitDefaultsModule(module, module, propertyStructs...)
+ return android.InitDefaultsModule(module, module, props...)
}
// lastUniqueElements returns all unique elements of a slice, keeping the last copy of each