tests/auto/qlibrary/lib/lib.pro
changeset 0 1918ee327afb
child 3 41300fa6a67c
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 TEMPLATE = lib
       
     2 CONFIG += dll
       
     3 CONFIG -= staticlib
       
     4 SOURCES		= mylib.c
       
     5 TARGET = mylib
       
     6 DESTDIR = ../
       
     7 QT = core
       
     8 
       
     9 wince*: DEFINES += WIN32_MSVC
       
    10 win32-msvc: DEFINES += WIN32_MSVC
       
    11 win32-borland: DEFINES += WIN32_BORLAND
       
    12 
       
    13 # Force a copy of the library to have an extension that is non-standard.
       
    14 # We want to test if we can load a shared library with *any* filename...
       
    15 
       
    16 # For windows test if we can load a filename with multiple dots.
       
    17 win32: {
       
    18     QMAKE_POST_LINK = copy /Y $(DESTDIR_TARGET) ..\mylib.dl2 && \
       
    19     copy /Y $(DESTDIR_TARGET) ..\system.trolltech.test.mylib.dll && \
       
    20     copy /Y $(DESTDIR_TARGET) ..\mylib_noextension
       
    21 }
       
    22 unix:!symbian: {
       
    23     QMAKE_POST_LINK = cp -f $(DESTDIR)$(TARGET) ../libmylib.so2 && \
       
    24     cp -f $(DESTDIR)$(TARGET) ../system.trolltech.test.mylib.so
       
    25 }
       
    26 
       
    27 #no special install rule for the library used by test
       
    28 INSTALLS =
       
    29 
       
    30 symbian: TARGET.CAPABILITY=ALL -TCB
       
    31