RedPanda-CPP/RedPandaIDE/RedPandaIDE.pro

373 lines
12 KiB
Prolog
Raw Normal View History

QT += core gui printsupport network svg
2021-04-06 23:10:57 +08:00
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17
CONFIG += nokey
2021-04-06 23:10:57 +08:00
2022-01-05 08:18:47 +08:00
isEmpty(APP_NAME) {
APP_NAME = RedPandaCPP
}
2021-12-30 08:59:10 +08:00
2022-01-05 09:08:44 +08:00
isEmpty(PREFIX) {
PREFIX = /usr/local
}
DEFINES += PREFIX=\\\"$${PREFIX}\\\"
DEFINES += APP_NAME=\\\"$${APP_NAME}\\\"
2022-01-08 13:51:34 +08:00
DEFINES += REDPANDA_CPP_VERSION=\\\"$${APP_VERSION}\\\"
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
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
SOURCES += \
2021-05-26 00:04:20 +08:00
HighlighterManager.cpp \
2021-09-04 11:37:04 +08:00
autolinkmanager.cpp \
2021-09-02 12:14:02 +08:00
caretlist.cpp \
2021-08-31 19:15:11 +08:00
codeformatter.cpp \
codesnippetsmanager.cpp \
2021-06-17 10:39:46 +08:00
colorscheme.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 \
2021-11-12 10:51:00 +08:00
gdbmiresultparser.cpp \
2021-09-12 01:01:34 +08:00
platform.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 \
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 \
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-08-02 17:24:11 +08:00
qsynedit/Search.cpp \
qsynedit/SearchBase.cpp \
qsynedit/SearchRegex.cpp \
2021-09-25 07:51:48 +08:00
qsynedit/Types.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 \
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/environmentshortcutwidget.cpp \
settingsdialog/executorproblemsetwidget.cpp \
2021-08-31 19:15:11 +08:00
settingsdialog/formattergeneralwidget.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 \
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 \
2021-10-03 23:12:20 +08:00
widgets/aboutdialog.cpp \
2021-10-21 08:19:15 +08:00
widgets/bookmarkmodel.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-07-03 21:57:50 +08:00
debugger.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-05-14 23:56:43 +08:00
qsynedit/CodeFolding.cpp \
qsynedit/Constants.cpp \
qsynedit/KeyStrokes.cpp \
qsynedit/MiscClasses.cpp \
qsynedit/MiscProcs.cpp \
qsynedit/SynEdit.cpp \
qsynedit/TextBuffer.cpp \
qsynedit/TextPainter.cpp \
2021-06-10 09:34:59 +08:00
qsynedit/exporter/synexporter.cpp \
qsynedit/exporter/synhtmlexporter.cpp \
qsynedit/exporter/synrtfexporter.cpp \
2021-07-01 20:24:47 +08:00
qsynedit/highlighter/asm.cpp \
2021-05-14 23:56:43 +08:00
qsynedit/highlighter/base.cpp \
qsynedit/highlighter/composition.cpp \
qsynedit/highlighter/cpp.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 \
2021-06-18 21:48:40 +08:00
settingsdialog/environmentappearencewidget.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 \
2021-06-07 11:02:03 +08:00
widgets/coloredit.cpp \
2021-07-01 19:44:38 +08:00
widgets/consolewidget.cpp \
widgets/custommakefileinfodialog.cpp \
widgets/darkfusionstyle.cpp \
widgets/editorstabwidget.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 \
2021-06-20 14:30:47 +08:00
widgets/issuestable.cpp \
widgets/labelwithmenu.cpp \
widgets/lightfusionstyle.cpp \
2021-10-08 00:06:41 +08:00
widgets/macroinfomodel.cpp \
2021-09-16 12:03:10 +08:00
widgets/newprojectdialog.cpp \
widgets/ojproblempropertywidget.cpp \
2021-10-31 17:01:34 +08:00
widgets/ojproblemsetmodel.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 \
2021-11-25 09:05:45 +08:00
widgets/searchresultview.cpp \
widgets/signalmessagedialog.cpp
2021-04-06 23:10:57 +08:00
HEADERS += \
2021-05-26 00:04:20 +08:00
HighlighterManager.h \
SimpleIni.h \
2021-09-04 11:37:04 +08:00
autolinkmanager.h \
2021-09-02 12:14:02 +08:00
caretlist.h \
2021-08-31 19:15:11 +08:00
codeformatter.h \
codesnippetsmanager.h \
2021-06-17 10:39:46 +08:00
colorscheme.h \
2021-04-20 22:24:33 +08:00
compiler/compiler.h \
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 \
cpprefacter.h \
2021-11-12 10:51:00 +08:00
gdbmiresultparser.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 \
platform.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-08-02 17:24:11 +08:00
qsynedit/Search.h \
qsynedit/SearchBase.h \
qsynedit/SearchRegex.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 \
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/environmentshortcutwidget.h \
settingsdialog/executorproblemsetwidget.h \
2021-08-31 19:15:11 +08:00
settingsdialog/formattergeneralwidget.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 \
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 \
2021-10-03 23:12:20 +08:00
widgets/aboutdialog.h \
2021-10-21 08:19:15 +08:00
widgets/bookmarkmodel.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-07-03 21:57:50 +08:00
debugger.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-05-14 23:56:43 +08:00
qsynedit/CodeFolding.h \
qsynedit/Constants.h \
qsynedit/KeyStrokes.h \
qsynedit/MiscClasses.h \
qsynedit/MiscProcs.h \
qsynedit/SynEdit.h \
qsynedit/TextBuffer.h \
qsynedit/TextPainter.h \
qsynedit/Types.h \
2021-06-10 09:34:59 +08:00
qsynedit/exporter/synexporter.h \
qsynedit/exporter/synhtmlexporter.h \
qsynedit/exporter/synrtfexporter.h \
2021-07-01 20:24:47 +08:00
qsynedit/highlighter/asm.h \
2021-05-14 23:56:43 +08:00
qsynedit/highlighter/base.h \
qsynedit/highlighter/composition.h \
qsynedit/highlighter/cpp.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 \
2021-06-18 21:48:40 +08:00
settingsdialog/environmentappearencewidget.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 \
common.h \
2021-06-07 11:02:03 +08:00
widgets/coloredit.h \
2021-07-01 19:44:38 +08:00
widgets/consolewidget.h \
widgets/custommakefileinfodialog.h \
widgets/darkfusionstyle.h \
widgets/editorstabwidget.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 \
2021-06-20 14:30:47 +08:00
widgets/issuestable.h \
widgets/labelwithmenu.h \
widgets/lightfusionstyle.h \
2021-10-08 00:06:41 +08:00
widgets/macroinfomodel.h \
2021-09-16 12:03:10 +08:00
widgets/newprojectdialog.h \
widgets/ojproblempropertywidget.h \
2021-10-31 17:01:34 +08:00
widgets/ojproblemsetmodel.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 \
2021-11-25 09:05:45 +08:00
widgets/searchresultview.h \
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 \
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/environmentshortcutwidget.ui \
settingsdialog/executorproblemsetwidget.ui \
2021-08-31 19:15:11 +08:00
settingsdialog/formattergeneralwidget.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 \
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 \
2021-06-18 21:48:40 +08:00
settingsdialog/environmentappearencewidget.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/filepropertiesdialog.ui \
2021-09-16 12:03:10 +08:00
widgets/newprojectdialog.ui \
widgets/ojproblempropertywidget.ui \
2021-11-25 09:05:45 +08:00
widgets/searchdialog.ui \
widgets/signalmessagedialog.ui
2021-04-06 23:10:57 +08:00
2021-12-26 15:07:18 +08:00
win32: {
FORMS += \
2021-12-24 23:18:20 +08:00
settingsdialog/projectversioninfowidget.ui \
settingsdialog/environmentfileassociationwidget.ui
2021-12-26 15:07:18 +08:00
HEADERS += \
2021-12-24 23:18:20 +08:00
settingsdialog/projectversioninfowidget.h \
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
settingsdialog/environmentprogramswidget.h
2021-12-26 15:07:18 +08:00
SOURCES += \
settingsdialog/formatterpathwidget.cpp \
2021-12-26 15:07:18 +08:00
settingsdialog/environmentprogramswidget.cpp
2021-12-25 23:38:53 +08:00
2021-12-26 15:07:18 +08:00
FORMS += \
settingsdialog/formatterpathwidget.ui \
2021-12-25 23:38:53 +08:00
settingsdialog/environmentprogramswidget.ui
2021-12-26 15:07:18 +08:00
}
linux: {
LIBS+= \
-lrt
}
2021-12-25 23:38:53 +08:00
2021-04-06 23:10:57 +08:00
TRANSLATIONS += \
RedPandaIDE_zh_CN.ts
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 += \
2021-09-01 22:40:58 +08:00
codes.qrc \
2021-06-18 22:57:19 +08:00
colorschemes.qrc \
2021-09-04 11:37:04 +08:00
defaultconfigs.qrc \
themes.qrc \
2021-06-20 09:27:37 +08:00
icons.qrc \
translations.qrc
RC_ICONS = images/devcpp.ico images/associations/c.ico images/associations/cpp.ico images/associations/h.ico images/associations/hpp.ico images/associations/dev.ico