Package org.robovm.compiler.target
Class ConsoleTarget
java.lang.Object
org.robovm.compiler.target.AbstractTarget
org.robovm.compiler.target.ConsoleTarget
- All Implemented Interfaces:
Target
public class ConsoleTarget extends AbstractTarget
Console
Target implementation.-
Field Summary
Fields inherited from class org.robovm.compiler.target.AbstractTarget
config -
Constructor Summary
Constructors Constructor Description ConsoleTarget() -
Method Summary
Modifier and Type Method Description protected ExecutorcreateExecutor(LaunchParameters launchParameters, String cmd, List<? extends Object> args)protected LaunchercreateLauncher(LaunchParameters launchParameters)protected voiddoBuild(File outFile, List<String> ccArgs, List<File> objectFiles, List<String> libArgs)ArchgetArch()List<Arch>getDefaultArchs()Returns a list of the default archs to build for if no archs have been specified in theConfig.OSgetOs()StringgetType()Returns a unique type id for thisTarget.voidinit(Config config)Methods inherited from class org.robovm.compiler.target.AbstractTarget
archive, build, build, buildFat, canLaunch, canLaunchInPlace, copyAppExtensions, copyDynamicFrameworks, copyFile, copyResources, copySwiftLibs, copyWatchApp, createLaunchParameters, doInstall, doInstall, doLaunch, findDirectoryInLocations, getAppDir, getBundleId, getExecutable, getInstallRelativeArchivePath, getSwiftDependencies, getTargetCcArgs, getTargetExportedSymbols, getTargetLibs, install, isAppExtension, isDynamicLibrary, isStaticLibrary, launch, prepareLaunch, stripArchive, stripArchives, stripBitcode, stripExtraArches, updateAppExtensionBundleId
-
Field Details
-
TYPE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ConsoleTarget
public ConsoleTarget()
-
-
Method Details
-
getType
Description copied from interface:TargetReturns a unique type id for thisTarget. -
getOs
Description copied from interface:TargetReturns theOSthisTargetwill build for. This is determined byTarget.init(Config). If an explicitOShas been set on theConfigin the call toTarget.init(Config)thatOSwill returned by this method. OtherwiseTarget.init(Config)will determine a defaultOSand this method returns that one. -
getArch
Description copied from interface:TargetReturns theArchthisTargetwill build for. This is determined byTarget.init(Config). If an explicitArchhas been set on theConfigin the call toTarget.init(Config)thatArchwill returned by this method. OtherwiseTarget.init(Config)will determine a defaultArchand this method returns that one. -
getDefaultArchs
Description copied from interface:TargetReturns a list of the default archs to build for if no archs have been specified in theConfig. Returns an empty list if there are no defaults.- Specified by:
getDefaultArchsin interfaceTarget- Overrides:
getDefaultArchsin classAbstractTarget
-
createLauncher
- Overrides:
createLauncherin classAbstractTarget- Throws:
IOException
-
createExecutor
protected Executor createExecutor(LaunchParameters launchParameters, String cmd, List<? extends Object> args) throws IOException- Throws:
IOException
-
init
Description copied from interface:Target- Specified by:
initin interfaceTarget- Overrides:
initin classAbstractTarget
-
doBuild
protected void doBuild(File outFile, List<String> ccArgs, List<File> objectFiles, List<String> libArgs) throws IOException- Overrides:
doBuildin classAbstractTarget- Throws:
IOException
-