Commit 367aed24 authored by Martin Straka's avatar Martin Straka

Merge branch 'pro-file-update' into 'develop'

Pro file update

See merge request !107
parents 119758ed a1c27d55
......@@ -63,23 +63,20 @@ SOURCES += qml/*.qml \
qml/pages/*.qml
}
# run LRELEASE to generate the qm files
# Run lrelease to generate the qm files.
qtPrepareTool(LRELEASE, lrelease)
contains(QMAKE_HOST.os, Windows) {
# Remove shell quotes and replace them with system quotes.
LRELEASE=$$replace(LRELEASE, "'", "")
LRELEASE=$$system_quote($$LRELEASE)
}
command = $$LRELEASE mobile-datovka.pro
system($$command)|error("Failed to run: $$command")
# Copy translation files at qmake invocation.
win32|winphone|winrt|android {
message(Copying Qt translation from $$shell_path($$[QT_INSTALL_DATA]).)
system($$QMAKE_COPY $$shell_path($$[QT_INSTALL_DATA])\translations\qtbase_cs.qm res\locale\qtbase_cs.qm)
system($$QMAKE_COPY $$shell_path($$[QT_INSTALL_DATA])\translations\qtbase_en.qm res\locale\qtbase_en.qm)
} else:macx|osx|ios|unix {
message(Copying Qt translation from $$[QT_INSTALL_DATA].)
system($$QMAKE_COPY $$[QT_INSTALL_DATA]/translations/qtbase_cs.qm res/locale/qtbase_cs.qm)
system($$QMAKE_COPY $$[QT_INSTALL_DATA]/translations/qtbase_en.qm res/locale/qtbase_en.qm)
} else {
message(For this target you must copy Qt translation (qtbase_cs.qm) from $$[QT_INSTALL_DATA]/translations/.)
}
message(Copying Qt translation from $$system_path($$[QT_INSTALL_DATA]).)
system($$QMAKE_COPY $$system_path($$[QT_INSTALL_DATA]/translations/qtbase_cs.qm) $$system_path(res/locale/qtbase_cs.qm))
system($$QMAKE_COPY $$system_path($$[QT_INSTALL_DATA]/translations/qtbase_en.qm) $$system_path(res/locale/qtbase_en.qm))
TRANSLATIONS_FILES += \
res/locale/qtbase_cs.qm \
......@@ -235,13 +232,25 @@ osx: ICON = res/datovka.icns
linux: ICON = res/datovka.png
# ios target.
ios: system(sed -e "s/@VERSION@/$${VERSION}/g" "ios/Info.tmp" > "ios/Info.plist")
ios: include(ios/ios.pri)
ios {
system(sed -e "s/@VERSION@/$${VERSION}/g" "ios/Info.tmp" > "ios/Info.plist")
include(ios/ios.pri)
}
# android target.
android: system(sed.exe -e "s/@VERSION@/$${VERSION}/g" "android/AndroidManifest.tmp" > "android/AndroidManifest.xml")
android: ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
android: include(android/android.pri)
android {
contains(QMAKE_HOST.os, Windows) {
system(sed.exe -e "s/@VERSION@/$${VERSION}/g" "android/AndroidManifest.tmp" > "android/AndroidManifest.xml")
}
contains(QMAKE_HOST.os, Linux) {
system(sed -e "s/@VERSION@/$${VERSION}/g" "android/AndroidManifest.tmp" > "android/AndroidManifest.xml")
}
contains(QMAKE_HOST.os, Darwin) {
system(sed -e "s/@VERSION@/$${VERSION}/g" "android/AndroidManifest.tmp" > "android/AndroidManifest.xml")
}
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
include(android/android.pri)
}
# winphone|winrt target.
winphone|winrt: include(winrt/winrt.pri)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment