(self)
| 61 | return matches |
| 62 | |
| 63 | def getBuildConfigurationsForCommand(self): |
| 64 | existingConfigurations = self.getExistingBuildConfigurations() |
| 65 | self.logger.debug("Existing configurations:") |
| 66 | for configuration in existingConfigurations: |
| 67 | self.logger.debug("* %s", configuration) |
| 68 | |
| 69 | matchedConfigurations = self.getMatchingBuildConfigurations(existingConfigurations) |
| 70 | |
| 71 | # User specified configuration: |
| 72 | if self.args.platform != None and self.args.build_system != None: |
| 73 | if len(matchedConfigurations) > 0 and self.args.arch == None: |
| 74 | return matchedConfigurations |
| 75 | |
| 76 | isSingleConfigBuildSystem = self.generatorInfo.isSingleConfigBuildSystem(self.args.build_system) |
| 77 | |
| 78 | if not isSingleConfigBuildSystem or self.args.config != None: |
| 79 | arch = self.args.arch |
| 80 | if not arch: |
| 81 | arch = 'std' |
| 82 | |
| 83 | config = self.args.config |
| 84 | if not isSingleConfigBuildSystem: |
| 85 | config = None |
| 86 | |
| 87 | selectedConfiguration = [ BuildConfiguration(platform=self.args.platform, arch=arch, buildsystem=self.args.build_system, config=config) ] |
| 88 | |
| 89 | return selectedConfiguration |
| 90 | |
| 91 | return matchedConfigurations |
| 92 | |
| 93 | def getBuildDir(self, configuration): |
| 94 | result = self.getBaseBuildDir() |
no test coverage detected