forked from MrBesen/lolautoaccept
automaticaly build language files
This commit is contained in:
parent
7d15768295
commit
5164e6adfb
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -21,3 +21,4 @@ ui/*.h
|
||||||
.qmake.stash
|
.qmake.stash
|
||||||
*.pro.user
|
*.pro.user
|
||||||
*.qm
|
*.qm
|
||||||
|
Makefile
|
||||||
|
|
|
@ -16,6 +16,12 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
||||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||||
|
|
||||||
|
# parameters: var, prepend, append
|
||||||
|
defineReplace(prependAll) {
|
||||||
|
for(a,$$1):result += $$2$${a}$$3
|
||||||
|
return($$result)
|
||||||
|
}
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
src/fakescreen.cpp \
|
src/fakescreen.cpp \
|
||||||
src/lolautoaccept.cpp \
|
src/lolautoaccept.cpp \
|
||||||
|
@ -46,15 +52,26 @@ OBJECTS_DIR = build/
|
||||||
FORMS += \
|
FORMS += \
|
||||||
ui/mainwindow.ui
|
ui/mainwindow.ui
|
||||||
|
|
||||||
TRANSLATIONS += \
|
|
||||||
ts/de_DE.ts \
|
|
||||||
ts/en.ts
|
|
||||||
|
|
||||||
INCLUDEPATH += $$PWD/include/ \
|
INCLUDEPATH += $$PWD/include/ \
|
||||||
$$PWD/thirdparty/Log/ \
|
$$PWD/thirdparty/Log/ \
|
||||||
/usr/include/opencv4/opencv \
|
/usr/include/opencv4/opencv \
|
||||||
/usr/include/opencv4
|
/usr/include/opencv4
|
||||||
|
|
||||||
|
#TRANSLATIONS += \
|
||||||
|
# ts/de_DE.ts \
|
||||||
|
# ts/en.ts
|
||||||
|
|
||||||
|
LANGUAGES = de_DE en
|
||||||
|
|
||||||
|
TRANSLATIONS = $$prependAll(LANGUAGES, $$PWD/ts/, .ts)
|
||||||
|
TRANSLATIONSQM = $$prependAll(LANGUAGES, $$PWD/ts/, .qm)
|
||||||
|
|
||||||
|
makelang.commands = lrelease $$_PRO_FILE_
|
||||||
|
QMAKE_EXTRA_TARGETS += makelang
|
||||||
|
PRE_TARGETDEPS += makelang
|
||||||
|
|
||||||
|
QMAKE_CLEAN += $$TRANSLATIONSQM
|
||||||
|
|
||||||
# Default rules for deployment.
|
# Default rules for deployment.
|
||||||
qnx: target.path = /tmp/$${TARGET}/bin
|
qnx: target.path = /tmp/$${TARGET}/bin
|
||||||
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||||
|
|
Loading…
Reference in New Issue
Block a user