diff options
author | Colin Cross <ccross@android.com> | 2016-05-17 16:34:16 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2016-10-12 17:24:49 -0700 |
commit | fc754581fc1bbc42586a7ac6df3f9eddcbb6955f (patch) | |
tree | 62088d49e2d98527b8631136403cfe5d750b7f73 /android/defaults.go | |
parent | 1e676bef94d84d8800a23b8ed897b24a157173cd (diff) | |
download | build_soong-fc754581fc1bbc42586a7ac6df3f9eddcbb6955f.tar.gz build_soong-fc754581fc1bbc42586a7ac6df3f9eddcbb6955f.tar.bz2 build_soong-fc754581fc1bbc42586a7ac6df3f9eddcbb6955f.zip |
Add a Name property
Blueprint is going to abdicate responsibility for determining the name
of a module. Add a name property, and a method to retreive the name.
Test: build.ninja identical
Change-Id: I09c6f5283cd6e28ad4b04c24c5ab8b00f71ae2ab
Diffstat (limited to 'android/defaults.go')
-rw-r--r-- | android/defaults.go | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/android/defaults.go b/android/defaults.go index 11ce0997..df1409e8 100644 --- a/android/defaults.go +++ b/android/defaults.go @@ -80,7 +80,20 @@ func (d *DefaultsModule) properties() []interface{} { } func InitDefaultsModule(module Module, d Defaults, props ...interface{}) (blueprint.Module, []interface{}) { - return InitDefaultableModule(module, d, props...) + props = append(props, + &hostAndDeviceProperties{}, + &commonProperties{}, + &variableProperties{}) + + _, props = InitArchModule(module, props...) + + _, props = InitDefaultableModule(module, d, props...) + + props = append(props, &module.base().nameProperties) + + module.base().module = module + + return module, props } var _ Defaults = (*DefaultsModule)(nil) |