6 if ($ENV{PATH} =~ m!\\Symbian\\(.+?)\\gcc\\bin!) {
8 $WIN = $cc =~ m!_CW!i ? 'winscw' : 'wins';
10 if ($cc =~ m!Series60_v20!) {
12 } elsif ($cc =~ m!Series60_v21!) {
14 } elsif ($cc =~ m!S60_2nd_FP2!) {
19 if (open(GCC, "gcc -v 2>&1|")) {
21 if (/Reading specs from ((?:C:)?\\Symbian.+?)\\Epoc32\\/i) {
23 # The S60SDK tells the Series 60 SDK version.
24 if ($SDK eq 'C:\Symbian\6.1\Shared') { # Visual C.
25 $SDK = 'C:\Symbian\6.1\Series60';
27 } elsif ($SDK eq 'C:\Symbian\Series60_1_2_CW') { # CodeWarrior.
35 die "$0: failed to run gcc: $!\n";
38 my $UARM = $ENV{UARM} ? $ENV{UARM} : "urel";
39 my $UREL = "$SDK\\epoc32\\release\\-ARM-\\$UARM";
40 if ($SDK eq 'C:\Symbian\6.1\Series60' && $ENV{WIN} eq 'winscw') {
41 $UREL = "C:\\Symbian\\Series60_1_2_CW\\epoc32\\release\\-ARM-\\urel";
46 die "$0: failed to locate the Symbian SDK\n" unless defined $SDK;