RedPanda-CPP/RedPandaIDE/RedPandaIDE.pro

637 lines
20 KiB
Prolog
Raw Normal View History

QT += core gui printsupport network svg xml widgets
2021-04-06 23:10:57 +08:00
# without `c++14` old versions of qmake will explicitly set `-std=gnu++98`
CONFIG += c++14 c++17
CONFIG += nokey
2021-04-06 23:10:57 +08:00
# uncomment the following line to enable vcs (git) support
# CONFIG += ENABLE_VCS
# uncomment the following line to enable sdcc support
2023-08-13 18:53:48 +08:00
CONFIG += ENABLE_SDCC
# uncomment the following line to enable Lua-based add-on support
2024-01-18 10:09:42 +08:00
# CONFIG += ENABLE_LUA_ADDON
2021-12-30 08:59:10 +08:00
2023-10-20 11:17:46 +08:00
APP_NAME = RedPandaCPP
include(../version.inc)
# TEST_VERSION = beta2
system(git rev-list HEAD --count): TEST_VERSION = $$system(git rev-list HEAD --count)
2023-02-27 20:08:24 +08:00
contains(QMAKE_HOST.arch, x86_64):{
DEFINES += ARCH_X86_64=1
} else: {
contains(QMAKE_HOST.arch, i386):{
DEFINES += ARCH_X86=1
}
contains(QMAKE_HOST.arch, i686):{
2023-02-27 20:08:24 +08:00
DEFINES += ARCH_X86=1
}
}
macos: {
QT += gui-private
2022-05-28 19:34:36 +08:00
ICON = ../macos/RedPandaIDE.icns
}
2022-03-29 09:43:24 +08:00
2022-03-10 21:26:39 +08:00
win32: VERSION = $${APP_VERSION}.0
else: VERSION = $${APP_VERSION}
2022-01-05 09:08:44 +08:00
isEmpty(PREFIX) {
PREFIX = /usr/local
}
isEmpty(LIBEXECDIR) {
LIBEXECDIR = $${PREFIX}/libexec
}
2022-01-05 09:08:44 +08:00
2022-07-20 19:41:06 +08:00
win32: {
DEFINES += _WIN32_WINNT=0x0501
LIBS += -lpsapi # GetModuleFileNameEx, GetProcessMemoryInfo
LIBS += -lshlwapi # SHDeleteKey
2022-07-20 19:41:06 +08:00
}
2022-01-05 09:08:44 +08:00
DEFINES += PREFIX=\\\"$${PREFIX}\\\"
DEFINES += LIBEXECDIR=\\\"$${LIBEXECDIR}\\\"
2022-01-05 09:08:44 +08:00
DEFINES += APP_NAME=\\\"$${APP_NAME}\\\"
!isEmpty(APP_VERSION_SUFFIX): {
DEFINES += APP_VERSION_SUFFIX=\\\"$${APP_VERSION_SUFFIX}\\\"
}
2023-10-20 11:17:46 +08:00
isEmpty(TEST_VERSION) {
DEFINES += REDPANDA_CPP_VERSION=\\\"$${APP_VERSION}\\\"
2023-10-20 11:17:46 +08:00
} else {
DEFINES += REDPANDA_CPP_VERSION=\\\"$${APP_VERSION}.$${TEST_VERSION}\\\"
2023-10-20 11:17:46 +08:00
}
win32 {
_WINDOWS_PREFER_OPENCONSOLE = $$(WINDOWS_PREFER_OPENCONSOLE)
equals(_WINDOWS_PREFER_OPENCONSOLE, "ON") {
DEFINES += WINDOWS_PREFER_OPENCONSOLE
}
}
2022-01-05 09:08:44 +08:00
gcc {
QMAKE_CXXFLAGS_RELEASE += -Werror=return-type
QMAKE_CXXFLAGS_DEBUG += -Werror=return-type
}
2021-08-27 16:38:55 +08:00
2022-03-29 09:43:24 +08:00
msvc {
2022-05-28 19:34:36 +08:00
DEFINES += NOMINMAX
2022-03-29 09:43:24 +08:00
}
2021-04-06 23:10:57 +08:00
# 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
CONFIG(debug_and_release_target) {
CONFIG(debug, debug|release) {
2022-10-19 19:07:01 +08:00
OBJ_OUT_PWD = debug/
}
CONFIG(release, debug|release) {
2022-10-19 19:07:01 +08:00
OBJ_OUT_PWD = release/
}
}
INCLUDEPATH += ../libs/qsynedit ../libs/redpanda_qt_utils ../libs/lua
2022-10-19 19:07:01 +08:00
gcc | clang {
LIBS += $$OUT_PWD/../libs/qsynedit/$${OBJ_OUT_PWD}libqsynedit.a \
$$OUT_PWD/../libs/redpanda_qt_utils/$${OBJ_OUT_PWD}libredpanda_qt_utils.a \
$$OUT_PWD/../libs/lua/$${OBJ_OUT_PWD}liblua.a
2022-10-19 19:07:01 +08:00
}
2022-10-28 16:34:26 +08:00
msvc {
LIBS += $$OUT_PWD/../libs/qsynedit/$${OBJ_OUT_PWD}qsynedit.lib \
$$OUT_PWD/../libs/redpanda_qt_utils/$${OBJ_OUT_PWD}redpanda_qt_utils.lib \
$$OUT_PWD/../libs/lua/$${OBJ_OUT_PWD}lua.lib
2022-10-28 16:34:26 +08:00
LIBS += advapi32.lib user32.lib
}
2022-09-25 17:43:31 +08:00
2021-04-06 23:10:57 +08:00
SOURCES += \
2021-09-04 11:37:04 +08:00
autolinkmanager.cpp \
2021-09-02 12:14:02 +08:00
caretlist.cpp \
codesnippetsmanager.cpp \
2021-06-17 10:39:46 +08:00
colorscheme.cpp \
2022-05-13 20:22:16 +08:00
compiler/compilerinfo.cpp \
2021-11-01 09:18:23 +08:00
compiler/ojproblemcasesrunner.cpp \
2021-09-13 07:49:36 +08:00
compiler/projectcompiler.cpp \
2021-11-01 09:18:23 +08:00
compiler/runner.cpp \
customfileiconprovider.cpp \
2021-04-20 22:24:33 +08:00
compiler/compiler.cpp \
compiler/compilermanager.cpp \
compiler/executablerunner.cpp \
2021-04-20 22:24:33 +08:00
compiler/filecompiler.cpp \
2021-06-24 20:43:09 +08:00
compiler/stdincompiler.cpp \
debugger/debugger.cpp \
debugger/gdbmidebugger.cpp \
debugger/gdbmiresultparser.cpp \
2024-03-13 11:16:04 +08:00
# debugger/dapprotocol.cpp \
# debugger/dapdebugger.cpp \
cpprefacter.cpp \
2021-08-14 22:52:37 +08:00
parser/cppparser.cpp \
2021-08-05 23:13:21 +08:00
parser/cpppreprocessor.cpp \
2021-08-13 22:53:26 +08:00
parser/cpptokenizer.cpp \
parser/parserutils.cpp \
2021-08-05 23:13:21 +08:00
parser/statementmodel.cpp \
problems/freeprojectsetformat.cpp \
2021-11-01 20:44:08 +08:00
problems/ojproblemset.cpp \
2021-11-01 22:33:16 +08:00
problems/problemcasevalidator.cpp \
2021-09-05 23:45:05 +08:00
project.cpp \
2021-09-16 12:03:10 +08:00
projectoptions.cpp \
projecttemplate.cpp \
2021-09-04 16:34:14 +08:00
settingsdialog/compilerautolinkwidget.cpp \
2021-08-01 23:24:37 +08:00
settingsdialog/debuggeneralwidget.cpp \
2021-08-30 22:05:45 +08:00
settingsdialog/editorautosavewidget.cpp \
settingsdialog/editorcodecompletionwidget.cpp \
settingsdialog/editorcustomctypekeywords.cpp \
2021-08-30 17:10:46 +08:00
settingsdialog/editormiscwidget.cpp \
2021-09-30 12:52:22 +08:00
settingsdialog/editorsnippetwidget.cpp \
settingsdialog/editortooltipswidget.cpp \
settingsdialog/environmentfolderswidget.cpp \
settingsdialog/environmentperformancewidget.cpp \
settingsdialog/environmentprogramswidget.cpp \
settingsdialog/environmentshortcutwidget.cpp \
settingsdialog/executorproblemsetwidget.cpp \
2021-08-31 19:15:11 +08:00
settingsdialog/formattergeneralwidget.cpp \
settingsdialog/languageasmgenerationwidget.cpp \
# settingsdialog/languagecformatwidget.cpp \
settingsdialog/projectcompileparamaterswidget.cpp \
2021-09-15 08:02:08 +08:00
settingsdialog/projectcompilerwidget.cpp \
settingsdialog/projectdirectorieswidget.cpp \
settingsdialog/projectdllhostwidget.cpp \
2021-09-14 17:33:47 +08:00
settingsdialog/projectfileswidget.cpp \
settingsdialog/projectgeneralwidget.cpp \
settingsdialog/projectmakefilewidget.cpp \
settingsdialog/projectoutputwidget.cpp \
settingsdialog/projectprecompilewidget.cpp \
2021-10-07 08:34:10 +08:00
settingsdialog/toolsgeneralwidget.cpp \
2021-10-06 23:19:18 +08:00
shortcutmanager.cpp \
symbolusagemanager.cpp \
2022-12-10 21:23:49 +08:00
syntaxermanager.cpp \
2021-10-15 13:49:28 +08:00
thememanager.cpp \
2021-10-03 17:18:43 +08:00
todoparser.cpp \
2021-10-08 00:06:41 +08:00
toolsmanager.cpp \
visithistorymanager.cpp \
2021-10-03 23:12:20 +08:00
widgets/aboutdialog.cpp \
2021-10-21 08:19:15 +08:00
widgets/bookmarkmodel.cpp \
widgets/choosethemedialog.cpp \
2021-08-23 03:47:28 +08:00
widgets/classbrowser.cpp \
2021-08-29 00:48:23 +08:00
widgets/codecompletionlistview.cpp \
widgets/codecompletionpopup.cpp \
2021-08-01 23:24:37 +08:00
widgets/cpudialog.cpp \
2021-04-06 23:10:57 +08:00
editor.cpp \
editorlist.cpp \
iconsmanager.cpp \
2021-04-06 23:10:57 +08:00
main.cpp \
mainwindow.cpp \
2021-04-16 22:04:48 +08:00
settingsdialog/compilersetdirectorieswidget.cpp \
settingsdialog/compilersetoptionwidget.cpp \
settings.cpp \
settingsdialog/editorclipboardwidget.cpp \
2021-06-14 08:01:00 +08:00
settingsdialog/editorcolorschemewidget.cpp \
settingsdialog/editorfontwidget.cpp \
2021-06-07 11:02:03 +08:00
settingsdialog/editorgeneralwidget.cpp \
settingsdialog/editorsymbolcompletionwidget.cpp \
2021-06-25 12:40:11 +08:00
settingsdialog/editorsyntaxcheckwidget.cpp \
2023-07-25 09:41:20 +08:00
settingsdialog/environmentappearancewidget.cpp \
2021-07-01 19:44:38 +08:00
settingsdialog/executorgeneralwidget.cpp \
2021-04-16 22:04:48 +08:00
settingsdialog/settingsdialog.cpp \
settingsdialog/settingswidget.cpp \
2021-04-11 21:33:08 +08:00
systemconsts.cpp \
2021-04-24 15:57:45 +08:00
utils.cpp \
utils/escape.cpp \
utils/font.cpp \
utils/parsearg.cpp \
2021-06-07 11:02:03 +08:00
widgets/coloredit.cpp \
2022-05-13 20:22:16 +08:00
widgets/compileargumentswidget.cpp \
widgets/customdisablediconengine.cpp \
widgets/customfilesystemmodel.cpp \
widgets/custommakefileinfodialog.cpp \
widgets/darkfusionstyle.cpp \
widgets/editorfontdialog.cpp \
widgets/editorstabwidget.cpp \
widgets/filenameeditdelegate.cpp \
widgets/filepropertiesdialog.cpp \
2021-09-22 17:43:21 +08:00
widgets/functiontooltipwidget.cpp \
2021-08-29 00:48:23 +08:00
widgets/headercompletionpopup.cpp \
2022-02-20 21:47:57 +08:00
widgets/infomessagebox.cpp \
2021-06-20 14:30:47 +08:00
widgets/issuestable.cpp \
widgets/labelwithmenu.cpp \
widgets/lightfusionstyle.cpp \
widgets/linenumbertexteditor.cpp \
2021-10-08 00:06:41 +08:00
widgets/macroinfomodel.cpp \
widgets/newclassdialog.cpp \
2022-01-31 11:57:33 +08:00
widgets/newheaderdialog.cpp \
2021-09-16 12:03:10 +08:00
widgets/newprojectdialog.cpp \
widgets/newprojectunitdialog.cpp \
2022-08-07 21:41:57 +08:00
widgets/newtemplatedialog.cpp \
widgets/ojproblempropertywidget.cpp \
2021-10-31 17:01:34 +08:00
widgets/ojproblemsetmodel.cpp \
widgets/projectalreadyopendialog.cpp \
2021-07-01 20:24:47 +08:00
widgets/qconsole.cpp \
2021-08-02 21:58:39 +08:00
widgets/qpatchedcombobox.cpp \
widgets/searchdialog.cpp \
widgets/searchinfiledialog.cpp \
2021-11-25 09:05:45 +08:00
widgets/searchresultview.cpp \
widgets/shortcutinputedit.cpp \
widgets/shrinkabletabwidget.cpp \
2021-11-25 09:05:45 +08:00
widgets/signalmessagedialog.cpp
2021-04-06 23:10:57 +08:00
HEADERS += \
SimpleIni.h \
addon/api.h \
addon/executor.h \
addon/runtime.h \
2021-09-04 11:37:04 +08:00
autolinkmanager.h \
2021-09-02 12:14:02 +08:00
caretlist.h \
codesnippetsmanager.h \
2021-06-17 10:39:46 +08:00
colorscheme.h \
2021-04-20 22:24:33 +08:00
compiler/compiler.h \
2022-05-13 20:22:16 +08:00
compiler/compilerinfo.h \
2021-04-20 22:24:33 +08:00
compiler/compilermanager.h \
compiler/executablerunner.h \
2021-04-20 22:24:33 +08:00
compiler/filecompiler.h \
2021-11-01 09:18:23 +08:00
compiler/ojproblemcasesrunner.h \
2021-09-13 07:49:36 +08:00
compiler/projectcompiler.h \
2021-11-01 09:18:23 +08:00
compiler/runner.h \
2021-06-24 20:43:09 +08:00
compiler/stdincompiler.h \
debugger/debugger.h \
debugger/gdbmidebugger.h \
debugger/gdbmiresultparser.h \
2024-03-13 11:16:04 +08:00
# debugger/dapprotocol.h \
# debugger/dapdebugger.h \
cpprefacter.h \
customfileiconprovider.h \
2021-08-14 22:52:37 +08:00
parser/cppparser.h \
2021-08-05 23:13:21 +08:00
parser/cpppreprocessor.h \
2021-08-13 22:53:26 +08:00
parser/cpptokenizer.h \
parser/parserutils.h \
2021-08-05 23:13:21 +08:00
parser/statementmodel.h \
problems/freeprojectsetformat.h \
2021-11-01 20:44:08 +08:00
problems/ojproblemset.h \
problems/problemcasevalidator.h \
2021-09-05 23:45:05 +08:00
project.h \
2021-09-16 12:03:10 +08:00
projectoptions.h \
projecttemplate.h \
2021-09-04 16:34:14 +08:00
settingsdialog/compilerautolinkwidget.h \
2021-08-01 23:24:37 +08:00
settingsdialog/debuggeneralwidget.h \
2021-08-30 22:05:45 +08:00
settingsdialog/editorautosavewidget.h \
settingsdialog/editorcodecompletionwidget.h \
settingsdialog/editorcustomctypekeywords.h \
2021-08-30 17:10:46 +08:00
settingsdialog/editormiscwidget.h \
2021-09-30 12:52:22 +08:00
settingsdialog/editorsnippetwidget.h \
settingsdialog/editortooltipswidget.h \
settingsdialog/environmentfolderswidget.h \
settingsdialog/environmentperformancewidget.h \
settingsdialog/environmentprogramswidget.h \
settingsdialog/environmentshortcutwidget.h \
settingsdialog/executorproblemsetwidget.h \
2021-08-31 19:15:11 +08:00
settingsdialog/formattergeneralwidget.h \
settingsdialog/languageasmgenerationwidget.h \
# settingsdialog/languagecformatwidget.h \
settingsdialog/projectcompileparamaterswidget.h \
2021-09-15 08:02:08 +08:00
settingsdialog/projectcompilerwidget.h \
settingsdialog/projectdirectorieswidget.h \
settingsdialog/projectdllhostwidget.h \
2021-09-14 17:33:47 +08:00
settingsdialog/projectfileswidget.h \
settingsdialog/projectgeneralwidget.h \
settingsdialog/projectmakefilewidget.h \
settingsdialog/projectoutputwidget.h \
settingsdialog/projectprecompilewidget.h \
2021-10-07 08:34:10 +08:00
settingsdialog/toolsgeneralwidget.h \
2021-10-06 23:19:18 +08:00
shortcutmanager.h \
symbolusagemanager.h \
2022-12-10 21:23:49 +08:00
syntaxermanager.h \
2021-10-15 13:49:28 +08:00
thememanager.h \
2021-10-03 17:18:43 +08:00
todoparser.h \
2021-10-08 00:06:41 +08:00
toolsmanager.h \
visithistorymanager.h \
2021-10-03 23:12:20 +08:00
widgets/aboutdialog.h \
2021-10-21 08:19:15 +08:00
widgets/bookmarkmodel.h \
widgets/choosethemedialog.h \
2021-08-23 03:47:28 +08:00
widgets/classbrowser.h \
2021-08-29 00:48:23 +08:00
widgets/codecompletionlistview.h \
widgets/codecompletionpopup.h \
2021-08-01 23:24:37 +08:00
widgets/cpudialog.h \
2021-04-06 23:10:57 +08:00
editor.h \
editorlist.h \
iconsmanager.h \
2021-04-06 23:10:57 +08:00
mainwindow.h \
2021-04-16 22:04:48 +08:00
settingsdialog/compilersetdirectorieswidget.h \
settingsdialog/compilersetoptionwidget.h \
settings.h \
settingsdialog/editorclipboardwidget.h \
2021-06-14 08:01:00 +08:00
settingsdialog/editorcolorschemewidget.h \
settingsdialog/editorfontwidget.h \
2021-06-07 11:02:03 +08:00
settingsdialog/editorgeneralwidget.h \
settingsdialog/editorsymbolcompletionwidget.h \
2021-06-25 12:40:11 +08:00
settingsdialog/editorsyntaxcheckwidget.h \
2023-07-25 09:41:20 +08:00
settingsdialog/environmentappearancewidget.h \
2021-07-01 19:44:38 +08:00
settingsdialog/executorgeneralwidget.h \
2021-04-16 22:04:48 +08:00
settingsdialog/settingsdialog.h \
settingsdialog/settingswidget.h \
2021-04-11 21:33:08 +08:00
systemconsts.h \
2021-04-24 15:57:45 +08:00
utils.h \
utils/escape.h \
utils/font.h \
utils/parsearg.h \
2021-04-24 15:57:45 +08:00
common.h \
2021-06-07 11:02:03 +08:00
widgets/coloredit.h \
2022-05-13 20:22:16 +08:00
widgets/compileargumentswidget.h \
widgets/customdisablediconengine.h \
widgets/customfilesystemmodel.h \
widgets/custommakefileinfodialog.h \
widgets/darkfusionstyle.h \
widgets/editorfontdialog.h \
widgets/editorstabwidget.h \
widgets/filenameeditdelegate.h \
widgets/filepropertiesdialog.h \
2021-09-22 17:43:21 +08:00
widgets/functiontooltipwidget.h \
2021-08-29 00:48:23 +08:00
widgets/headercompletionpopup.h \
2022-02-20 21:47:57 +08:00
widgets/infomessagebox.h \
2021-06-20 14:30:47 +08:00
widgets/issuestable.h \
widgets/labelwithmenu.h \
widgets/lightfusionstyle.h \
widgets/linenumbertexteditor.h \
2021-10-08 00:06:41 +08:00
widgets/macroinfomodel.h \
widgets/newclassdialog.h \
2022-01-31 11:57:33 +08:00
widgets/newheaderdialog.h \
2021-09-16 12:03:10 +08:00
widgets/newprojectdialog.h \
widgets/newprojectunitdialog.h \
2022-08-07 21:41:57 +08:00
widgets/newtemplatedialog.h \
widgets/ojproblempropertywidget.h \
2021-10-31 17:01:34 +08:00
widgets/ojproblemsetmodel.h \
widgets/projectalreadyopendialog.h \
2021-07-01 20:24:47 +08:00
widgets/qconsole.h \
2021-08-02 21:58:39 +08:00
widgets/qpatchedcombobox.h \
widgets/searchdialog.h \
widgets/searchinfiledialog.h \
2021-11-25 09:05:45 +08:00
widgets/searchresultview.h \
widgets/shortcutinputedit.h \
widgets/shrinkabletabwidget.h \
2021-11-25 09:05:45 +08:00
widgets/signalmessagedialog.h
2021-04-06 23:10:57 +08:00
FORMS += \
2021-09-04 16:34:14 +08:00
settingsdialog/compilerautolinkwidget.ui \
2021-08-01 23:24:37 +08:00
settingsdialog/debuggeneralwidget.ui \
2021-08-30 22:05:45 +08:00
settingsdialog/editorautosavewidget.ui \
settingsdialog/editorcodecompletionwidget.ui \
settingsdialog/editorcustomctypekeywords.ui \
2021-08-30 17:10:46 +08:00
settingsdialog/editormiscwidget.ui \
2021-09-30 12:52:22 +08:00
settingsdialog/editorsnippetwidget.ui \
settingsdialog/editortooltipswidget.ui \
settingsdialog/environmentfolderswidget.ui \
settingsdialog/environmentperformancewidget.ui \
settingsdialog/environmentprogramswidget.ui \
settingsdialog/environmentshortcutwidget.ui \
settingsdialog/executorproblemsetwidget.ui \
2021-08-31 19:15:11 +08:00
settingsdialog/formattergeneralwidget.ui \
settingsdialog/languageasmgenerationwidget.ui \
# settingsdialog/languagecformatwidget.ui \
settingsdialog/projectcompileparamaterswidget.ui \
2021-09-15 08:02:08 +08:00
settingsdialog/projectcompilerwidget.ui \
settingsdialog/projectdirectorieswidget.ui \
settingsdialog/projectdllhostwidget.ui \
2021-09-14 17:33:47 +08:00
settingsdialog/projectfileswidget.ui \
settingsdialog/projectgeneralwidget.ui \
settingsdialog/projectmakefilewidget.ui \
settingsdialog/projectoutputwidget.ui \
settingsdialog/projectprecompilewidget.ui \
2021-10-07 08:34:10 +08:00
settingsdialog/toolsgeneralwidget.ui \
2021-10-03 23:12:20 +08:00
widgets/aboutdialog.ui \
widgets/choosethemedialog.ui \
2021-08-01 23:24:37 +08:00
widgets/cpudialog.ui \
mainwindow.ui \
2021-04-16 22:04:48 +08:00
settingsdialog/compilersetdirectorieswidget.ui \
settingsdialog/compilersetoptionwidget.ui \
settingsdialog/editorclipboardwidget.ui \
2021-06-14 08:01:00 +08:00
settingsdialog/editorcolorschemewidget.ui \
settingsdialog/editorfontwidget.ui \
2021-06-07 11:02:03 +08:00
settingsdialog/editorgeneralwidget.ui \
settingsdialog/editorsymbolcompletionwidget.ui \
2021-06-25 12:40:11 +08:00
settingsdialog/editorsyntaxcheckwidget.ui \
2023-07-25 09:41:20 +08:00
settingsdialog/environmentappearancewidget.ui \
2021-07-01 19:44:38 +08:00
settingsdialog/executorgeneralwidget.ui \
2021-08-02 21:58:39 +08:00
settingsdialog/settingsdialog.ui \
widgets/custommakefileinfodialog.ui \
widgets/editorfontdialog.ui \
widgets/filepropertiesdialog.ui \
2022-02-20 21:47:57 +08:00
widgets/infomessagebox.ui \
widgets/newclassdialog.ui \
2022-01-31 11:57:33 +08:00
widgets/newheaderdialog.ui \
2021-09-16 12:03:10 +08:00
widgets/newprojectdialog.ui \
widgets/newprojectunitdialog.ui \
2022-08-07 21:41:57 +08:00
widgets/newtemplatedialog.ui \
widgets/ojproblempropertywidget.ui \
widgets/projectalreadyopendialog.ui \
2021-11-25 09:05:45 +08:00
widgets/searchdialog.ui \
widgets/searchinfiledialog.ui \
2021-11-25 09:05:45 +08:00
widgets/signalmessagedialog.ui
2021-04-06 23:10:57 +08:00
ENABLE_SDCC {
DEFINES += ENABLE_SDCC
2023-08-13 18:53:48 +08:00
SOURCES += \
2023-08-17 19:24:49 +08:00
compiler/sdccfilecompiler.cpp \
compiler/sdccprojectcompiler.cpp
2023-08-13 18:53:48 +08:00
HEADERS += \
2023-08-17 19:24:49 +08:00
compiler/sdccfilecompiler.h \
compiler/sdccprojectcompiler.h
2023-08-13 18:53:48 +08:00
}
ENABLE_LUA_ADDON {
DEFINES += ENABLE_LUA_ADDON
SOURCES += \
addon/api.cpp \
addon/executor.cpp \
addon/runtime.cpp
HEADERS += \
addon/api.h \
addon/executor.h \
addon/runtime.h
}
ENABLE_VCS {
DEFINES += ENABLE_VCS
SOURCES += \
vcs/gitbranchdialog.cpp \
vcs/gitfetchdialog.cpp \
vcs/gitlogdialog.cpp \
vcs/gitmanager.cpp \
vcs/gitmergedialog.cpp \
vcs/gitpulldialog.cpp \
vcs/gitpushdialog.cpp \
vcs/gitremotedialog.cpp \
vcs/gitrepository.cpp \
vcs/gitresetdialog.cpp \
vcs/gituserconfigdialog.cpp \
vcs/gitutils.cpp \
settingsdialog/toolsgitwidget.cpp
HEADERS += \
vcs/gitbranchdialog.h \
vcs/gitfetchdialog.h \
vcs/gitlogdialog.h \
vcs/gitmanager.h \
vcs/gitmergedialog.h \
vcs/gitpulldialog.h \
vcs/gitpushdialog.h \
vcs/gitremotedialog.h \
vcs/gitrepository.h \
vcs/gitresetdialog.h \
vcs/gituserconfigdialog.h \
vcs/gitutils.h \
settingsdialog/toolsgitwidget.h
FORMS += \
vcs/gitbranchdialog.ui \
vcs/gitfetchdialog.ui \
vcs/gitlogdialog.ui \
vcs/gitmergedialog.ui \
vcs/gitpulldialog.ui \
vcs/gitpushdialog.ui \
vcs/gitremotedialog.ui \
vcs/gitresetdialog.ui \
vcs/gituserconfigdialog.ui \
settingsdialog/toolsgitwidget.ui
}
2021-12-26 15:07:18 +08:00
win32: {
FORMS += \
2022-05-13 20:22:16 +08:00
settingsdialog/projectversioninfowidget.ui \
2021-12-24 23:18:20 +08:00
settingsdialog/environmentfileassociationwidget.ui
2021-12-26 15:07:18 +08:00
HEADERS += \
2021-12-24 23:18:20 +08:00
settingsdialog/projectversioninfowidget.h \
2022-05-13 20:22:16 +08:00
settingsdialog/environmentfileassociationwidget.h
2021-12-26 15:07:18 +08:00
SOURCES += \
2021-12-24 23:18:20 +08:00
settingsdialog/environmentfileassociationwidget.cpp \
settingsdialog/projectversioninfowidget.cpp
2021-12-26 15:07:18 +08:00
}
2021-12-24 23:18:20 +08:00
unix: {
2021-12-26 15:07:18 +08:00
HEADERS += \
settingsdialog/formatterpathwidget.h
2021-12-25 23:38:53 +08:00
2021-12-26 15:07:18 +08:00
SOURCES += \
settingsdialog/formatterpathwidget.cpp
2021-12-25 23:38:53 +08:00
2021-12-26 15:07:18 +08:00
FORMS += \
settingsdialog/formatterpathwidget.ui
2021-12-26 15:07:18 +08:00
}
linux: {
# legacy glibc compatibility -- modern Unices have all components in `libc.so`
LIBS += -lrt -ldl
_LINUX_STATIC_IME_PLUGIN = $$(LINUX_STATIC_IME_PLUGIN)
equals(_LINUX_STATIC_IME_PLUGIN, "ON") {
SOURCES += \
resources/linux_static_ime_plugin.cpp
QTPLUGIN.platforminputcontexts += \
composeplatforminputcontextplugin \
fcitx5platforminputcontextplugin \
ibusplatforminputcontextplugin
LIBS += -L$$[QT_INSTALL_PLUGINS]/platforminputcontexts
}
}
2021-12-25 23:38:53 +08:00
2021-04-06 23:10:57 +08:00
TRANSLATIONS += \
translations/RedPandaIDE_zh_CN.ts \
translations/RedPandaIDE_zh_TW.ts \
translations/RedPandaIDE_pt_BR.ts
2021-04-06 23:10:57 +08:00
EXTRA_TRANSLATIONS += \
../libs/redpanda_qt_utils/qt_utils_zh_CN.ts \
../libs/qsynedit/qsynedit_zh_CN.ts
#CONFIG += lrelease embed_translations
2022-01-16 15:08:54 +08:00
win32: {
!isEmpty(PREFIX) {
target.path = $${PREFIX}
}
}
2021-04-06 23:10:57 +08:00
# Default rules for deployment.
2022-01-05 08:18:47 +08:00
qnx: target.path = $${PREFIX}/bin
else: unix:!android: target.path = $${PREFIX}/bin
2021-04-06 23:10:57 +08:00
!isEmpty(target.path): INSTALLS += target
2021-04-07 21:13:15 +08:00
RESOURCES += \
fonts.qrc \
2021-09-01 22:40:58 +08:00
codes.qrc \
2021-09-04 11:37:04 +08:00
defaultconfigs.qrc \
2021-06-20 09:27:37 +08:00
icons.qrc \
projecttemplates.qrc \
2021-06-20 09:27:37 +08:00
translations.qrc
RC_ICONS = images/devcpp.ico images/associations/c.ico images/associations/cpp.ico images/associations/dev.ico images/associations/c.ico images/associations/cpp.ico images/associations/h.ico images/associations/hpp.ico
# fixed lrelease.prf
qtPrepareTool(QMAKE_LRELEASE, lrelease)
isEmpty(LRELEASE_DIR): LRELEASE_DIR = .qm
isEmpty(QM_FILES_RESOURCE_PREFIX): QM_FILES_RESOURCE_PREFIX = i18n
lrelease.name = lrelease
lrelease.input = TRANSLATIONS EXTRA_TRANSLATIONS
lrelease.output = $$LRELEASE_DIR/${QMAKE_FILE_IN_BASE}.qm
lrelease.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} $$QMAKE_LRELEASE_FLAGS -qm ${QMAKE_FILE_OUT}
silent: lrelease.commands = @echo lrelease ${QMAKE_FILE_IN} && $$lrelease.commands
lrelease.CONFIG = no_link target_predeps
QMAKE_EXTRA_COMPILERS += lrelease
all_translations = $$TRANSLATIONS $$EXTRA_TRANSLATIONS
for (translation, all_translations) {
# mirrors $$LRELEASE_DIR/${QMAKE_FILE_IN_BASE}.qm above
translation = $$basename(translation)
QM_FILES += $$OUT_PWD/$$LRELEASE_DIR/$$replace(translation, \\..*$, .qm)
}
qmake_qm_files.files = $$QM_FILES
qmake_qm_files.base = $$OUT_PWD/$$LRELEASE_DIR
qmake_qm_files.prefix = $$QM_FILES_RESOURCE_PREFIX
iconsets_files.files += $$files(resources/iconsets/*.svg, true)
iconsets_files.files += $$files(resources/iconsets/*.json, true)
ENABLE_LUA_ADDON {
theme_files.files += $$files(themes/*.lua, false)
} else {
theme_files.files += $$files(resources/themes/*.json, false)
}
theme_files.files += $$files(resources/themes/*.png, false)
colorscheme_files.files += $$files(resources/colorschemes/*.scheme, false)
RESOURCES += qmake_qm_files
RESOURCES += iconsets_files
RESOURCES += theme_files
RESOURCES += colorscheme_files
macos: {
# Add needed executables into the main app bundle
bundled_executable.files = \
2022-09-25 16:07:52 +08:00
$$OUT_PWD/../tools/astyle/astyle \
$$OUT_PWD/../tools/consolepauser/consolepauser \
$$OUT_PWD/../tools/redpanda-git-askpass/redpanda-git-askpass.app/Contents/MacOS/redpanda-git-askpass
bundled_executable.path = Contents/MacOS
# Also bundled templates
QMAKE_BUNDLE_DATA += bundled_executable
}