2022-09-25 16:07:52 +08:00
|
|
|
TEMPLATE = lib
|
|
|
|
QT += core gui
|
|
|
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
|
|
|
2023-10-21 13:38:12 +08:00
|
|
|
# without `c++14` old versions of qmake will explicitly set `-std=gnu++98`
|
|
|
|
CONFIG += c++14 c++17
|
2022-09-25 16:07:52 +08:00
|
|
|
CONFIG += nokey
|
2022-09-26 15:20:13 +08:00
|
|
|
CONFIG += staticlib
|
2023-02-27 20:08:24 +08:00
|
|
|
contains(QMAKE_HOST.arch, x86_64):{
|
|
|
|
contains(QMAKE_HOST.arch, x86_64):{
|
|
|
|
DEFINES += ARCH_X86_64=1
|
|
|
|
} else : {
|
|
|
|
DEFINES += ARCH_X86=1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2023-01-11 16:22:26 +08:00
|
|
|
SOURCES += qsynedit/codefolding.cpp \
|
|
|
|
qsynedit/constants.cpp \
|
|
|
|
qsynedit/document.cpp \
|
2023-03-09 20:35:15 +08:00
|
|
|
qsynedit/formatter/cppformatter.cpp \
|
|
|
|
qsynedit/formatter/formatter.cpp \
|
2023-01-11 16:31:39 +08:00
|
|
|
qsynedit/keystrokes.cpp \
|
2023-01-11 16:22:26 +08:00
|
|
|
qsynedit/miscprocs.cpp \
|
2023-01-06 11:41:04 +08:00
|
|
|
qsynedit/exporter/exporter.cpp \
|
|
|
|
qsynedit/exporter/htmlexporter.cpp \
|
|
|
|
qsynedit/exporter/qtsupportedhtmlexporter.cpp \
|
|
|
|
qsynedit/exporter/rtfexporter.cpp \
|
2023-01-11 16:22:26 +08:00
|
|
|
qsynedit/gutter.cpp \
|
|
|
|
qsynedit/painter.cpp \
|
|
|
|
qsynedit/qsynedit.cpp \
|
|
|
|
qsynedit/searcher/baseseacher.cpp \
|
|
|
|
qsynedit/searcher/basicsearcher.cpp \
|
|
|
|
qsynedit/searcher/regexsearcher.cpp \
|
2022-12-10 21:23:49 +08:00
|
|
|
qsynedit/syntaxer/asm.cpp \
|
|
|
|
qsynedit/syntaxer/cpp.cpp \
|
|
|
|
qsynedit/syntaxer/glsl.cpp \
|
2023-02-16 12:26:35 +08:00
|
|
|
qsynedit/syntaxer/lua.cpp \
|
2023-01-11 16:22:26 +08:00
|
|
|
qsynedit/types.cpp \
|
2022-12-10 21:23:49 +08:00
|
|
|
qsynedit/syntaxer/makefile.cpp \
|
2024-03-04 16:01:23 +08:00
|
|
|
qsynedit/syntaxer/textfile.cpp \
|
2022-12-10 21:23:49 +08:00
|
|
|
qsynedit/syntaxer/syntaxer.cpp
|
2022-09-25 16:07:52 +08:00
|
|
|
|
2023-01-11 16:22:26 +08:00
|
|
|
HEADERS += \
|
|
|
|
qsynedit/codefolding.h \
|
|
|
|
qsynedit/constants.h \
|
|
|
|
qsynedit/document.h \
|
2023-03-09 20:35:15 +08:00
|
|
|
qsynedit/formatter/cppformatter.h \
|
|
|
|
qsynedit/formatter/formatter.h \
|
2023-01-11 16:22:26 +08:00
|
|
|
qsynedit/keystrokes.h \
|
|
|
|
qsynedit/miscprocs.h \
|
|
|
|
qsynedit/types.h \
|
2023-01-06 11:41:04 +08:00
|
|
|
qsynedit/exporter/exporter.h \
|
|
|
|
qsynedit/exporter/htmlexporter.h \
|
|
|
|
qsynedit/exporter/qtsupportedhtmlexporter.h \
|
|
|
|
qsynedit/exporter/rtfexporter.h \
|
2023-01-11 16:22:26 +08:00
|
|
|
qsynedit/gutter.h \
|
|
|
|
qsynedit/painter.h \
|
|
|
|
qsynedit/qsynedit.h \
|
|
|
|
qsynedit/searcher/baseseacher.h \
|
|
|
|
qsynedit/searcher/basicsearcher.h \
|
|
|
|
qsynedit/searcher/regexsearcher.h \
|
2022-12-10 21:23:49 +08:00
|
|
|
qsynedit/syntaxer/asm.h \
|
|
|
|
qsynedit/syntaxer/cpp.h \
|
|
|
|
qsynedit/syntaxer/glsl.h \
|
2023-02-16 12:26:35 +08:00
|
|
|
qsynedit/syntaxer/lua.h \
|
2022-12-10 21:23:49 +08:00
|
|
|
qsynedit/syntaxer/makefile.h \
|
2024-03-04 16:01:23 +08:00
|
|
|
qsynedit/syntaxer/textfile.h \
|
2022-12-10 21:23:49 +08:00
|
|
|
qsynedit/syntaxer/syntaxer.h
|
2022-09-25 17:43:31 +08:00
|
|
|
|
|
|
|
INCLUDEPATH += ../redpanda_qt_utils
|
2023-02-26 17:50:03 +08:00
|
|
|
|
|
|
|
TRANSLATIONS += \
|
|
|
|
qsynedit_zh_CN.ts
|