Commit bc3a0fdf authored by Martin Straka's avatar Martin Straka

Updated host detection in project file

parent cf950417
......@@ -75,26 +75,26 @@ system($$command)|error("Failed to run: $$command")
# Copy translation files at qmake invocation.
win32|winphone|winrt {
message(Copying Qt translation from $$shell_path($$[QT_INSTALL_DATA]).)
message(Windows: 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:android {
contains(QMAKE_PLATFORM, win32) {
message(Copying Qt translation from $$shell_path($$[QT_INSTALL_DATA]).)
contains(QMAKE_HOST.os, Windows) {
message(Windows: 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].)
contains(QMAKE_HOST.os, Linux) {
message(Unix: 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:macx|osx|ios|unix {
message(Unix: 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(Error: For this target you must copy Qt translation (qtbase_cs.qm) from $$[QT_INSTALL_DATA]/translations/.)
}
TRANSLATIONS_FILES += \
......@@ -256,10 +256,10 @@ ios: include(ios/ios.pri)
# android target.
android {
contains(QMAKE_PLATFORM, win32) {
contains(QMAKE_HOST.os, Windows) {
system(sed.exe -e "s/@VERSION@/$${VERSION}/g" "android/AndroidManifest.tmp" > "android/AndroidManifest.xml")
}
contains(QMAKE_PLATFORM, unix) {
contains(QMAKE_HOST.os, Linux) {
system(sed -e "s/@VERSION@/$${VERSION}/g" "android/AndroidManifest.tmp" > "android/AndroidManifest.xml")
}
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
......
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