~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/scriptedwizard/resources/d/wizard.script

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
////////////////////////////////////////////////////////////////////////////////
 
2
//
 
3
// Code::Blocks new project wizard script
 
4
//
 
5
// Project: D application
 
6
// Author:  Yiannis Mandravellos
 
7
//
 
8
////////////////////////////////////////////////////////////////////////////////
 
9
 
 
10
function BeginWizard()
 
11
{
 
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\"...");
 
16
 
 
17
    // add builtin pages
 
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
 
22
}
 
23
 
 
24
function GetFilesDir()
 
25
{
 
26
    return _T("d/console");
 
27
}
 
28
 
 
29
function SetupProject(project)
 
30
{
 
31
    // enable compiler warnings (project-wide)
 
32
    if (Wizard.GetCompilerID().Matches(_T("gdc")))
 
33
        WarningsOn(project, Wizard.GetCompilerID());
 
34
 
 
35
    // Debug build target
 
36
    local target = project.GetBuildTarget(Wizard.GetDebugName());
 
37
    if (!IsNull(target))
 
38
    {
 
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());
 
43
    }
 
44
 
 
45
    // Release build target
 
46
    target = project.GetBuildTarget(Wizard.GetReleaseName());
 
47
    if (!IsNull(target))
 
48
    {
 
49
        target.SetTargetType(ttConsoleOnly);
 
50
        target.SetOutputFilename(Wizard.GetReleaseOutputDir() + Wizard.GetProjectName() + DOT_EXT_EXECUTABLE);
 
51
        // enable optimizations for target
 
52
        OptimizationsOn(target, Wizard.GetCompilerID());
 
53
    }
 
54
 
 
55
    return true;
 
56
}