tests/auto/qlibrary/lib/lib.pro
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 22 Jan 2010 10:32:13 +0200
changeset 1 ae9c8dab0e3e
parent 0 1918ee327afb
child 3 41300fa6a67c
permissions -rw-r--r--
Revision: 201001 Kit: 201003

TEMPLATE = lib
CONFIG += dll
CONFIG -= staticlib
SOURCES		= mylib.c
TARGET = mylib
DESTDIR = ../
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 $(DESTDIR_TARGET) ..\mylib.dl2 && \
    copy /Y $(DESTDIR_TARGET) ..\system.trolltech.test.mylib.dll && \
    copy /Y $(DESTDIR_TARGET) ..\mylib_noextension
}
unix:!symbian: {
    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 =

symbian: TARGET.CAPABILITY=ALL -TCB