Extract dist properties from commonProperties

Common properties are automatically inherited from a parent module
(i.e. one that calls CreateModule()) to the child module that it
creates. This makes no sense for dist/dists properties so this change
extracts them into their own structure separate to the
commonProperties.

Test: m checkbuild and TreeHugger
Bug: 160448975
Change-Id: Icceb20455e13394dd3b3bce464fb9bb34882d6c3
This commit is contained in:
Paul Duffin
2020-09-02 13:08:57 +01:00
parent 4f78c512d4
commit ed87513b0b
2 changed files with 25 additions and 20 deletions

View File

@@ -195,7 +195,8 @@ func InitDefaultsModule(module DefaultsModule) {
module.AddProperties(
&hostAndDeviceProperties{},
commonProperties,
&ApexProperties{})
&ApexProperties{},
&distProperties{})
initAndroidModuleBase(module)
initProductVariableModule(module)