mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Automatically generate translations in Qt.
This commit is contained in:
1 parent
baf805f883
commit
20fe29a05d
1 file changed
+11
-2
+11
-2
@@ -29,8 +29,6 @@ linux:!mobile_platform {
|
||||
}
|
||||
}
|
||||
|
||||
TRANSLATIONS = $$files(languages/ppsspp_*.ts)
|
||||
|
||||
# Main
|
||||
SOURCES += ../native/base/QtMain.cpp
|
||||
HEADERS += ../native/base/QtMain.h
|
||||
@@ -58,6 +56,17 @@ mobile_platform {
|
||||
INCLUDEPATH += ../Qt
|
||||
}
|
||||
|
||||
# Translations
|
||||
TRANSLATIONS = $$files(languages/ppsspp_*.ts)
|
||||
|
||||
lang.name = lrelease ${QMAKE_FILE_IN}
|
||||
lang.input = TRANSLATIONS
|
||||
lang.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.qm
|
||||
lang.commands = $$[QT_INSTALL_BINS]/lrelease ${QMAKE_FILE_IN}
|
||||
lang.CONFIG = no_link
|
||||
QMAKE_EXTRA_COMPILERS += lang
|
||||
PRE_TARGETDEPS += compiler_lang_make_all
|
||||
|
||||
# Packaging
|
||||
symbian {
|
||||
deploy.pkg_prerules = "$${LITERAL_HASH}{\"PPSSPP\"}, (0xE0095B1D), 0, 6, 1, TYPE=SA" "%{\"Qtness\"}" ":\"Qtness\""
|
||||
|
||||
Reference in new issue
Block a user