diff options
author | 2024-09-17 17:06:14 +0000 | |
---|---|---|
committer | 2024-09-17 17:06:14 +0000 | |
commit | 1531a12d2db069c6b27c3beea1dc3df48d6f8742 (patch) | |
tree | ff00d958259a763e4434ababbb3d8f8adb14e2fd /android/module.go | |
parent | 9d96d1f186d67e45662cd4eb7513ed91a5d07975 (diff) | |
parent | 8bbc3d5a30dbb539a5cb5b9bcc65a2352a4c3df3 (diff) |
Merge "Convert arch and os mutators to TransitionMutators" into main
Diffstat (limited to 'android/module.go')
-rw-r--r-- | android/module.go | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/android/module.go b/android/module.go index dd83d6407..f5a611c20 100644 --- a/android/module.go +++ b/android/module.go @@ -443,12 +443,6 @@ type commonProperties struct { // Set at module initialization time by calling InitCommonOSAndroidMultiTargetsArchModule CreateCommonOSVariant bool `blueprint:"mutated"` - // If set to true then this variant is the CommonOS variant that has dependencies on its - // OsType specific variants. - // - // Set by osMutator. - CommonOSVariant bool `blueprint:"mutated"` - // When set to true, this module is not installed to the full install path (ex: under // out/target/product/<name>/<partition>). It can be installed only to the packaging // modules like android_filesystem. @@ -1221,7 +1215,7 @@ func (m *ModuleBase) ArchSpecific() bool { // True if the current variant is a CommonOS variant, false otherwise. func (m *ModuleBase) IsCommonOSVariant() bool { - return m.commonProperties.CommonOSVariant + return m.commonProperties.CompileOS == CommonOS } // supportsTarget returns true if the given Target is supported by the current module. @@ -2212,6 +2206,10 @@ func (m *ModuleBase) IsNativeBridgeSupported() bool { return proptools.Bool(m.commonProperties.Native_bridge_supported) } +type ConfigContext interface { + Config() Config +} + type ConfigurableEvaluatorContext interface { Config() Config OtherModulePropertyErrorf(module Module, property string, fmt string, args ...interface{}) |