mirror of
https://github.com/x-tools-author/x-tools.git
synced 2025-09-15 15:28:40 +08:00
chore: update files of project
This commit is contained in:
parent
2830bae7cb
commit
b33210caaa
60
xTools.pro
60
xTools.pro
@ -12,30 +12,40 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|||||||
!isEmpty(target.path): INSTALLS += target
|
!isEmpty(target.path): INSTALLS += target
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------------------------
|
||||||
# Android settings
|
# Application information
|
||||||
X_TOOLS_APP_NAME = "xTools"
|
X_TOOLS_APP_NAME = "xTools"
|
||||||
X_TOOLS_ORG_NAME = "xTools"
|
X_TOOLS_ORG_NAME = "xTools"
|
||||||
X_TOOLS_ORG_DOMAIN = "IT"
|
X_TOOLS_ORG_DOMAIN = "IT"
|
||||||
X_TOOLS_APP_DESCRIPTION = "xTools Studio"
|
X_TOOLS_APP_DESCRIPTION = "xTools Studio"
|
||||||
X_TOOLS_APP_COPYRIGHT = "Copyright 2018-2024 x-tools-author(x-tools@outlook.com). All rights reserved."
|
X_TOOLS_APP_COPYRIGHT = "Copyright 2018-2024 x-tools-author(x-tools@outlook.com). All rights reserved."
|
||||||
|
X_TOOLS_VERSION = "6.0.0"
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
QMAKE_TARGET_COMPANY = "$${X_TOOLS_ORG_NAME}"
|
QMAKE_TARGET_COMPANY = "$${X_TOOLS_ORG_NAME}"
|
||||||
QMAKE_TARGET_DESCRIPTION = "$${X_TOOLS_APP_DESCRIPTION}"
|
QMAKE_TARGET_DESCRIPTION = "$${X_TOOLS_APP_DESCRIPTION}"
|
||||||
QMAKE_TARGET_COPYRIGHT = "$${X_TOOLS_APP_COPYRIGHT}"
|
QMAKE_TARGET_COPYRIGHT = "$${X_TOOLS_APP_COPYRIGHT}"
|
||||||
QMAKE_TARGET_PRODUCT = "$${X_TOOLS_APP_NAME}"
|
QMAKE_TARGET_PRODUCT = "$${X_TOOLS_APP_NAME}"
|
||||||
QMAKE_TARGET_VERSION = "$${SAK_VERSION}"
|
QMAKE_TARGET_VERSION = "$${X_TOOLS_VERSION}"
|
||||||
}
|
}
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------------------------
|
||||||
#Output directory
|
# Definitions
|
||||||
|
DEFINES += X_TOOLS_CLEAR_MESSAGE_INTERVAL=8000
|
||||||
|
DEFINES += X_TOOLS_EDITION=\"\\\"Beta\\\"\"
|
||||||
|
DEFINES += X_TOOLS_AUTHOR=\"\\\"x-tools-author\\\"\"
|
||||||
|
DEFINES += X_TOOLS_AUTHOR_EMAIL=\"\\\"x-tools@outlook.com\\\"\"
|
||||||
|
DEFINES += X_TOOLS_GITHUB_REPOSITORY_URL=\"\\\"https://github.com/x-tools-author/x-tools\\\"\"
|
||||||
|
DEFINES += X_TOOLS_GITEE_REPOSITORY_URL=\"\\\"https://gitee.com/x-tools-author/x-tools\\\"\"
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------------------------
|
||||||
|
# Output directory
|
||||||
UI_DIR = $$OUT_PWD/ui
|
UI_DIR = $$OUT_PWD/ui
|
||||||
MOC_DIR = $$OUT_PWD/moc
|
MOC_DIR = $$OUT_PWD/moc
|
||||||
RCC_DIR = $$OUT_PWD/res
|
RCC_DIR = $$OUT_PWD/res
|
||||||
OBJECTS_DIR = $$OUT_PWD/obj
|
OBJECTS_DIR = $$OUT_PWD/obj
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------------------------
|
||||||
#Configuration of Windows
|
# Configuration of Windows
|
||||||
win32 {
|
win32 {
|
||||||
RC_ICONS = xTools.ico
|
RC_ICONS = xTools.ico
|
||||||
msvc:{
|
msvc:{
|
||||||
@ -45,13 +55,33 @@ win32 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFINES += X_TOOLS_CLEAR_MESSAGE_INTERVAL=8000
|
#---------------------------------------------------------------------------------------------------
|
||||||
DEFINES += X_TOOLS_EDITION=\"\\\"Beta\\\"\"
|
# Deploy Qt
|
||||||
DEFINES += X_TOOLS_AUTHOR=\"\\\"x-tools-author\\\"\"
|
contains(CONFIG, static) {
|
||||||
DEFINES += X_TOOLS_AUTHOR_EMAIL=\"\\\"x-tools@outlook.com\\\"\"
|
# Static compilation does not require deployment
|
||||||
DEFINES += X_TOOLS_GITHUB_REPOSITORY_URL=\"\\\"https://github.com/x-tools-author/x-tools\\\"\"
|
} else {
|
||||||
DEFINES += X_TOOLS_GITEE_REPOSITORY_URL=\"\\\"https://gitee.com/x-tools-author/x-tools\\\"\"
|
# Windows platform(only for x86 architecture)
|
||||||
|
win32 {
|
||||||
|
DEPLOY_TOOL = $${dirname(QMAKE_QMAKE)}/windeployqt.exe
|
||||||
|
DEPLOY_TOOL = $$replace(DEPLOY_TOOL, /, \\)
|
||||||
|
|
||||||
|
contains(CONFIG, debug, debug|release){
|
||||||
|
DEPLOY_TARGET = $${OUT_PWD}/debug/$${TARGET}.exe
|
||||||
|
} else {
|
||||||
|
DEPLOY_TARGET = $${OUT_PWD}/release/$${TARGET}.exe
|
||||||
|
}
|
||||||
|
|
||||||
|
DEPLOY_TARGET=$$replace(DEPLOY_TARGET, /, \\)
|
||||||
|
msvc {
|
||||||
|
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")'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------------------------
|
||||||
|
# Include path
|
||||||
INCLUDEPATH += Source
|
INCLUDEPATH += Source
|
||||||
INCLUDEPATH += Source/Assistants
|
INCLUDEPATH += Source/Assistants
|
||||||
INCLUDEPATH += Source/Assistants/ASCII/Source
|
INCLUDEPATH += Source/Assistants/ASCII/Source
|
||||||
@ -73,6 +103,12 @@ INCLUDEPATH += Source/ModbusStudio/ModbusStudioUI
|
|||||||
INCLUDEPATH += Source/ToolBox/ToolBox
|
INCLUDEPATH += Source/ToolBox/ToolBox
|
||||||
INCLUDEPATH += Source/ToolBox/ToolBoxUI
|
INCLUDEPATH += Source/ToolBox/ToolBoxUI
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------------------------
|
||||||
|
# Source of project
|
||||||
|
RESOURCES += \
|
||||||
|
xTools.qrc \
|
||||||
|
Source/Common/xToolsCommon.qrc
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
Source/Application.cpp \
|
Source/Application.cpp \
|
||||||
Source/Assistants/ASCII/Source/xToolsAsciiAssistant.cpp \
|
Source/Assistants/ASCII/Source/xToolsAsciiAssistant.cpp \
|
||||||
@ -295,10 +331,6 @@ HEADERS += \
|
|||||||
Source/Tools/ToolsUI/xToolsVelometerToolUi.h \
|
Source/Tools/ToolsUI/xToolsVelometerToolUi.h \
|
||||||
Source/Tools/ToolsUI/xToolsWebSocketTransmitterToolUi.h
|
Source/Tools/ToolsUI/xToolsWebSocketTransmitterToolUi.h
|
||||||
|
|
||||||
RESOURCES += \
|
|
||||||
xTools.qrc \
|
|
||||||
Source/Common/xToolsCommon.qrc
|
|
||||||
|
|
||||||
FORMS += \
|
FORMS += \
|
||||||
Source/Assistants/ASCII/Source/xToolsAsciiAssistant.ui \
|
Source/Assistants/ASCII/Source/xToolsAsciiAssistant.ui \
|
||||||
Source/Assistants/Base64/Source/xToolsBase64Assisatnt.ui \
|
Source/Assistants/Base64/Source/xToolsBase64Assisatnt.ui \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user