diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2012-12-22 15:50:07 -0500 |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2012-12-22 15:50:07 -0500 |
commit | 79740248ffa7d8d4461cab58ef915f50cd562d90 (patch) | |
tree | e270a76e7eaf3b701d37c440cf183162ac86919e /test/LINK | |
parent | d6ea936cf24a7e59dd3fbd1fa3cbd0600f41bec2 (diff) | |
download | scons-79740248ffa7d8d4461cab58ef915f50cd562d90.tar.gz |
Make VersionedSharedLib and its test not fail on Windows
Diffstat (limited to 'test/LINK')
-rw-r--r-- | test/LINK/VersionedLib.py | 15 |
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= [
|