コード例 #1
0
 def _DoGenerateReport(
         self, log: Log, generatorConfig: GeneratorConfig,
         packageList: List[Package]) -> TheGeneratorBuildReport:
     log.LogPrintWarning(
         "Generator {0} does not support build reports".format(
             self.PlatformName))
     return TheGeneratorBuildReport({})
コード例 #2
0
 def _DoGenerateReport(
         self, log: Log, generatorConfig: GeneratorConfig,
         packageList: List[Package]) -> TheGeneratorBuildReport:
     resultDict = {}  # type: Dict[Package, PackageGeneratorReport]
     for package in packageList:
         buildReport = GeneratorAndroidGradleCMakeUtil.TryGenerateGeneratorPackageReport(
             log, self.PlatformName, package)
         if buildReport is not None:
             resultDict[package] = buildReport
     return TheGeneratorBuildReport(resultDict)
コード例 #3
0
 def _DoGenerateReport(
         self, log: Log, generatorConfig: GeneratorConfig,
         packageList: List[Package]) -> TheGeneratorBuildReport:
     configVariant = self.GeneratorVariants[ToolAddedVariant.CONFIG]
     resultDict = {}  # type: Dict[Package, PackageGeneratorReport]
     for package in packageList:
         buildReport = GeneratorGNUmakefileUtil.TryGenerateGeneratorPackageReport(
             log, generatorConfig, self.PlatformName, package,
             configVariant.Options)
         if buildReport is not None:
             resultDict[package] = buildReport
     return TheGeneratorBuildReport(resultDict)
コード例 #4
0
    def _DoGenerateReport(
            self, log: Log, generatorConfig: GeneratorConfig,
            packageList: List[Package]) -> TheGeneratorBuildReport:
        if self.CMakeConfig is None:
            raise Exception("internal error generator not configured")

        configVariant = self.GeneratorVariants[ToolAddedVariant.CONFIG]
        resultDict = {}  # type: Dict[Package, PackageGeneratorReport]
        for package in packageList:
            buildReport = GeneratorCMake.TryGenerateGeneratorPackageReport(
                log, generatorConfig, self.CMakeConfig, package,
                configVariant.Options)
            if buildReport is not None:
                resultDict[package] = buildReport
        return TheGeneratorBuildReport(resultDict)
コード例 #5
0
    def _DoGenerateReport(
            self, log: Log, generatorConfig: GeneratorConfig,
            packageList: List[Package]) -> TheGeneratorBuildReport:
        resultDict = {}  # type: Dict[Package, PackageGeneratorReport]

        configVariant = self.GeneratorVariants[ToolAddedVariant.CONFIG]

        # vsVersion: int, platformName: str
        generatorVSConfig = GeneratorVSConfig(self.PlatformName,
                                              self.ToolVersion)
        generatorTemplateInfo = GeneratorVSTemplateInfo(
            generatorConfig.ToolConfig.ProjectRootConfig.DefaultTemplate,
            generatorConfig.ToolConfig.TemplateFolder,
            generatorConfig.SDKConfigTemplatePath)

        for package in packageList:
            buildReport = GeneratorVCUtil.TryGenerateGeneratorPackageReport(
                log, generatorConfig, self.PlatformName, package,
                generatorVSConfig, generatorTemplateInfo,
                configVariant.Options)
            if buildReport is not None:
                resultDict[package] = buildReport
        return TheGeneratorBuildReport(resultDict)