2022-09-25 16:07:52 +08:00
|
|
|
TEMPLATE = lib
|
|
|
|
QT += core gui
|
|
|
|
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
2024-04-28 16:46:01 +08:00
|
|
|
CONFIG += c++17
|
2022-09-25 16:07:52 +08:00
|
|
|
CONFIG += nokey
|
2022-09-25 17:43:31 +08:00
|
|
|
CONFIG += staticlib
|
2022-09-25 16:07:52 +08:00
|
|
|
|
|
|
|
win32: {
|
2023-10-21 13:38:12 +08:00
|
|
|
DEFINES += _WIN32_WINNT=0x0501
|
2022-09-25 16:07:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
gcc {
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -Werror=return-type
|
|
|
|
QMAKE_CXXFLAGS_DEBUG += -Werror=return-type
|
|
|
|
}
|
|
|
|
|
|
|
|
msvc {
|
|
|
|
DEFINES += NOMINMAX
|
|
|
|
}
|
|
|
|
|
2022-09-26 11:18:43 +08:00
|
|
|
SOURCES += qt_utils/utils.cpp \
|
|
|
|
qt_utils/charsetinfo.cpp
|
2022-09-25 16:07:52 +08:00
|
|
|
|
2022-09-26 11:18:43 +08:00
|
|
|
HEADERS += qt_utils/utils.h \
|
|
|
|
qt_utils/charsetinfo.h
|
2023-01-25 10:51:59 +08:00
|
|
|
|
|
|
|
TRANSLATIONS += \
|
|
|
|
qt_utils_zh_CN.ts
|