blob: 52a249e43a69530c591dea3ca29dba2ea0930191 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
TEMPLATE = lib
TARGET = QtQuickTest$${QT_LIBINFIX}
CONFIG += dll warn_on
QT += declarative
DESTDIR = ../../lib
win32 {
CONFIG += debug_and_release debug_and_release_config build_all
DLLDESTDIR = ../../bin
!static:DEFINES += QT_MAKEDLL
CONFIG(debug, debug|release) {
TARGET = $$member(TARGET, 0)d
}
}
symbian {
DEFINES += QT_MAKEDLL
CONFIG += epocallowdlldata
contains(QT_EDITION, OpenSource) {
TARGET.CAPABILITY = LocalServices NetworkServices ReadUserData UserEnvironment WriteUserData
} else {
TARGET.CAPABILITY = All -Tcb
}
}
INCLUDEPATH += $$PWD/QtQuickTest
SOURCES += \
quicktest.cpp \
quicktestresult.cpp
HEADERS += \
QtQuickTest/quicktestglobal.h \
QtQuickTest/quicktest.h
PRIVATE_HEADERS += \
quicktestresult_p.h
PUBLIC_HEADERS += $$HEADERS
HEADERS += $$PRIVATE_HEADERS
include(testlib/testlib.pri)
DEFINES += QT_BUILD_QUCIK_TEST_LIB
!symbian {
target.path += $$[QT_INSTALL_LIBS]
INSTALLS += target
install_headers.path = $$[QT_INSTALL_HEADERS]/QtQuickTest
install_headers.files = $$PUBLIC_HEADERS
INSTALLS += install_headers
} else {
load(data_caging_paths)
quicktestMwHeaders = *.h
for(api, quicktestMwHeaders) {
entries=$$files($$api);
#files() attaches a ';' at the end which needs to be removed
entries=$$replace(entries, ;,)
for(entry, entries) {
exists($$entry) {
contains(PUBLIC_HEADERS, $$basename(entry)) {
BLD_INF_RULES.prj_exports += "$$entry $$MW_LAYER_PUBLIC_EXPORT_PATH(QtQuickTest/$$basename(entry))"
}
}
}
}
}
|