chore: update the file

This commit is contained in:
x-tools-author 2024-03-26 17:03:57 +08:00
parent b33210caaa
commit 2c4f71e89a

View File

@ -4,7 +4,8 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
# disables all the APIs deprecated before Qt 6.0.0
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
@ -48,10 +49,8 @@ OBJECTS_DIR = $$OUT_PWD/obj
# Configuration of Windows
win32 {
RC_ICONS = xTools.ico
msvc:{
lessThan(QT_MAJOR_VERSION, 6){
QMAKE_CXXFLAGS += -execution-charset:utf-8
}
msvc:lessThan(QT_MAJOR_VERSION, 6) {
QMAKE_CXXFLAGS += -execution-charset:utf-8
}
}
@ -71,11 +70,11 @@ contains(CONFIG, static) {
DEPLOY_TARGET = $${OUT_PWD}/release/$${TARGET}.exe
}
DEPLOY_TARGET=$$replace(DEPLOY_TARGET, /, \\)
DEPLOY_TARGET = $$replace(DEPLOY_TARGET, /, \\)
msvc {
QMAKE_POST_LINK+=$${DEPLOY_TOOL} $${DEPLOY_TARGET} --force --no-translations $$escape_expand(\\n)
QMAKE_POST_LINK += $${DEPLOY_TOOL} $${DEPLOY_TARGET} --force --no-translations $$escape_expand(\\n)
} else {
QMAKE_POST_LINK+='$$escape_expand("\\n\\t") $${DEPLOY_TOOL} $${DEPLOY_TARGET} --force --no-translations $$escape_expand("\\n\\t")'
QMAKE_POST_LINK += '$$escape_expand("\\n\\t") $${DEPLOY_TOOL} $${DEPLOY_TARGET} --force --no-translations $$escape_expand("\\n\\t")'
}
}
}