10
wince: DEFINES += WIN32_MSVC
11
win32-msvc: DEFINES += WIN32_MSVC
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...
17
CONFIG(debug, debug|release) {
20
BUILD_FOLDER = release
22
DESTDIR = ../$$BUILD_FOLDER/
24
# vcproj and Makefile generators refer to target differently
25
contains(TEMPLATE,vc.*) {
28
src = $(DESTDIR_TARGET)
30
files = $$BUILD_FOLDER$${QMAKE_DIR_SEP}mylib.dl2 $$BUILD_FOLDER$${QMAKE_DIR_SEP}system.qt.test.mylib.dll
32
src = $(DESTDIR)$(TARGET)
33
files = libmylib.so2 system.qt.test.mylib.so
36
# This project is testdata for tst_qlibrary
37
target.path = $$[QT_INSTALL_TESTS]$${QMAKE_DIR_SEP}tst_qlibrary
38
renamed_target.path = $$target.path
41
QMAKE_POST_LINK += $$QMAKE_COPY $$src ..$$QMAKE_DIR_SEP$$file &&
42
renamed_target.extra += $$QMAKE_COPY $$src $(INSTALL_ROOT)$${target.path}$$QMAKE_DIR_SEP$$file &&
43
CLEAN_FILES += ..$$QMAKE_DIR_SEP$$file
45
renamed_target.extra = $$member(renamed_target.extra, 0, -2)
46
QMAKE_POST_LINK = $$member(QMAKE_POST_LINK, 0, -2)
48
INSTALLS += target renamed_target