This repository was archived by the owner on Aug 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.pri
More file actions
45 lines (37 loc) · 1.39 KB
/
install.pri
File metadata and controls
45 lines (37 loc) · 1.39 KB
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
isEmpty(TARGETPATH):error($$basename(_PRO_FILE_) must define TARGETPATH)
DESTDIR = $$APP_INSTALL_IMPORTS/$$member(TARGETPATH, 0)
NATIVE_FILES = $$QML_FILES native/qmldir
NATIVE_FILES -= qmldir
!symbian {
for(qmlfile, QML_FILES) {
ARGUMENTS = $$_PRO_FILE_PWD_/$$qmlfile $$DESTDIR
target = copy_$$lower($$basename(qmlfile))
target = $$replace(target, \\., _)
commands = $${target}.commands
$$commands += $$QMAKE_COPY $$replace(ARGUMENTS, /, $$QMAKE_DIR_SEP)
QMAKE_EXTRA_TARGETS += $$target
POST_TARGETDEPS += $$target
}
}
OTHER_FILES += $$QML_FILES
target.path = $$APP_INSTALL_IMPORTS/$$member(TARGETPATH, 0)
INSTALLS += target
for(targetpath, $$list($$unique(TARGETPATH))) {
installpath = $$APP_INSTALL_IMPORTS/$$targetpath
installpath = $$replace(installpath, \\\\, /)
!isEqual(targetpath, $$member(TARGETPATH, 0)) {
qmltarget = qmltarget_$$replace(targetpath, /, _)
eval($${qmltarget}.CONFIG += no_check_exist executable)
eval($${qmltarget}.files = $$DESTDIR/$(TARGET))
eval($${qmltarget}.files += stfu)
eval($${qmltarget}.path = $$installpath)
INSTALLS += $${qmltarget}
}
qmlfiles = qmlfiles_$$replace(targetpath, /, _)
eval($${qmlfiles}.files = $$QML_FILES)
eval($${qmlfiles}.path = $$installpath)
qmlimages = qmlimages_$$replace(targetpath, /, _)
eval($${qmlimages}.files = $$QML_IMAGES)
eval($${qmlimages}.path = $$installpath/images)
INSTALLS += $${qmlfiles} $${qmlimages}
}