def __PrepareGeneratorPlugins(lowLevelToolConfig: LowLevelToolConfig, toolCommonArgConfig: ToolCommonArgConfig) -> List[str]: generatorPlugins = PluginConfig.GetGeneratorPlugins(lowLevelToolConfig.AllowDevelopmentPlugins) generatorIds = [entry.Id for entry in generatorPlugins] if toolCommonArgConfig.AllowPlaformAll: generatorIds.append(PluginSharedValues.PLATFORM_ID_ALL) return generatorIds
def DoGenerateBuildFiles3(config: Config, files: List[str], platformGeneratorPlugin: GeneratorPlugin, packageFilters: PackageFilters) -> MultiPlatformPackageResultType: config.LogPrint("- Generating build files") isSDKBuild = len(files) <= 0 packageLoader = PackageLoader(config, files, platformGeneratorPlugin) if platformGeneratorPlugin.Id != PluginSharedValues.PLATFORM_ID_ALL: raise Exception("This requires: PLATFORM_ID_ALL") resDict = {} # type: MultiPlatformPackageResultType for entry in PluginConfig.GetGeneratorPlugins(config.AllowDevelopmentPlugins): if not config.IsTestMode or not entry.InDevelopment: packages = __ResolveAndGenerate(config, entry, copy.deepcopy(packageLoader), packageFilters, isSDKBuild) resDict[entry.Name] = (packages, entry) return resDict
def DoGenerateBuildFiles( config: Config, files: List[str], platformGeneratorPlugin: GeneratorPlugin, packageFilters: PackageFilters ) -> Union[List[Package], MultiPlatformPackageResultType]: config.LogPrint("- Generating build files") isSDKBuild = len(files) <= 0 packageLoader = PackageLoader(config, files, platformGeneratorPlugin) res = [] # type: Union[List[Package], MultiPlatformPackageResultType] if platformGeneratorPlugin.PlatformId == PluginSharedValues.PLATFORM_ID_ALL: resDict = {} # type: MultiPlatformPackageResultType for entry in PluginConfig.GetGeneratorPlugins( config.AllowDevelopmentPlugins): if not config.IsTestMode or not entry.InDevelopment: packages = __ResolveAndGenerate(config, entry, copy.deepcopy(packageLoader), packageFilters, isSDKBuild) resDict[entry.PlatformName] = (packages, entry) res = resDict else: res = __ResolveAndGenerate(config, platformGeneratorPlugin, packageLoader, packageFilters, isSDKBuild) return res