~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/plugins/scriptedwizard/resources/common_functions.script

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
    {
19
19
        base.AddCompilerOption(_T("/W3"));
20
20
    }
21
 
    else if (   GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm-elf-gcc"))
 
21
    else if (   GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm*"))
22
22
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("avr*"))
 
23
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("tricore*"))
 
24
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("ppc*"))
23
25
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("cygwin"))
24
26
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("gcc"))
25
27
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("gdc"))
37
39
    {
38
40
        base.AddCompilerOption(_T("-wx")); // max. warning level
39
41
    }
 
42
    else if (   GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("dmc")))
 
43
    {
 
44
        base.AddCompilerOption(_T("-w-"));
 
45
    }
40
46
    else
41
47
    {
42
48
        ShowWarning(_T("This wizard doesn't know how to setup warning flags for this compiler.\n"));
53
59
        base.AddCompilerOption(_T("/D_DEBUG"));
54
60
        base.AddLinkerOption(_T("/DEBUG"));
55
61
    }
56
 
    else if (   GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm-elf-gcc"))
 
62
    else if (   GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm*"))
57
63
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("avr*"))
 
64
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("tricore*"))
 
65
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("ppc*"))
58
66
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("cygwin"))
 
67
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("dmc"))
59
68
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("dmd"))
60
69
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("gcc"))
61
70
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("gdc"))
100
109
        base.AddCompilerOption(_T("/Ox"));
101
110
        base.AddCompilerOption(_T("/DNDEBUG"));
102
111
    }
103
 
    else if (   GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm-elf-gcc"))
 
112
    else if (   GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm*"))
104
113
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("bcc*"))
105
114
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("cygwin"))
106
115
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("gcc"))
 
116
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("tricore*"))
 
117
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("ppc*"))
107
118
             || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("gdc")) )
108
119
    {
109
120
        base.AddCompilerOption(_T("-O2"));
110
121
 
111
 
        if (   GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm-elf-gcc"))
 
122
        if (   GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("arm*"))
112
123
            || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("gcc"))
113
124
            || GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("gdc")) )
114
125
        {
132
143
        base.AddCompilerOption(_T("-ot")); // optimize for time
133
144
        base.AddCompilerOption(_T("-ox")); // Maximum optimization
134
145
    }
 
146
    else if (GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("dmc")))
 
147
    {
 
148
        base.AddCompilerOption(_T("-o"));
 
149
    }
135
150
    else
136
151
    {
137
152
        ShowWarning(_T("This wizard doesn't know how to setup optimisation flags for this compiler.\n"));
159
174
    {
160
175
        base.AddCompilerOption(_T("-xs"));
161
176
    }
 
177
    else if (GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("dmc")))
 
178
    {
 
179
        base.AddCompilerOption(_T("-Ae"));
 
180
    }
 
181
    else if (GetCompilerFactory().CompilerInheritsFrom(compilerID, _T("icc")))
 
182
    {
 
183
        base.AddCompilerOption(_T("/EHs"));
 
184
    }
162
185
    else
163
186
    {
164
187
        ShowWarning(_T("This wizard doesn't know how to setup exception flags for this compiler.\n"));