diff options
author | Adam Russell <arussell@cs.uml.edu> | 2009-07-03 01:33:30 -0400 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2009-07-03 14:28:56 +0200 |
commit | 2f2424c095fe9309b45a18d220d8fff71ac59565 (patch) | |
tree | 2f3a9742e903004b4101bde8e7d7d76aa993e735 /symbian | |
parent | 3f16acfd45f6cf4dce6b90474f865dee8636a1a0 (diff) | |
download | perl-2f2424c095fe9309b45a18d220d8fff71ac59565.tar.gz |
Osvaldo Villalon's changes to sdk.pl.
This patch cleans up symbian/sdk.pl.
Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
Diffstat (limited to 'symbian')
-rw-r--r-- | symbian/sdk.pl | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/symbian/sdk.pl b/symbian/sdk.pl index ef0db0a276..c8845e8108 100644 --- a/symbian/sdk.pl +++ b/symbian/sdk.pl @@ -12,7 +12,7 @@ if ($ENV{PATH} =~ m!\\Symbian\\(.+?)\\(.+?)\\Epoc32\\gcc\\bin!i) { $SDK_NAME = $2; $WIN = ($SDK_NAME =~ m!_CW!i || $SDK_NAME eq '8.1a') ? 'winscw' : 'wins'; - $ENV{WIN} = $WIN; + $ENV{WIN} = $WIN; if ($SDK_NAME =~ m!Series60_v20!) { $SDK_VARIANT = 'S60'; $SDK_VERSION = $ENV{S60SDK} = '2.0'; @@ -32,6 +32,13 @@ if ($ENV{PATH} =~ m!\\Symbian\\(.+?)\\(.+?)\\Epoc32\\gcc\\bin!i) { $SDK_VARIANT = 'S90'; $SDK_VERSION = $ENV{S90SDK} = '1.1'; } +} elsif ($ENV{PATH} =~ m!\\S60\\devices\\(.+?)\\epoc32\\gcc\\bin!i) { + $SDK_VARIANT = 'S60'; + $SDK_NAME = $1; + $WIN = $ENV{WIN} = 'winscw'; + $SYMBIAN_VERSION = '9.4'; + $SDK_VERSION = $ENV{S60SDK} = '5.0'; + $SYMBIAN_ROOT = $ENV{EPOCROOT}; } elsif ($ENV{PATH} =~ m!\\Symbian\\UIQ_(\d)(\d)\\Epoc32\\gcc\\bin!i) { $SDK_NAME = 'UIQ'; $SDK_VARIANT = 'UIQ'; @@ -42,7 +49,7 @@ if ($ENV{PATH} =~ m!\\Symbian\\(.+?)\\(.+?)\\Epoc32\\gcc\\bin!i) { die "$0: Unknown UIQ version '$SDK_VERSION'\n"; } $WIN = 'winscw'; # This is CodeWarrior, how about Borland? - $ENV{WIN} = $WIN; + $ENV{WIN} = $WIN; } if (open(GCC, "gcc -v 2>&1 |")) { @@ -52,7 +59,7 @@ if (open(GCC, "gcc -v 2>&1 |")) { $SYMBIAN_ROOT = $1; # The S60SDK tells the Series 60 SDK version. if ($ENV{S60SDK}) { - if ($SYMBIAN_ROOT eq 'C:\Symbian\6.1\Shared') { # Visual C. + if ($SYMBIAN_ROOT eq 'C:\Symbian\6.1\Shared') { # Visual C. $SYMBIAN_ROOT = 'C:\Symbian\6.1\Series60'; $SDK_VERSION = $ENV{S60SDK} = '1.2'; } elsif ($SYMBIAN_ROOT eq 'C:\Symbian\Series60_1_2_CW') { # CodeWarrior. @@ -67,15 +74,6 @@ if (open(GCC, "gcc -v 2>&1 |")) { die "$0: failed to run gcc: $!\n"; } -# Configuration for S60 5th Edition SDK v0.9 -$SYMBIAN_VERSION = '9.4'; -$SDK_NAME = 'S60_5th_Edition_SDK'; -$WIN = 'winscw'; -$ENV{WIN} = $WIN; -$SDK_VARIANT = 'S60'; -$SDK_VERSION = $ENV{S60SDK} = '5.0'; -$SYMBIAN_ROOT = '\\'; - die "$0: failed to locate the Symbian SDK\n" unless defined $SYMBIAN_ROOT; my $UARM = $ENV{UARM} ? $ENV{UARM} : "urel"; @@ -121,7 +119,7 @@ $ENV{UARM} = $UARM; # set INCLUDE=%MSVC_INC% # set LIB=%MSVC_LIB% # set USERDEFS=%USERDEFS% -D__SERIES60_12__ -D__SERIES60_MAJOR__=1 -D__SERIES60_MINOR__=2 -D__SERIES60_1X__ -# +# # s60-2.0-cw: # # set EPOCROOT=\Symbian\7.0s\Series60_v20_CW\ @@ -129,7 +127,7 @@ $ENV{UARM} = $UARM; # symbiancommon # set PATH=%EPOC_BIN%;%MWCW%\Bin;%MWCW%\Symbian_Tools\Command_Line_Tools;%MSVC_BIN%;C:\perl\bin;C:\winnt\system32;%PATH% # set USERDEFS=%USERDEFS% -D__SERIES60_20__ -D__SERIES60_MAJOR__=2 -D__SERIES60_MINOR__=0 -D__SERIES60_2X__ -# +# # s60-2.0-vc: # # set EPOCROOT=\Symbian\7.0s\Series60_v20\ @@ -139,7 +137,7 @@ $ENV{UARM} = $UARM; # set INCLUDE=%MSVC_INC% # set LIB=%MSVC_LIB% # set USERDEFS=%USERDEFS% -D__SERIES60_20__ -D__SERIES60_MAJOR__=2 -D__SERIES60_MINOR__=0 -D__SERIES60_2X__ -# +# # s60-2.1-cw: # # set EPOCROOT=\Symbian\7.0s\Series60_v21_CW\ @@ -147,7 +145,7 @@ $ENV{UARM} = $UARM; # symbiancommon # set PATH=%EPOC_BIN%;%MWCW%\Bin;%MWCW%\Symbian_Tools\Command_Line_Tools;%MSVC_BIN%;C:\perl\bin;C:\winnt\system32;%PATH% # set USERDEFS=%USERDEFS% -D__SERIES60_21__ -D__SERIES60_MAJOR__=2 -D__SERIES60_MINOR__=1 -D__SERIES60_2X__ -# +# # s60-2.6-cw: # # set EPOCROOT=\Symbian\8.0a\S60_2nd_FP2_CW\ @@ -155,7 +153,7 @@ $ENV{UARM} = $UARM; # symbiancommon # set PATH=%EPOC_BIN%;%MWCW%\Bin;%MWCW%\Symbian_Tools\Command_Line_Tools;%MSVC_BIN%;C:\perl\bin;C:\winnt\system32;%PATH% # set USERDEFS=%USERDEFS% -D__SERIES60_26__ -D__SERIES60_MAJOR__=2 -D__SERIES60_MINOR__=6 -D__SERIES60_2X__ -D__BLUETOOTH_API_V2__ -# +# # s60-2.6-vc: # # set EPOCROOT=\Symbian\8.0a\S60_2nd_FP2\ @@ -165,7 +163,7 @@ $ENV{UARM} = $UARM; # set INCLUDE=%MSVC_INC% # set LIB=%MSVC_LIB% # set USERDEFS=%USERDEFS% -D__SERIES60_26__ -D__SERIES60_MAJOR__=2 -D__SERIES60_MINOR__=6 -D__SERIES60_2X__ -D__BLUETOOTH_API_V2__ -# +# # s60-2.8-cw: # # set EPOCROOT=\Symbian\8.1a\S60_2nd_FP3\ @@ -173,7 +171,7 @@ $ENV{UARM} = $UARM; # symbiancommon # set PATH=%EPOC_BIN%;%MWCW%\Bin;%MWCW%\Symbian_Tools\Command_Line_Tools;%MSVC_BIN%;C:\perl\bin;C:\winnt\system32;%PATH% # set USERDEFS=%USERDEFS% -D__SERIES60_28__ -D__SERIES60_MAJOR__=2 -D__SERIES60_MINOR__=8 -D__SERIES60_2X__ -D__BLUETOOTH_API_V2__ -# +# # s60-2.8-vc: # # set EPOCROOT=\Symbian\8.1a\S60_2nd_FP3\ @@ -182,6 +180,11 @@ $ENV{UARM} = $UARM; # set PATH=%EPOC_BIN%;%MSVC_BIN%;C:\perl\bin;C:\winnt\system32;%PATH% # set USERDEFS=%USERDEFS% -D__SERIES60_28__ -D__SERIES60_MAJOR__=2 -D__SERIES60_MINOR__=8 -D__SERIES60_2X__ -D__BLUETOOTH_API_V2__ # +# s60-5.0 - S60 5th Edition SDK v1.0: +# +# set EPOCROOT=\S60\devices\S60_5th_Edition_SDK_v1.0\ +# set PATH=%EPOCROOT%Epoc32\gcc\bin;%EPOCROOT%Epoc32\tools;%PATH% +# # s80-2.0-cw: # # set EPOCROOT=\Symbian\7.0s\S80_DP2_0_SDK_CW\ @@ -210,9 +213,4 @@ $ENV{UARM} = $UARM; # set PATH=%EPOC_BIN%;%MWCW%\Bin;%MWCW%\Symbian_Tools\Command_Line_Tools;%MSVC_BIN%;C:\perl\bin;C:\winnt\system32;%PATH% # set USERDEFS=%USERDEFS% -D__UIQ_21__ -D__UIQ_MAJOR__=2 -D__UIQ_MINOR__=1 -D__UIQ_2X__ # -# Configuration for S60 5th Edition SDK v0.9 -#set EPOCROOT=\ -#set PATH=%EPOCROOT%epoc32\gcc\bin;%EPOCROOT%epoc32\tools;%PATH% -# # EOF - |