if(buildInProgress == none)
{
Project prj = project;
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
int bitDepth = ide.workspace.bitDepth;
ProjectConfig config;
if(selection || !ide.activeClient)
bool ProjectInstall(MenuItem selection, Modifiers mods)
{
Project prj = project;
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
int bitDepth = ide.workspace.bitDepth;
BuildOutputMode mode = selection ? (BuildOutputMode)selection.id : normal;
ProjectConfig config;
bool ProjectLink(MenuItem selection, Modifiers mods)
{
Project prj = project;
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
int bitDepth = ide.workspace.bitDepth;
BuildOutputMode mode = selection ? (BuildOutputMode)selection.id : normal;
ProjectConfig config;
bool ProjectRebuild(MenuItem selection, Modifiers mods)
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
int bitDepth = ide.workspace.bitDepth;
Project prj = project;
BuildOutputMode mode = selection ? (BuildOutputMode)selection.id : normal;
{
Project prj = project;
Array<Project> projects { };
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
int bitDepth = ide.workspace.bitDepth;
if(selection)
{
bool ProjectRegenerate(MenuItem selection, Modifiers mods)
{
Project prj = project;
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ShowOutputBuildLog(true);
if(selection || !ide.activeClient)
{
if(result)
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
int bitDepth = ide.workspace.bitDepth;
result = false;
if(ProjectPrepareForToolchain(project, normal, true, true, compiler, config))
if(result)
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
int bitDepth = ide.workspace.bitDepth;
result = false;
if(ProjectPrepareForToolchain(project, normal, true, true, compiler, config))
bool ProjectUpdateMakefileForAllConfigs(Project project)
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
// This call really does not belong here:
ide.UpdateToolBarActiveConfigs(false);
bool Run(MenuItem selection, Modifiers mods)
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ProjectConfig config = project.config;
int bitDepth = ide.workspace.bitDepth;
+ bool shellOpen = compiler.hasDocumentOutput;
String args = new char[maxPathLen];
args[0] = '\0';
if(ide.workspace.commandLineArgs)
//ide.debugger.GetCommandLineArgs(args);
strcpy(args, ide.workspace.commandLineArgs);
if(ide.debugger.isActive)
- project.Run(args, compiler, config, bitDepth);
+ project.Run(args, compiler, config, bitDepth, shellOpen);
/*else if(config.targetType == sharedLibrary || config.targetType == staticLibrary)
MessageBox { master = ide, type = ok, text = "Run", contents = "Shared and static libraries cannot be run like executables." }.Modal();*/
else if(BuildInterrim(project, run, compiler, config, bitDepth, normal))
- project.Run(args, compiler, config, bitDepth);
+ project.Run(args, compiler, config, bitDepth, shellOpen);
delete args;
delete compiler;
return true;
bool DebugStart()
{
bool result = false;
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ProjectConfig config = project.config;
int bitDepth = ide.workspace.bitDepth;
bool useValgrind = ide.workspace.useValgrind;
delete pathBackup;
}
+ else if(compiler.hasDocumentOutput)
+ {
+ project.Run("", compiler, config, bitDepth, true);
+ }
else
{
ide.debugger.Start(compiler, config, bitDepth, useValgrind);
{
char name[MAX_FILENAME];
Project project = node.project;
- CompilerConfig compiler = ideSettings.GetCompilerConfig(project.lastBuildCompilerName);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(project.lastBuildCompilerName);
if(compiler)
{
int bitDepth = ide.workspace.bitDepth;
bool DebugRestart()
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ProjectConfig config = project.config;
int bitDepth = ide.workspace.bitDepth;
bool useValgrind = ide.workspace.useValgrind;
bool DebugStepInto()
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ProjectConfig config = project.config;
int bitDepth = ide.workspace.bitDepth;
bool useValgrind = ide.workspace.useValgrind;
bool DebugStepOver(bool skip)
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ProjectConfig config = project.config;
int bitDepth = ide.workspace.bitDepth;
bool useValgrind = ide.workspace.useValgrind;
bool DebugStepUntil(bool skip)
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ProjectConfig config = project.config;
int bitDepth = ide.workspace.bitDepth;
bool useValgrind = ide.workspace.useValgrind;