diff options
Diffstat (limited to 'translations')
-rw-r--r-- | translations/translations.pro | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/translations/translations.pro b/translations/translations.pro index d1962fe..6f14108 100644 --- a/translations/translations.pro +++ b/translations/translations.pro @@ -1,7 +1,16 @@ TRANSLATIONS = $$files(*.ts) LRELEASE = $$QT_BUILD_TREE/bin/lrelease -win32:LRELEASE ~= s|/|\|g +win32 { + LRELEASE ~= s|/|\|g +} else:!static { + path = $$QT_BUILD_TREE/lib + !macx:var = LD_LIBRARY_PATH + else:qt_no_framework:var = DYLD_LIBRARY_PATH + else:var = DYLD_FRAMEWORK_PATH + + LRELEASE = test -z \"\$\$$$var\" && $$var=$$path || $$var=$$path:\$\$$$var; export $$var; $$LRELEASE +} contains(TEMPLATE_PREFIX, vc):vcproj = 1 @@ -14,7 +23,7 @@ LIBS = updateqm.input = TRANSLATIONS updateqm.output = ${QMAKE_FILE_BASE}.qm isEmpty(vcproj):updateqm.variable_out = PRE_TARGETDEPS -updateqm.commands = $$LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT} +updateqm.commands = @echo lrelease ${QMAKE_FILE_IN}; $$LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT} updateqm.name = LRELEASE ${QMAKE_FILE_IN} updateqm.CONFIG += no_link QMAKE_EXTRA_COMPILERS += updateqm |