54 lines
1.1 KiB
Prolog
54 lines
1.1 KiB
Prolog
QT -= gui
|
|
|
|
TEMPLATE = lib
|
|
CONFIG += staticlib
|
|
DEFINES += TINYXML2_EXPORT
|
|
DEFINES += __OPENVMS__
|
|
|
|
CONFIG += c++11
|
|
|
|
# Windows特定配置
|
|
win32 {
|
|
# 确保WIN32宏被定义
|
|
DEFINES += WIN32
|
|
# 禁用UNICODE以避免字符串转换问题
|
|
DEFINES += _MBCS
|
|
# 直接使用Windows库文件
|
|
LIBS += Advapi32.lib
|
|
}
|
|
|
|
# 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
|
|
|
|
# 启用 auto_ptr 支持 (for log4cpp compatibility)
|
|
win32-msvc*:QMAKE_CXXFLAGS += /D_HAS_AUTO_PTR_ETC=1
|
|
|
|
HEADERS += \
|
|
Inc/VrFileUtils.h \
|
|
Inc/VrNetUtils.h \
|
|
Inc\VrTimeUtils.h \
|
|
tinyxml2\tinyxml2.h \
|
|
|
|
SOURCES += \
|
|
Src/VrFileUtils.cpp \
|
|
Src/VrLog.cpp \
|
|
Src/VrNetUtils.cpp \
|
|
Src\VrTimeUtils.cpp \
|
|
tinyxml2\tinyxml2.cpp
|
|
|
|
|
|
SOURCES += $$files(log4cpp/*.cpp)
|
|
SOURCES += $$files(log4cpp/*.c)
|
|
|
|
|
|
INCLUDEPATH += $$PWD/Inc
|
|
INCLUDEPATH += $$PWD/log4cpp/include
|
|
|
|
|
|
# Default rules for deployment.
|
|
unix {
|
|
target.path = /usr/lib
|
|
}
|
|
!isEmpty(target.path): INSTALLS += target
|