(self, configuration)
| 198 | pass |
| 199 | |
| 200 | def run(self, configuration): |
| 201 | if not self.args.target: |
| 202 | raise error.ProgramArgumentError("Please specify a module name with --target TARGET") |
| 203 | |
| 204 | if not self.args.platform: |
| 205 | raise error.ProgramArgumentError("Please specify the platform name with --platform PLATFORM") |
| 206 | |
| 207 | if not self.args.config: |
| 208 | raise error.ProgramArgumentError("Please specify the configuration name with --config CONFIG") |
| 209 | |
| 210 | if configuration.platform == "ios": |
| 211 | if configuration.arch == "device": |
| 212 | raise error.ProgramArgumentError("Can't run on ios devices yet") |
| 213 | if configuration.arch == "std" and configuration.buildsystem == 'Xcode': |
| 214 | raise error.ProgramArgumentError("Can't run on ios devices yet, specifiy architecture 'simulator' to run.") |
| 215 | |
| 216 | iosRunner = IOSRunner(self.buildExecutor.cmake) |
| 217 | exitCode = iosRunner.run(configuration, self.args) |
| 218 | |
| 219 | elif configuration.platform == "android": |
| 220 | if configuration.buildsystem == "AndroidStudio": |
| 221 | androidRunner = AndroidRunner(self.buildFolder, self.androidExecutor) |
| 222 | exitCode = androidRunner.run(configuration, self.args) |
| 223 | else: |
| 224 | self.logger.critical("Only AndroidStudio configurations can be run") |
| 225 | exit(1) |
| 226 | |
| 227 | else: |
| 228 | appRunner = DesktopRunner(self.buildExecutor.cmake, configuration, self.args) |
| 229 | exitCode = appRunner.run() |
| 230 | |
| 231 | if exitCode != 0: |
| 232 | raise error.ErrorWithExitCode( "Application failed with exit code: 0x{:02x}".format(exitCode), exitCode) |
| 233 | |
| 234 | def copy(self, buildDirectory): |
| 235 | destFolder = os.path.join(buildDirectory, os.path.basename(self.args.folder)) |
no test coverage detected