summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlibrary/lib2/lib2.pro
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2009-03-23 09:18:55 (GMT)
committerSimon Hausmann <simon.hausmann@nokia.com>2009-03-23 09:18:55 (GMT)
commite5fcad302d86d316390c6b0f62759a067313e8a9 (patch)
treec2afbf6f1066b6ce261f14341cf6d310e5595bc1 /tests/auto/qlibrary/lib2/lib2.pro
downloadQt-e5fcad302d86d316390c6b0f62759a067313e8a9.zip
Qt-e5fcad302d86d316390c6b0f62759a067313e8a9.tar.gz
Qt-e5fcad302d86d316390c6b0f62759a067313e8a9.tar.bz2
Long live Qt 4.5!
Diffstat (limited to 'tests/auto/qlibrary/lib2/lib2.pro')
-rw-r--r--tests/auto/qlibrary/lib2/lib2.pro30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/auto/qlibrary/lib2/lib2.pro b/tests/auto/qlibrary/lib2/lib2.pro
new file mode 100644
index 0000000..718c5c6
--- /dev/null
+++ b/tests/auto/qlibrary/lib2/lib2.pro
@@ -0,0 +1,30 @@
+TEMPLATE = lib
+CONFIG += dll
+CONFIG -= staticlib
+SOURCES = mylib.c
+TARGET = mylib
+DESTDIR = ../
+VERSION = 2
+QT = core
+
+wince*: DEFINES += WIN32_MSVC
+win32-msvc: DEFINES += WIN32_MSVC
+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: {
+ QMAKE_POST_LINK = cp -f $(DESTDIR)$(TARGET) ../libmylib.so2 && \
+ cp -f $(DESTDIR)$(TARGET) ../system.trolltech.test.mylib.so
+}
+
+#no special install rule for the library used by test
+INSTALLS =
+
+