-
Notifications
You must be signed in to change notification settings - Fork 1
/
pkg.pri
54 lines (45 loc) · 2.07 KB
/
pkg.pri
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
# This file is an interim measure until deployment becomes more clear for
# the Qt5 SDK and Qt3D. Read this file in conjunction with the logic in
# qmlres.cpp. Once Qt5 is stable and deployment is clear this will be
# removed. Also check the README file.
# package the binary wrapper that launches the QML
testcase|qmltestcase: \
target.path = $$[QT_INSTALL_TESTS]/$$TARGET
else: \
target.path = $$[QT_INSTALL_EXAMPLES]/qt3d
INSTALLS += target
macx: \
resource_dir = $${TARGET}.app/Contents/Resources
else: \
resource_dir = resources/$$CATEGORY/$${TARGET}
DESTDIR = $$shadowed($$PWD)/bin
# The QML_INFRA_FILES and QML_MESHES_FILES are both about QML based
# applications, so we'll install them into QT_INSTALL_DATA instead of
# QT_INSTALL_BINS
# QML_INFRA_FILES is used by our quick3d demos and examples to indicate files
# that are part of the application and should be installed (e.g. qml files,
# images, meshes etc).
# This conditional serves two purposes:
# 1) Set up a qmake extra compiler to copy relevant QML files at build time
# to allow for a normal "change, make, test" developement cycle
# 2) Set up appropriate install paths on the same files to use "make install"
# for building packages
!isEmpty(QML_INFRA_FILES) {
# rules to copy files from the *base level* of $$PWD/qml into the right place
copyqmlinfra_install.files = $$QML_INFRA_FILES
copyqmlinfra_install.path = $$target.path/$$resource_dir/qml
INSTALLS += copyqmlinfra_install
# put all our demos/examples and supporting files into $BUILD_DIR/bin
copyqmlinfra.files = $$QML_INFRA_FILES
copyqmlinfra.path = $$DESTDIR/$$resource_dir/qml
COPIES += copyqmlinfra
}
!isEmpty(QML_MESHES_FILES) {
# rules to copy files from the *base level* of $$PWD/qml/meshes into the right place
copyqmlmeshes_install.files = $$QML_MESHES_FILES
copyqmlmeshes_install.path = $$target.path/$$resource_dir/qml/meshes
INSTALLS += copyqmlmeshes_install
copyqmlmeshes.files = $$QML_MESHES_FILES
copyqmlmeshes.path = $$DESTDIR/$$resource_dir/qml/meshes
COPIES += copyqmlmeshes
}