source: branches/vendor/nokia/qt/current/translations/translations.pro@ 767

Last change on this file since 767 was 767, checked in by Dmitry A. Kuminov, 15 years ago

vendor: Merged in qt-everywhere-opensource-src-4.6.3 from Nokia.

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1TRANSLATIONS = $$files(*.ts)
2
3qtPrepareTool(LRELEASE, lrelease)
4
5contains(TEMPLATE_PREFIX, vc):vcproj = 1
6
7TEMPLATE = app
8TARGET = qm_phony_target
9CONFIG -= qt separate_debug_info
10QT =
11LIBS =
12
13updateqm.input = TRANSLATIONS
14updateqm.output = ${QMAKE_FILE_BASE}.qm
15isEmpty(vcproj):updateqm.variable_out = PRE_TARGETDEPS
16updateqm.commands = $$LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT}
17silent:updateqm.commands = @echo lrelease ${QMAKE_FILE_IN} && $$updateqm.commands
18updateqm.name = LRELEASE ${QMAKE_FILE_IN}
19updateqm.CONFIG += no_link
20QMAKE_EXTRA_COMPILERS += updateqm
21
22isEmpty(vcproj) {
23 QMAKE_LINK = @: IGNORE THIS LINE
24 OBJECTS_DIR =
25 win32:CONFIG -= embed_manifest_exe
26} else {
27 CONFIG += console
28 PHONY_DEPS = .
29 phony_src.input = PHONY_DEPS
30 phony_src.output = phony.c
31 phony_src.variable_out = GENERATED_SOURCES
32 phony_src.commands = echo int main() { return 0; } > phony.c
33 phony_src.name = CREATE phony.c
34 phony_src.CONFIG += combine
35 QMAKE_EXTRA_COMPILERS += phony_src
36}
37
38translations.path = $$[QT_INSTALL_TRANSLATIONS]
39translations.files = $$TRANSLATIONS
40translations.files ~= s,\\.ts$,.qm,g
41translations.files ~= s,^,$$OUT_PWD/,g
42translations.CONFIG += no_check_exist
43INSTALLS += translations
Note: See TracBrowser for help on using the repository browser.