Subversion Repositories DevTools

Rev

Rev 6619 | Rev 7018 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6619 Rev 7009
Line 107... Line 107...
107
    my( @libflags, @ldflags, @ldflags_debug, @ldflags_prod ) = ();
107
    my( @libflags, @ldflags, @ldflags_debug, @ldflags_prod ) = ();
108
    my $is_vs2005;
108
    my $is_vs2005;
109
    my $default_ehandling = undef;
109
    my $default_ehandling = undef;
110
    my @pDefines;
110
    my @pDefines;
111
    my $stack = '0x10000,0x1000';
111
    my $stack = '0x10000,0x1000';
-
 
112
    my $findRc;
112
 
113
 
113
#.. Standard.rul requirements
114
#.. Standard.rul requirements
114
#
115
#
115
    $::s = "asm";
116
    $::s = "asm";
116
    $::o = "obj";
117
    $::o = "obj";
Line 158... Line 159...
158
        } elsif (/^--NoDinkumware/) {           # Deprecated switch
159
        } elsif (/^--NoDinkumware/) {           # Deprecated switch
159
 
160
 
160
        } elsif (/^--Define=(.*)/ ) {
161
        } elsif (/^--Define=(.*)/ ) {
161
            push @pDefines, '-D' . $1;
162
            push @pDefines, '-D' . $1;
162
 
163
 
-
 
164
        } elsif (/^--FindRc/i ) {
-
 
165
            $findRc = 1;
-
 
166
 
163
        } else {
167
        } else {
164
            Message( "$toolset_name toolset: unknown platform argument $_ -- ignored\n" );
168
            Message( "$toolset_name toolset: unknown platform argument $_ -- ignored\n" );
165
        }
169
        }
166
    }
170
    }
167
 
171
 
Line 221... Line 225...
221
        'PA962'             => 'WCE_PLATFORM_PA962',
225
        'PA962'             => 'WCE_PLATFORM_PA962',
222
        'PA962 WINCE 500'   => 'WCE_PLATFORM_PA962',
226
        'PA962 WINCE 500'   => 'WCE_PLATFORM_PA962',
223
        'M81B_SDK'          => 'WCE_PLATFORM_M81B',                 # Just made this one up
227
        'M81B_SDK'          => 'WCE_PLATFORM_M81B',                 # Just made this one up
224
        'VixArmv4iGeneric'  => 'WCE_PLATFORM_VIXARMV4I_GENERIC',    # Just made this one up
228
        'VixArmv4iGeneric'  => 'WCE_PLATFORM_VIXARMV4I_GENERIC',    # Just made this one up
225
        'PocketPC'          => 'WIN32_PLATFORM_PSPC',
229
        'PocketPC'          => 'WIN32_PLATFORM_PSPC',
-
 
230
        'dc5000_som_4466_sdk' => 'WCE_PLATFORM_som_4466_sdk',       # Just made this one up
226
    );
231
    );
227
 
232
 
228
    unless ( $WCEPlatform eq 'NONE' )
233
    unless ( $WCEPlatform eq 'NONE' )
229
    {
234
    {
230
        $WCEPlatformDefine = $PlatformSDKDefinitions{$WCEPlatform};
235
        $WCEPlatformDefine = $PlatformSDKDefinitions{$WCEPlatform};
Line 244... Line 249...
244
    $WCESubsystem = "windowsce," . int($WCEVersion/100) . "." . $WCEVersion%100
249
    $WCESubsystem = "windowsce," . int($WCEVersion/100) . "." . $WCEVersion%100
245
        if ( !defined($WCESubsystem) || $WCESubsystem eq "" );
250
        if ( !defined($WCESubsystem) || $WCESubsystem eq "" );
246
 
251
 
247
        push( @ldflags,     '-debug:full' ) unless ($is_vs2005);
252
        push( @ldflags,     '-debug:full' ) unless ($is_vs2005);
248
        push( @ldflags,     '-debug' )      if ($is_vs2005);
253
        push( @ldflags,     '-debug' )      if ($is_vs2005);
-
 
254
 
-
 
255
#
-
 
256
#   VS2008 may nothave installed rc.exe correctly
-
 
257
#       May have to set up PATH to locate a copy
-
 
258
#       
-
 
259
if ($findRc) {
-
 
260
    my $rcPath;
-
 
261
    my $programFiles = $ENV{PROGRAMFILES};
-
 
262
    Error ('EnvVar PROGRAMFILES not defined') unless $programFiles;
-
 
263
    Error ('EnvVar PROGRAMFILES does not reference a directory') unless -d $programFiles;
-
 
264
 
-
 
265
    my @GuessList = (
-
 
266
        'Windows Kits/8.0/bin/x86',
-
 
267
        'Windows Kits/8.1/bin/x86/rc.exe',
-
 
268
        'Microsoft SDKs/Windows/v7.1A/Bin'
-
 
269
        );
-
 
270
 
-
 
271
    foreach my $testDir ( @GuessList) {
-
 
272
        my $testPath = CatPaths($programFiles, $testDir, 'rc.exe' );
-
 
273
        if (-f $testPath) {
-
 
274
            $rcPath = $testDir;
-
 
275
            last;
-
 
276
        }
-
 
277
    }
-
 
278
    Warning ('RC.EXE cannot be located') unless $rcPath;
-
 
279
    PlatformDefine ('RCPATH := $(PROGRAMFILES)/' . $rcPath )
-
 
280
    
-
 
281
}
249
        
282
        
250
#.. Select toolchain info , based on targetCPU
283
#.. Select toolchain info , based on targetCPU
251
 
284
 
252
    if ( $WCETargetCPU eq "armv4" ) {
285
    if ( $WCETargetCPU eq "armv4" ) {
253
        $compiler           = "clarm";
286
        $compiler           = "clarm";