blob: 3dea0d9d182a596b7a9e1c668ac4a025f079c0b7 (
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
69
70
71
72
73
74
|
mt {
desktopfile.files = $${TARGET}.qmlproject info.json
desktopfile.path = /opt/mt/applications/$$TARGET
icon.files = $$ICON_FILE
icon.path = /opt/mt/applications/$$TARGET
INSTALLS += desktopfile icon
}
!package: DESTDIR = ../../../bin
!isEmpty(QML_INFRA_FILES) {
# rules to copy files from the *base level* of $$PWD/qml into the right place
package {
copyqmlinfra_install.files = $$QML_INFRA_FILES
mt {
copyqmlwrap.files = mt.qml
copyqmlwrap.path = /opt/mt/applications/$$TARGET
INSTALLS += copyqmlwrap
copyqmlinfra_install.path = /opt/mt/applications/$$TARGET/qml
} else {
macx {
copyqmlinfra_install.path = $$DESTDIR/$${TARGET}.app/Contents/Resources/qml
} else {
copyqmlinfra_install.path = $$DESTDIR/resources/$$CATEGORY/$${TARGET}/qml
}
}
INSTALLS += copyqmlinfra_install
} else {
macx {
target_dir = $$DESTDIR/$${TARGET}.app/Contents/Resources/qml
} else {
target_dir = $$DESTDIR/resources/$$CATEGORY/$${TARGET}/qml
target_dir ~= s,/,$$QMAKE_DIR_SEP,
}
copyqmlinfra.input = QML_INFRA_FILES
copyqmlinfra.output = $$target_dir/${QMAKE_FILE_IN_BASE}${QMAKE_FILE_EXT}
win32: copyqmlinfra.commands = $$QMAKE_CHK_DIR_EXISTS $$target_dir
copyqmlinfra.commands += $(MKDIR) $$target_dir && $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
copyqmlinfra.CONFIG += no_link_no_clean
copyqmlinfra.variable_out = POST_TARGETDEPS
QMAKE_EXTRA_COMPILERS += copyqmlinfra
}
}
!isEmpty(QML_MESHES_FILES) {
# rules to copy files from the *base level* of $$PWD/qml/meshes into the right place
package {
copyqmlmeshes_install.files = $$QML_MESHES_FILES
mt {
copyqmlmeshes_install.path = /opt/mt/applications/$$TARGET/qml/meshes
} else {
macx {
copyqmlmeshes_install.path = $$DESTDIR/$${TARGET}.app/Contents/Resources/qml/meshes
} else {
copyqmlmeshes_install.path = $$DESTDIR/resources/$$CATEGORY/$${TARGET}/qml/meshes
}
}
INSTALLS += copyqmlmeshes_install
} else {
macx {
target_dir = $$DESTDIR/$${TARGET}.app/Contents/Resources/qml/meshes
} else {
target_dir = $$DESTDIR/resources/$$CATEGORY/$${TARGET}/qml/meshes
target_dir ~= s,/,$$QMAKE_DIR_SEP,
}
copyqmlmeshes.input = QML_MESHES_FILES
copyqmlmeshes.output = $$target_dir/${QMAKE_FILE_IN_BASE}${QMAKE_FILE_EXT}
win32: copyqmlmeshes.commands = $$QMAKE_CHK_DIR_EXISTS $$target_dir
copyqmlmeshes.commands += $(MKDIR) $$target_dir && $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
copyqmlmeshes.CONFIG += no_link_no_cle:qan
copyqmlmeshes.variable_out = POST_TARGETDEPS
QMAKE_EXTRA_COMPILERS += copyqmlmeshes
}
}
|