summaryrefslogtreecommitdiff
path: root/test/LINK
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2012-12-22 15:50:07 -0500
committerGary Oberbrunner <garyo@oberbrunner.com>2012-12-22 15:50:07 -0500
commit79740248ffa7d8d4461cab58ef915f50cd562d90 (patch)
treee270a76e7eaf3b701d37c440cf183162ac86919e /test/LINK
parentd6ea936cf24a7e59dd3fbd1fa3cbd0600f41bec2 (diff)
downloadscons-79740248ffa7d8d4461cab58ef915f50cd562d90.tar.gz
Make VersionedSharedLib and its test not fail on Windows
Diffstat (limited to 'test/LINK')
-rw-r--r--test/LINK/VersionedLib.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/LINK/VersionedLib.py b/test/LINK/VersionedLib.py
index 34bef2a5..0d457894 100644
--- a/test/LINK/VersionedLib.py
+++ b/test/LINK/VersionedLib.py
@@ -46,6 +46,9 @@ env.Default(instnode)
""")
test.write('test.c', """\
+#if _WIN32
+__declspec(dllexport)
+#endif
int testlib(int n)
{
return n+1 ;
@@ -95,6 +98,18 @@ elif platform == 'darwin':
'libtest.dylib',
'libtest.2.5.4.dylib',
]
+elif platform == 'win32':
+ # All (?) the files we expect will get created in the current directory
+ files = [
+ 'test.dll',
+ 'test.lib',
+ 'test.obj',
+ ]
+ # All (?) the files we expect will get created in the 'installtest' directory
+ instfiles = [
+ 'test.dll',
+ 'test.lib',
+ ]
else:
# All (?) the files we expect will get created in the current directory
files= [