2025-08-27 23:10:36 +08:00
|
|
|
QT += core network
|
|
|
|
|
|
|
|
|
|
TEMPLATE = lib
|
|
|
|
|
CONFIG += c++11 staticlib
|
|
|
|
|
|
|
|
|
|
# 源文件
|
|
|
|
|
SOURCES += \
|
2025-09-14 14:51:38 +08:00
|
|
|
TCPServer/Src/CYServerTask.cpp \
|
|
|
|
|
TCPServer/Src/CYTCPServer.cpp
|
2025-08-27 23:10:36 +08:00
|
|
|
|
|
|
|
|
# 头文件
|
|
|
|
|
HEADERS += \
|
2025-09-14 14:51:38 +08:00
|
|
|
TCPServer/Inc/IYTCPServer.h \
|
|
|
|
|
TCPServer/_Inc/CYServerTask.h \
|
|
|
|
|
TCPServer/_Inc/CYTCPServer.h
|
2025-08-27 23:10:36 +08:00
|
|
|
|
|
|
|
|
# 包含路径
|
|
|
|
|
INCLUDEPATH += \
|
2025-09-14 14:51:38 +08:00
|
|
|
TCPServer/Inc \
|
|
|
|
|
TCPServer/_Inc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../VrCommon/Inc
|
|
|
|
|
INCLUDEPATH += $$PWD/../VrUtils/Inc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
win32:CONFIG(debug, debug|release) {
|
|
|
|
|
LIBS += -L../VrNets/debug -lVrUtils
|
|
|
|
|
}else:win32:CONFIG(release, debug|release){
|
|
|
|
|
LIBS += -L../VrNets/release -lVrUtils
|
|
|
|
|
}else:unix:!macx {
|
|
|
|
|
# Unix/Linux平台库链接(包括交叉编译)
|
|
|
|
|
LIBS += -L../VrUtils -lVrUtils
|
|
|
|
|
|
|
|
|
|
# 添加系统库依赖
|
|
|
|
|
LIBS += -lpthread
|
|
|
|
|
}
|
2025-08-27 23:10:36 +08:00
|
|
|
|
|
|
|
|
# 安装路径
|
|
|
|
|
target.path = $$[QT_INSTALL_LIBS]
|
|
|
|
|
INSTALLS += target
|
|
|
|
|
|
|
|
|
|
# 头文件安装路径
|
|
|
|
|
headers.files = $$HEADERS
|
|
|
|
|
headers.path = $$[QT_INSTALL_HEADERS]/VrTcpServer
|
2025-09-14 14:51:38 +08:00
|
|
|
INSTALLS += headers
|