Commit a1c27d55 authored by Martin Straka's avatar Martin Straka

Used system_path macro in project file

parent bc3a0fdf
......@@ -74,28 +74,9 @@ command = $$LRELEASE mobile-datovka.pro
system($$command)|error("Failed to run: $$command")
# Copy translation files at qmake invocation.
win32|winphone|winrt {
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:android {
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_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(Error: 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 \
......@@ -251,8 +232,10 @@ 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 {
......@@ -262,6 +245,9 @@ android {
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)
}
......
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