os2 compatibility

This commit is contained in:
Martin Rotter 2021-02-22 10:56:38 +01:00
parent a08389f020
commit 1c11012055
3 changed files with 6 additions and 7 deletions

View File

@ -13,7 +13,6 @@ APP_URL_ISSUES_NEW = "https://github.com/martinrotter/rssguard/issues
APP_URL_DOCUMENTATION = "https://github.com/martinrotter/rssguard/blob/master/resources/docs/Documentation.md"
APP_USERAGENT = "RSS Guard/$$APP_VERSION (github.com/martinrotter/rssguard)"
APP_DONATE_URL = "https://martinrotter.github.io/donate"
APP_WIN_ARCH = "win64"
message(rssguard: Welcome RSS Guard qmake script.)

View File

@ -13,6 +13,10 @@ APP_TYPE = "core library"
include(../../pri/vars.pri)
include(../../pri/defs.pri)
os2 {
LRELEASE = "lrelease-qt5"
}
message($$MSG_PREFIX: Shadow copy build directory \"$$OUT_PWD\".)
message($$MSG_PREFIX: $$APP_NAME version is: \"$$APP_VERSION\".)
message($$MSG_PREFIX: Detected Qt version: \"$$QT_VERSION\".)

View File

@ -9,11 +9,7 @@ include(../../pri/vars.pri)
isEmpty(PREFIX) {
message($$MSG_PREFIX: PREFIX variable is not set. This might indicate error.)
win32 {
PREFIX = $$OUT_PWD/app
}
android {
win32|os2|android {
PREFIX = $$OUT_PWD/app
}
@ -52,7 +48,7 @@ unix: LIBS += -L$$OUT_PWD/../librssguard/ -lrssguard
win32 {
# Prepare files for NSIS.
SEDREPLACE = "| ForEach-Object { $_ -replace '@APP_VERSION@', '$$APP_VERSION' -replace '@APP_WIN_ARCH@', '$$APP_WIN_ARCH' -replace '@APP_REVISION@', '$$APP_REVISION' -replace '@APP_NAME@', '$$APP_NAME' -replace '@APP_LOW_NAME@', '$$APP_LOW_NAME' -replace '@EXE_NAME@', '$${APP_LOW_NAME}.exe' -replace '@PWD@', '$$replace(PWD, /, \\\\)' -replace '@OUT_PWD@', '$$replace(OUT_PWD, /, \\\\)' }"
SEDREPLACE = "| ForEach-Object { $_ -replace '@APP_VERSION@', '$$APP_VERSION' -replace '@APP_REVISION@', '$$APP_REVISION' -replace '@APP_NAME@', '$$APP_NAME' -replace '@APP_LOW_NAME@', '$$APP_LOW_NAME' -replace '@EXE_NAME@', '$${APP_LOW_NAME}.exe' -replace '@PWD@', '$$replace(PWD, /, \\\\)' -replace '@OUT_PWD@', '$$replace(OUT_PWD, /, \\\\)' }"
message($$MSG_PREFIX: Sed replace string: \"$$SEDREPLACE\")
FULLSEDCMD = "powershell -Command \"cat $$shell_path($$shell_quote($$PWD/../../resources/nsis/NSIS.definitions.nsh.in)) $$SEDREPLACE | Out-File $$shell_path($$shell_quote($$OUT_PWD/NSIS.definitions.nsh))\""