Debian Codegraph @

examples/unit-converter/unit-converter.pro

raw
1 TEMPLATE = subdirs
2
3 # Don't use Qt's internal example install system; it installs to the wrong directory.
4 # This is the side effect of piggy-back on Qt's internal part building system.
5 CONFIG -= qt_example_installs
6
7 # specify the manifest file, this file is required for click
8 # packaging and for the IDE to create runconfigurations
9 LOMIRI_MANIFEST_FILE=manifest.json.in
10
11 exists($$PWD/../examples.pro) {
12 desktop_file.path = $$[QT_INSTALL_EXAMPLES]/lomiri-ui-toolkit/examples/$${TARGET}
13 config_files.path = $$[QT_INSTALL_EXAMPLES]/lomiri-ui-toolkit/examples/$${TARGET}
14 qml_files.path = $$[QT_INSTALL_EXAMPLES]/lomiri-ui-toolkit/examples/$${TARGET}
15 config_files.files += $${LOMIRI_MANIFEST_FILE}
16 } else {
17 #load Lomiri specific features
18 load(lomiri-click)
19 qml_files.path = /
20 config_files.path = /
21 desktop_file.path = /
22 }
23
24 TARGET = unit-converter
25
26 QML_FILES += $$files(*.qml,true) \
27 $$files(*.js,true)
28
29 CONF_FILES += $${TARGET}.apparmor \
30 $${TARGET}.png
31
32 OTHER_FILES += $${CONF_FILES} \
33 $${QML_FILES} \
34 $${TARGET}.desktop
35
36 #specify where the qml/js files are installed to
37 qml_files.files += $${QML_FILES}
38
39 #specify where the config files are installed to
40 config_files.files += $${CONF_FILES}
41
42 #install the desktop file, a translated version is
43 #automatically created in the build directory
44 desktop_file.files = $${TARGET}.desktop
45 desktop_file.CONFIG += no_check_exist
46
47
48 INSTALLS+=config_files qml_files desktop_file