diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-12-02 11:14:00 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-12-02 11:15:54 (GMT) |
commit | b495786061febf5e4c6baddbd6443f44f142c627 (patch) | |
tree | a27594b08d1380c989660a6835df6917dedc91d1 /tests/auto/qlibrary/lib2 | |
parent | a635388887a869bac928f3b93d0e24e532af301f (diff) | |
download | Qt-b495786061febf5e4c6baddbd6443f44f142c627.zip Qt-b495786061febf5e4c6baddbd6443f44f142c627.tar.gz Qt-b495786061febf5e4c6baddbd6443f44f142c627.tar.bz2 |
really fix mingw+msys
i missed the fact that lib2/ was duplicating the magic (totally
pointlessly). so now all the magic moved to lib2/, as lib/ is not used
on symbian anyway.
Diffstat (limited to 'tests/auto/qlibrary/lib2')
-rw-r--r-- | tests/auto/qlibrary/lib2/lib2.pro | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/tests/auto/qlibrary/lib2/lib2.pro b/tests/auto/qlibrary/lib2/lib2.pro index fc00af8..da30a2d 100644 --- a/tests/auto/qlibrary/lib2/lib2.pro +++ b/tests/auto/qlibrary/lib2/lib2.pro @@ -14,15 +14,19 @@ win32-borland: DEFINES += WIN32_BORLAND # Force a copy of the library to have an extension that is non-standard. # We want to test if we can load a shared library with *any* filename... -# For windows test if we can load a filename with multiple dots. -win32: { - QMAKE_POST_LINK = copy /Y ..\mylib2.dll ..\mylib.dl2 && \ - copy /Y ..\mylib2.dll ..\system.trolltech.test.mylib.dll -} - -unix:!symbian: { - QMAKE_POST_LINK = cp -f $(DESTDIR)$(TARGET) ../libmylib.so2 && \ - cp -f $(DESTDIR)$(TARGET) ../system.trolltech.test.mylib.so +!symbian { + win32 { + src = $(DESTDIR_TARGET) + files = mylib.dl2 system.trolltech.test.mylib.dll + } else { + src = $(DESTDIR)$(TARGET) + files = libmylib.so2 system.trolltech.test.mylib.so + } + for(file, files) { + QMAKE_POST_LINK += $(COPY) $$src ..$$QMAKE_DIR_SEP$$file && + CLEAN_FILES += ../$$file + } + QMAKE_POST_LINK = $$member(QMAKE_POST_LINK, 0, -2) } symbian-abld: { |