Added support to link cppcheck-core dynamically into GUI (use LINKCORE=yes when calling qmake)

This commit is contained in:
PKEuS 2012-10-06 21:23:52 +02:00
parent 4c1abde48e
commit fa5c8fb90b
1 changed files with 22 additions and 7 deletions

View File

@ -5,6 +5,10 @@ DEPENDPATH += . \
../lib
INCLUDEPATH += . \
../lib
contains(LINKCORE, [yY][eE][sS]) {
LIBS += -l../bin/cppcheck-core
DEFINES += CPPCHECKLIB_IMPORT
}
LIBS += -L../externals
DESTDIR = .
@ -15,11 +19,19 @@ UI_DIR = temp
win32 {
CONFIG += windows
DESTDIR = ../Build/gui
RCC_DIR = ../BuildTmp/gui
MOC_DIR = ../BuildTmp/gui
OBJECTS_DIR = ../BuildTmp/gui
UI_DIR = ../BuildTmp/gui
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
}
}
RESOURCES = gui.qrc
@ -49,8 +61,11 @@ TRANSLATIONS = cppcheck_de.ts \
# Windows-specific options
CONFIG += embed_manifest_exe
BASEPATH = ../lib/
include($$PWD/../lib/lib.pri)
contains(LINKCORE, [yY][eE][sS]) {
} else {
BASEPATH = ../lib/
include($$PWD/../lib/lib.pri)
}
HEADERS += aboutdialog.h \
application.h \