Export DefaultsFactory
am: e1d764e369
Change-Id: I5c4b2350707736d018110670c9739b41ba664401
This commit is contained in:
14
cc/cc.go
14
cc/cc.go
@@ -888,9 +888,13 @@ func (*Defaults) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func defaultsFactory() (blueprint.Module, []interface{}) {
|
func defaultsFactory() (blueprint.Module, []interface{}) {
|
||||||
|
return DefaultsFactory()
|
||||||
|
}
|
||||||
|
|
||||||
|
func DefaultsFactory(props ...interface{}) (blueprint.Module, []interface{}) {
|
||||||
module := &Defaults{}
|
module := &Defaults{}
|
||||||
|
|
||||||
propertyStructs := []interface{}{
|
props = append(props,
|
||||||
&BaseProperties{},
|
&BaseProperties{},
|
||||||
&BaseCompilerProperties{},
|
&BaseCompilerProperties{},
|
||||||
&BaseLinkerProperties{},
|
&BaseLinkerProperties{},
|
||||||
@@ -903,12 +907,12 @@ func defaultsFactory() (blueprint.Module, []interface{}) {
|
|||||||
&StlProperties{},
|
&StlProperties{},
|
||||||
&SanitizeProperties{},
|
&SanitizeProperties{},
|
||||||
&StripProperties{},
|
&StripProperties{},
|
||||||
}
|
)
|
||||||
|
|
||||||
_, propertyStructs = android.InitAndroidArchModule(module, android.HostAndDeviceDefault,
|
_, props = android.InitAndroidArchModule(module, android.HostAndDeviceDefault,
|
||||||
android.MultilibDefault, propertyStructs...)
|
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
|
// lastUniqueElements returns all unique elements of a slice, keeping the last copy of each
|
||||||
|
Reference in New Issue
Block a user