Commit f71c4a0d authored by Martin Straka's avatar Martin Straka

Updated project file

parent 119758ed
......@@ -69,7 +69,7 @@ command = $$LRELEASE mobile-datovka.pro
system($$command)|error("Failed to run: $$command")
# Copy translation files at qmake invocation.
win32|winphone|winrt|android {
win32|winphone|winrt {
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)
......@@ -77,6 +77,17 @@ win32|winphone|winrt|android {
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:android {
contains(QMAKE_PLATFORM, win32) {
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)
}
contains(QMAKE_PLATFORM, 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/.)
}
......@@ -239,9 +250,16 @@ ios: system(sed -e "s/@VERSION@/$${VERSION}/g" "ios/Info.tmp" > "ios/Info.plist"
ios: 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_PLATFORM, win32) {
system(sed.exe -e "s/@VERSION@/$${VERSION}/g" "android/AndroidManifest.tmp" > "android/AndroidManifest.xml")
}
contains(QMAKE_PLATFORM, unix) {
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