Copying translations did not work on Windows system.

--HG--
branch : develop
This commit is contained in:
dismine 2014-02-19 23:21:57 +02:00
parent dd0cd641ec
commit 76816a7bcd

View File

@ -124,6 +124,13 @@ QMAKE_DISTCLEAN += $${DESTDIR}/* \
$${RCC_DIR}/* \ $${RCC_DIR}/* \
$$PWD/share/translations/valentina_*.qm $$PWD/share/translations/valentina_*.qm
INSTALL_TRANSLATIONS += share/translations/valentina_ru.qm \
share/translations/valentina_uk.qm \
share/translations/valentina_de.qm \
share/translations/valentina_cs.qm \
share/translations/valentina_he_IL.qm \
share/translations/valentina_fr.qm
unix { unix {
#VARIABLES #VARIABLES
isEmpty(PREFIX) { isEmpty(PREFIX) {
@ -138,12 +145,6 @@ desktop.path = $$DATADIR/applications/
desktop.files += dist/$${TARGET}.desktop desktop.files += dist/$${TARGET}.desktop
pixmaps.path = $$DATADIR/pixmaps/ pixmaps.path = $$DATADIR/pixmaps/
pixmaps.files += dist/$${TARGET}.png pixmaps.files += dist/$${TARGET}.png
INSTALL_TRANSLATIONS += share/translations/valentina_ru.qm \
share/translations/valentina_uk.qm \
share/translations/valentina_de.qm \
share/translations/valentina_cs.qm \
share/translations/valentina_he_IL.qm \
share/translations/valentina_fr.qm
translations.path = $$DATADIR/$${TARGET}/translations/ translations.path = $$DATADIR/$${TARGET}/translations/
translations.files = $$INSTALL_TRANSLATIONS translations.files = $$INSTALL_TRANSLATIONS
INSTALLS += target \ INSTALLS += target \
@ -169,9 +170,10 @@ defineTest(copyToDestdir) {
for(FILE, files) { for(FILE, files) {
# Replace slashes in paths with backslashes for Windows # Replace slashes in paths with backslashes for Windows
win32:FILE ~= s,/,\\,g win32{
win32:DDIR ~= s,/,\\,g FILE ~= s,/,\\,g
DDIR ~= s,/,\\,g
}
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t) QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t)
} }