summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-04-30 19:38:19 (GMT)
committerSteven Knight <knight@baldmt.com>2003-04-30 19:38:19 (GMT)
commit3387eab42442c7fe7ed0064de5b939497cc6df1b (patch)
tree3c34e3c08fe379c147c7166067d05a0a87fccaa6 /etc
parent212d77d88aa4374ef13f2e6bc7edf3395ac9736c (diff)
downloadSCons-3387eab42442c7fe7ed0064de5b939497cc6df1b.zip
SCons-3387eab42442c7fe7ed0064de5b939497cc6df1b.tar.gz
SCons-3387eab42442c7fe7ed0064de5b939497cc6df1b.tar.bz2
Test portability fixes for Cygwin. (Chad Austin)
Diffstat (limited to 'etc')
-rw-r--r--etc/TestSCons.py26
1 files changed, 25 insertions, 1 deletions
diff --git a/etc/TestSCons.py b/etc/TestSCons.py
index f9c4edf..4fe8b5b 100644
--- a/etc/TestSCons.py
+++ b/etc/TestSCons.py
@@ -24,9 +24,33 @@ import TestCmd
python = TestCmd.python_executable
-if string.find(sys.platform, 'irix') != -1:
+if sys.platform == 'win32':
+ _exe = '.exe'
+ _obj = '.obj'
+ _shobj = '.obj'
+ _dll = '.dll'
+ lib_ = ''
+ fortran_lib = 'g2c'
+elif sys.platform == 'cygwin':
+ _exe = '.exe'
+ _obj = '.o'
+ _shobj = '.os'
+ _dll = '.dll'
+ lib_ = ''
+ fortran_lib = 'g2c'
+elif string.find(sys.platform, 'irix') != -1:
+ _exe = ''
+ _obj = '.o'
+ _shobj = '.o'
+ _dll = '.so'
+ lib_ = 'lib'
fortran_lib = 'ftn'
else:
+ _exe = ''
+ _obj = '.o'
+ _shobj = '.os'
+ _dll = '.so'
+ lib_ = 'lib'
fortran_lib = 'g2c'
class TestFailed(Exception):