examples.pri
30 lines
| 1.0 KiB
| text/plain
|
TextLexer
/ examples / examples.pri
Michal Klocek
|
r996 | !include( ../config.pri ) { | ||
error( "Couldn't find the config.pri file!" ) | ||||
Michal Klocek
|
r246 | } | ||
Michal Klocek
|
r252 | DESTDIR = $$CHART_BUILD_BIN_DIR | ||
Michal Klocek
|
r1198 | OBJECTS_DIR = $$CHART_BUILD_DIR/examples/$$TARGET | ||
MOC_DIR = $$CHART_BUILD_DIR/examples/$$TARGET | ||||
UI_DIR = $$CHART_BUILD_DIR/examples/$$TARGET | ||||
RCC_DIR = $$CHART_BUILD_DIR/examples/$$TARGET | ||||
Michal Klocek
|
r252 | |||
Michal Klocek
|
r246 | TEMPLATE = app | ||
Jani Honkonen
|
r1440 | QT += core gui | ||
Marek Rosa
|
r2048 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets | ||
Jani Honkonen
|
r1440 | |||
# staticlib config causes problems when building executables | ||||
staticlib: CONFIG-=staticlib | ||||
Heikkinen Miikka
|
r2523 | |||
android { | ||||
# Workaround to fix android deployment, which seems to always look for target in | ||||
# OUT_PWD instead of DESTDIR. | ||||
QMAKE_POST_LINK += $$QMAKE_COPY $$CHART_BUILD_BIN_DIR/lib$${TARGET}.so $$OUT_PWD/lib$${TARGET}.so | ||||
contains(TARGET, qml.*) { | ||||
charts_qmldir.files = $$CHART_BUILD_QML_PLUGIN_DIR/qmldir | ||||
charts_qmldir.path = /assets/imports/QtCommercial/Chart | ||||
charts_qmlplugin.files = $$CHART_BUILD_QML_PLUGIN_DIR/libqtcommercialchartqml.so | ||||
charts_qmlplugin.path = /libs/$$ANDROID_TARGET_ARCH | ||||
INSTALLS += charts_qmldir charts_qmlplugin | ||||
} | ||||
} | ||||