cppcheck/gui/gui.pro

215 lines
5.3 KiB
Prolog
Raw Normal View History

2017-08-13 13:38:47 +02:00
lessThan(QT_MAJOR_VERSION, 5): error(requires >= Qt 5 (You used: $$QT_VERSION))
2011-04-02 19:16:18 +02:00
TEMPLATE = app
TARGET = cppcheck-gui
2014-01-18 08:50:22 +01:00
CONFIG += warn_on debug
2011-04-02 19:16:18 +02:00
DEPENDPATH += . \
../lib
INCLUDEPATH += . \
../lib \
../externals/z3/include
2017-08-13 13:38:47 +02:00
QT += widgets
QT += printsupport
2020-07-20 11:59:28 +02:00
QT += help
2020-07-20 12:43:08 +02:00
# Build online help
#onlinehelp.target = online-help.qhc
#onlinehelp.commands = qhelpgenerator $$PWD/help/online-help.qhp -o online-help.qch ; qhelpgenerator $$PWD/help/online-help.qhcp -o online-help.qhc
#QMAKE_EXTRA_TARGETS += onlinehelp
#PRE_TARGETDEPS += online-help.qhc
2020-07-20 12:43:08 +02:00
contains(LINKCORE, [yY][eE][sS]) {
LIBS += -l../bin/cppcheck-core
DEFINES += CPPCHECKLIB_IMPORT
}
LIBS += -L$$PWD/../externals -L$$PWD/../externals/z3/bin
2011-04-02 19:16:18 +02:00
# z3
win32 {
LIBS += -llibz3
} else {
LIBS += -lz3
}
QMAKE_CXXFLAGS += -DUSE_Z3
2011-04-02 19:16:18 +02:00
DESTDIR = .
RCC_DIR = temp
MOC_DIR = temp
OBJECTS_DIR = temp
UI_DIR = temp
isEmpty(QMAKE_CXX) {
isEmpty(CXX)) {
QMAKE_CXX = gcc
} else {
QMAKE_CXX = $$(CXX)
}
}
2011-04-02 19:16:18 +02:00
win32 {
CONFIG += windows
contains(LINKCORE, [yY][eE][sS]) {
DESTDIR = ../bin
RCC_DIR = temp/generated
MOC_DIR = temp/generated
OBJECTS_DIR = temp/generated
UI_DIR = temp/generated
} else {
DESTDIR = ../Build/gui
RCC_DIR = ../BuildTmp/gui
MOC_DIR = ../BuildTmp/gui
OBJECTS_DIR = ../BuildTmp/gui
UI_DIR = ../BuildTmp/gui
}
2011-04-02 19:16:18 +02:00
}
RESOURCES = gui.qrc
2011-04-04 13:18:28 +02:00
FORMS = about.ui \
application.ui \
file.ui \
functioncontractdialog.ui \
helpdialog.ui \
2016-11-19 23:07:48 +01:00
mainwindow.ui \
projectfiledialog.ui \
2011-04-04 13:18:28 +02:00
resultsview.ui \
scratchpad.ui \
2011-04-04 13:18:28 +02:00
settings.ui \
2015-09-04 20:46:26 +02:00
stats.ui \
librarydialog.ui \
libraryaddfunctiondialog.ui \
libraryeditargdialog.ui \
2020-08-22 11:37:44 +02:00
newsuppressiondialog.ui \
variablecontractsdialog.ui
2011-04-02 19:16:18 +02:00
TRANSLATIONS = cppcheck_de.ts \
cppcheck_es.ts \
cppcheck_fi.ts \
2011-04-02 19:16:18 +02:00
cppcheck_fr.ts \
2012-09-16 13:21:46 +02:00
cppcheck_it.ts \
cppcheck_ja.ts \
2012-07-28 15:10:39 +02:00
cppcheck_ko.ts \
2011-04-02 19:16:18 +02:00
cppcheck_nl.ts \
cppcheck_ru.ts \
cppcheck_sr.ts \
2012-12-18 17:23:41 +01:00
cppcheck_sv.ts \
cppcheck_zh_CN.ts
2011-04-02 19:16:18 +02:00
# Windows-specific options
CONFIG += embed_manifest_exe
contains(LINKCORE, [yY][eE][sS]) {
} else {
BASEPATH = ../lib/
include($$PWD/../lib/lib.pri)
}
2011-04-02 19:16:18 +02:00
2011-04-04 13:18:28 +02:00
HEADERS += aboutdialog.h \
application.h \
2011-04-02 19:16:18 +02:00
applicationdialog.h \
2011-04-04 13:18:28 +02:00
applicationlist.h \
checkstatistics.h \
checkthread.h \
codeeditstylecontrols.h \
codeeditorstyle.h \
codeeditstyledialog.h \
codeeditor.h \
2011-04-02 19:16:18 +02:00
common.h \
2011-04-04 13:18:28 +02:00
csvreport.h \
2011-04-02 19:16:18 +02:00
erroritem.h \
2011-04-04 13:18:28 +02:00
filelist.h \
2011-04-02 19:16:18 +02:00
fileviewdialog.h \
functioncontractdialog.h \
helpdialog.h \
2011-04-04 13:18:28 +02:00
mainwindow.h \
platforms.h \
printablereport.h \
2011-04-02 19:16:18 +02:00
projectfile.h \
projectfiledialog.h \
report.h \
2011-04-04 13:18:28 +02:00
resultstree.h \
resultsview.h \
scratchpad.h \
2011-04-04 13:18:28 +02:00
settingsdialog.h \
2011-12-27 20:13:16 +01:00
showtypes.h \
2011-04-04 13:18:28 +02:00
statsdialog.h \
threadhandler.h \
threadresult.h \
translationhandler.h \
2011-04-02 19:16:18 +02:00
txtreport.h \
2020-08-22 11:37:44 +02:00
variablecontractsdialog.h \
2011-04-02 19:16:18 +02:00
xmlreport.h \
2015-09-04 20:46:26 +02:00
xmlreportv2.h \
librarydialog.h \
cppchecklibrarydata.h \
libraryaddfunctiondialog.h \
libraryeditargdialog.h \
newsuppressiondialog.h
2011-04-02 19:16:18 +02:00
2011-04-04 13:18:28 +02:00
SOURCES += aboutdialog.cpp \
application.cpp \
2011-04-02 19:16:18 +02:00
applicationdialog.cpp \
2011-04-04 13:18:28 +02:00
applicationlist.cpp \
checkstatistics.cpp \
checkthread.cpp \
codeeditorstyle.cpp \
codeeditstylecontrols.cpp \
codeeditstyledialog.cpp \
codeeditor.cpp \
common.cpp \
2011-04-04 13:18:28 +02:00
csvreport.cpp \
erroritem.cpp \
filelist.cpp \
2011-04-02 19:16:18 +02:00
fileviewdialog.cpp \
functioncontractdialog.cpp \
helpdialog.cpp \
2011-04-04 13:18:28 +02:00
main.cpp \
mainwindow.cpp\
platforms.cpp \
printablereport.cpp \
2011-04-02 19:16:18 +02:00
projectfile.cpp \
projectfiledialog.cpp \
report.cpp \
2011-04-04 13:18:28 +02:00
resultstree.cpp \
resultsview.cpp \
scratchpad.cpp \
2011-04-04 13:18:28 +02:00
settingsdialog.cpp \
2011-12-27 20:13:16 +01:00
showtypes.cpp \
2011-04-04 13:18:28 +02:00
statsdialog.cpp \
threadhandler.cpp \
threadresult.cpp \
translationhandler.cpp \
2011-04-02 19:16:18 +02:00
txtreport.cpp \
2020-08-22 11:37:44 +02:00
variablecontractsdialog.cpp \
2011-04-02 19:16:18 +02:00
xmlreport.cpp \
2015-09-04 20:46:26 +02:00
xmlreportv2.cpp \
librarydialog.cpp \
cppchecklibrarydata.cpp \
libraryaddfunctiondialog.cpp \
libraryeditargdialog.cpp \
newsuppressiondialog.cpp
2011-04-02 19:16:18 +02:00
win32 {
RC_FILE = cppcheck-gui.rc
HEADERS += ../lib/version.h
contains(LINKCORE, [yY][eE][sS]) {
} else {
LIBS += -lshlwapi
}
2011-04-02 19:16:18 +02:00
}
contains(QMAKE_CC, gcc) {
QMAKE_CXXFLAGS += -std=c++11 -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare -Wno-deprecated-declarations
}
contains(QMAKE_CXX, clang++) {
QMAKE_CXXFLAGS += -std=c++11
}
contains(HAVE_QCHART, [yY][eE][sS]) {
QT += charts
DEFINES += HAVE_QCHART
} else {
message("Charts disabled - to enable it pass HAVE_QCHART=yes to qmake.")
}