~gabriel1984sibiu/minitube/qt5.6

« back to all changes in this revision

Viewing changes to tests/auto/corelib/plugin/qlibrary/lib2/lib2.pro

  • Committer: Grevutiu Gabriel
  • Date: 2017-06-13 08:43:17 UTC
  • Revision ID: gabriel1984sibiu@gmail.com-20170613084317-ek0zqe0u9g3ocvi8
OriginalĀ upstreamĀ code

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
TEMPLATE = lib
 
2
CONFIG += dll
 
3
CONFIG -= staticlib
 
4
SOURCES         = mylib.c
 
5
TARGET = mylib
 
6
DESTDIR = ../
 
7
VERSION = 2
 
8
QT = core
 
9
 
 
10
wince: DEFINES += WIN32_MSVC
 
11
win32-msvc: DEFINES += WIN32_MSVC
 
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
win32 {
 
17
    CONFIG(debug, debug|release) {
 
18
        BUILD_FOLDER = debug
 
19
    } else {
 
20
        BUILD_FOLDER = release
 
21
    }
 
22
    DESTDIR = ../$$BUILD_FOLDER/
 
23
 
 
24
    # vcproj and Makefile generators refer to target differently
 
25
    contains(TEMPLATE,vc.*) {
 
26
        src = $(TargetPath)
 
27
    } else {
 
28
        src = $(DESTDIR_TARGET)
 
29
    }
 
30
    files = $$BUILD_FOLDER$${QMAKE_DIR_SEP}mylib.dl2 $$BUILD_FOLDER$${QMAKE_DIR_SEP}system.qt.test.mylib.dll
 
31
} else {
 
32
    src = $(DESTDIR)$(TARGET)
 
33
    files = libmylib.so2 system.qt.test.mylib.so
 
34
}
 
35
 
 
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
 
39
 
 
40
for(file, files) {
 
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
 
44
}
 
45
renamed_target.extra = $$member(renamed_target.extra, 0, -2)
 
46
QMAKE_POST_LINK = $$member(QMAKE_POST_LINK, 0, -2)
 
47
 
 
48
INSTALLS += target renamed_target