| 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 = calculator |
| 25 |
|
| 26 |
SUBDIRS += components |
| 27 |
|
| 28 |
QML_FILES += $$files(*.qml,true) \ |
| 29 |
$$files(*.js,true) \ |
| 30 |
components |
| 31 |
|
| 32 |
CONF_FILES += $${TARGET}.apparmor \ |
| 33 |
$${TARGET}.png \ |
| 34 |
$${TARGET}.wav |
| 35 |
|
| 36 |
OTHER_FILES += $${CONF_FILES} \ |
| 37 |
$${QML_FILES} \ |
| 38 |
$${TARGET}.desktop \ |
| 39 |
`` |
| 40 |
|
| 41 |
#specify where the qml/js files are installed to |
| 42 |
qml_files.files += $${QML_FILES} |
| 43 |
|
| 44 |
#specify where the config files are installed to |
| 45 |
config_files.files += $${CONF_FILES} |
| 46 |
|
| 47 |
#install the desktop file, a translated version is |
| 48 |
#automatically created in the build directory |
| 49 |
desktop_file.files = $${TARGET}.desktop |
| 50 |
desktop_file.CONFIG += no_check_exist |
| 51 |
|
| 52 |
INSTALLS+=config_files qml_files desktop_file |