1
////////////////////////////////////////////////////////////////////////////////
3
// Code::Blocks new project wizard script
5
// Project: D application
6
// Author: Yiannis Mandravellos
8
////////////////////////////////////////////////////////////////////////////////
10
function BeginWizard()
12
// this is the text that will appear in the start (intro) page
13
local intro_msg = _T("Welcome to the new D application wizard!\n" +
14
"This wizard will guide you to create a new D application.\n\n" +
15
"When you 're ready to proceed, please click \"Next\"...");
18
Wizard.AddInfoPage(_T("DIntro"), intro_msg); // intro
19
Wizard.AddProjectPathPage(); // select project name and path
20
Wizard.AddCompilerPage(_T(""), _T("dmd;gdc;ldc"), true, true); // select compiler and configurations
21
// nothing more needs to be done here
24
function GetFilesDir()
26
return _T("d/console");
29
function SetupProject(project)
31
// enable compiler warnings (project-wide)
32
if (Wizard.GetCompilerID().Matches(_T("gdc")))
33
WarningsOn(project, Wizard.GetCompilerID());
36
local target = project.GetBuildTarget(Wizard.GetDebugName());
39
target.SetTargetType(ttConsoleOnly);
40
target.SetOutputFilename(Wizard.GetDebugOutputDir() + Wizard.GetProjectName() + DOT_EXT_EXECUTABLE);
41
// enable generation of debugging symbols for target
42
DebugSymbolsOn(target, Wizard.GetCompilerID());
45
// Release build target
46
target = project.GetBuildTarget(Wizard.GetReleaseName());
49
target.SetTargetType(ttConsoleOnly);
50
target.SetOutputFilename(Wizard.GetReleaseOutputDir() + Wizard.GetProjectName() + DOT_EXT_EXECUTABLE);
51
// enable optimizations for target
52
OptimizationsOn(target, Wizard.GetCompilerID());