MCPcopy Create free account
hub / github.com/AshampooSystems/boden / run

Method run

bauer/commandprocessor.py:200–232  ·  view source on GitHub ↗
(self, configuration)

Source from the content-addressed store, hash-verified

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))

Callers 1

processMethod · 0.95

Calls 6

runMethod · 0.95
runMethod · 0.95
runMethod · 0.95
IOSRunnerClass · 0.90
AndroidRunnerClass · 0.90
DesktopRunnerClass · 0.90

Tested by

no test coverage detected