os2 compatibility
This commit is contained in:
parent
a08389f020
commit
1c11012055
@ -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_URL_DOCUMENTATION = "https://github.com/martinrotter/rssguard/blob/master/resources/docs/Documentation.md"
|
||||||
APP_USERAGENT = "RSS Guard/$$APP_VERSION (github.com/martinrotter/rssguard)"
|
APP_USERAGENT = "RSS Guard/$$APP_VERSION (github.com/martinrotter/rssguard)"
|
||||||
APP_DONATE_URL = "https://martinrotter.github.io/donate"
|
APP_DONATE_URL = "https://martinrotter.github.io/donate"
|
||||||
APP_WIN_ARCH = "win64"
|
|
||||||
|
|
||||||
message(rssguard: Welcome RSS Guard qmake script.)
|
message(rssguard: Welcome RSS Guard qmake script.)
|
||||||
|
|
||||||
|
@ -13,6 +13,10 @@ APP_TYPE = "core library"
|
|||||||
include(../../pri/vars.pri)
|
include(../../pri/vars.pri)
|
||||||
include(../../pri/defs.pri)
|
include(../../pri/defs.pri)
|
||||||
|
|
||||||
|
os2 {
|
||||||
|
LRELEASE = "lrelease-qt5"
|
||||||
|
}
|
||||||
|
|
||||||
message($$MSG_PREFIX: Shadow copy build directory \"$$OUT_PWD\".)
|
message($$MSG_PREFIX: Shadow copy build directory \"$$OUT_PWD\".)
|
||||||
message($$MSG_PREFIX: $$APP_NAME version is: \"$$APP_VERSION\".)
|
message($$MSG_PREFIX: $$APP_NAME version is: \"$$APP_VERSION\".)
|
||||||
message($$MSG_PREFIX: Detected Qt version: \"$$QT_VERSION\".)
|
message($$MSG_PREFIX: Detected Qt version: \"$$QT_VERSION\".)
|
||||||
|
@ -9,11 +9,7 @@ include(../../pri/vars.pri)
|
|||||||
isEmpty(PREFIX) {
|
isEmpty(PREFIX) {
|
||||||
message($$MSG_PREFIX: PREFIX variable is not set. This might indicate error.)
|
message($$MSG_PREFIX: PREFIX variable is not set. This might indicate error.)
|
||||||
|
|
||||||
win32 {
|
win32|os2|android {
|
||||||
PREFIX = $$OUT_PWD/app
|
|
||||||
}
|
|
||||||
|
|
||||||
android {
|
|
||||||
PREFIX = $$OUT_PWD/app
|
PREFIX = $$OUT_PWD/app
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,7 +48,7 @@ unix: LIBS += -L$$OUT_PWD/../librssguard/ -lrssguard
|
|||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
# Prepare files for NSIS.
|
# 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\")
|
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))\""
|
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))\""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user