Subversion Repositories DevTools

Rev

Rev 6177 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6177 Rev 6925
Line 33... Line 33...
33
ToolsetInit();
33
ToolsetInit();
34
 
34
 
35
sub ToolsetInit
35
sub ToolsetInit
36
{
36
{
37
    my( @args ) = @::ScmToolsetArgs;             # Toolset arguments
37
    my( @args ) = @::ScmToolsetArgs;             # Toolset arguments
38
    my( $version, $product, @defines, @dirs, @flags, @asflags, @asdefines );
38
    my( $version, $product, @defines, @dirs, @flags, @ccflags, @cxxflags, @asflags, @asdefines );
39
    my $productFound;
39
    my $productFound;
40
 
40
 
41
    #.. Parse arguments
41
    #.. Parse arguments
42
    #
42
    #
43
    Debug( "$ToolSetName:(@args)\n" );
43
    Debug( "$ToolSetName:(@args)\n" );
Line 92... Line 92...
92
    if ( $productFound )
92
    if ( $productFound )
93
    {
93
    {
94
        #
94
        #
95
        #   Compiler flags and definitions
95
        #   Compiler flags and definitions
96
        #
96
        #
97
       push @flags , '--endian=little';
97
        push @flags , '--endian=little';
98
       push @flags , '--cpu=Cortex-M3';
98
        push @flags , '--cpu=Cortex-M3';
99
       push @flags , '--diag_suppress=Pa050,Pa091';
99
        push @flags , '--diag_suppress=Pa050,Pa091';
100
       push @flags , '-e';
100
        push @flags , '--fpu=None';
101
       push @flags , '--fpu=None';
101
        push @flags , '-Oh';
102
       push @flags , '-Oh';
102
        push @flags , '--require_prototypes';
103
       push @flags , '--vla';
103
        push @flags , '--remarks';
104
       push @flags , '--require_prototypes';
104
        push @flags , '--dlib_config=DLib_Config_Normal.h';
-
 
105
 
-
 
106
        push @ccflags ,  '--vla';    # variable length arrays. c only. not compatible with cxx--eec++
105
       push @flags , '--remarks';
107
        push @cxxflags , '--c++';    # standard c++.
106
       push @flags , '--dlib_config=DLib_Config_Normal.h';
108
        #push @cxxflags , '--eec++';  # extended embedded c++.
107
 
109
 
108
       # Defines
110
       # Defines
109
       #push @defines, 'xxxxxx';
111
       #push @defines, 'xxxxxx';
110
 
112
 
111
 
113
 
Line 174... Line 176...
174
    #         when expanded ("Program Files")
176
    #         when expanded ("Program Files")
175
    #
177
    #
176
 
178
 
177
    PlatformEntry( "AVR_IAR_DEFINES\t=",    "\n", "\\\n\t", "", @defines )
179
    PlatformEntry( "AVR_IAR_DEFINES\t=",    "\n", "\\\n\t", "", @defines )
178
        if ( scalar @defines );
180
        if ( scalar @defines );
179
    PlatformEntry( "AVR_IAR_INCLUDES\t=",    "\n", "\\\n\t", ";", @dirs )
181
    PlatformEntry( "AVR_IAR_INCLUDES\t=",   "\n", "\\\n\t", ";", @dirs )
180
        if ( scalar @dirs );
182
        if ( scalar @dirs );
181
    PlatformEntry( "AVR_IAR_FLAGS\t=",    "\n", "\\\n\t", "", @flags )
183
    PlatformEntry( "AVR_IAR_FLAGS\t=",      "\n", "\\\n\t", "", @flags )
182
        if ( scalar @flags );
184
        if ( scalar @flags );
-
 
185
    PlatformEntry( "AVR_IAR_CC_FLAGS\t=",   "\n", "\\\n\t", "", @ccflags )
-
 
186
        if ( scalar @ccflags );
-
 
187
    PlatformEntry( "AVR_IAR_CXX_FLAGS\t=",  "\n", "\\\n\t", "", @cxxflags )
-
 
188
        if ( scalar @cxxflags );
183
 
189
 
184
    PlatformEntry( "AVR_IAR_ASFLAGS\t=",    "\n", "\\\n\t", "", @asflags )
190
    PlatformEntry( "AVR_IAR_ASFLAGS\t=",    "\n", "\\\n\t", "", @asflags )
185
        if ( scalar @asflags );
191
        if ( scalar @asflags );
186
    PlatformEntry( "AVR_IAR_ASDEFINES\t=",    "\n", "\\\n\t", "", @asdefines )
192
    PlatformEntry( "AVR_IAR_ASDEFINES\t=",  "\n", "\\\n\t", "", @asdefines )
187
        if ( scalar @asdefines );
193
        if ( scalar @asdefines );
188
 
194
 
189
}
195
}
190
 
196
 
191
 
197