From 40ccd4d1ac81d1e146bff08f0cf51e47bc78a856 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Tue, 14 Jul 2009 14:36:05 +0300 Subject: [PATCH] Add QMake project files for core and tests. Ticket #472 (QMake project file to build cppcheck core). --- src/src.pro | 61 +++++++++++++++++++++++++++++++++++++++ test/test.pro | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+) create mode 100644 src/src.pro create mode 100644 test/test.pro diff --git a/src/src.pro b/src/src.pro new file mode 100644 index 000000000..122286eaa --- /dev/null +++ b/src/src.pro @@ -0,0 +1,61 @@ +###################################################################### +# Automatically generated by qmake (2.01a) Mon Jul 13 10:40:01 2009 +###################################################################### + +TEMPLATE = app +TARGET = cppcheck +DEPENDPATH += . +INCLUDEPATH += . +OBJECTS_DIR = temp +CONFIG += warn_on debug +QT -= gui core + +# Input +HEADERS += check.h \ + checkautovariables.h \ + checkbufferoverrun.h \ + checkclass.h \ + checkdangerousfunctions.h \ + checkheaders.h \ + checkmemoryleak.h \ + checkother.h \ + checkstl.h \ + checkunusedfunctions.h \ + cppcheck.h \ + cppcheckexecutor.h \ + errorlogger.h \ + filelister.h \ + mathlib.h \ + preprocessor.h \ + resource.h \ + settings.h \ + threadexecutor.h \ + token.h \ + tokenize.h +SOURCES += checkautovariables.cpp \ + checkbufferoverrun.cpp \ + checkclass.cpp \ + checkdangerousfunctions.cpp \ + checkheaders.cpp \ + checkmemoryleak.cpp \ + checkother.cpp \ + checkstl.cpp \ + checkunusedfunctions.cpp \ + cppcheck.cpp \ + cppcheckexecutor.cpp \ + errorlogger.cpp \ + filelister.cpp \ + main.cpp \ + mathlib.cpp \ + preprocessor.cpp \ + settings.cpp \ + threadexecutor.cpp \ + token.cpp \ + tokenize.cpp + +win32 { + CONFIG += embed_manifest_exe console + RC_FILE = cppcheck.rc + HEADERS += resource.h + LIBS += -lshlwapi +} diff --git a/test/test.pro b/test/test.pro new file mode 100644 index 000000000..8b1312f00 --- /dev/null +++ b/test/test.pro @@ -0,0 +1,79 @@ +###################################################################### +# Automatically generated by qmake (2.01a) Mon Jul 13 17:37:53 2009 +###################################################################### + +TEMPLATE = app +TARGET = test +DEPENDPATH += . +INCLUDEPATH += ../src +OBJECTS_DIR = temp +CONFIG += warn_on debug +QT -= gui core +DEFINES += UNIT_TESTING + +# Input +HEADERS += testsuite.h \ + ../src/tokenize.h \ + ../src/settings.h \ + ../src/errorlogger.h \ + ../src/token.h \ + ../src/checkautovariables.h \ + ../src/check.h \ + ../src/checkbufferoverrun.h \ + ../src/checkother.h \ + ../src/checkclass.h \ + ../src/cppcheck.h \ + ../src/checkunusedfunctions.h \ + ../src/checkdangerousfunctions.h \ + ../src/filelister.h \ + ../src/mathlib.h \ + ../src/checkmemoryleak.h \ + ../src/preprocessor.h \ + ../src/checkstl.h \ + ../src/checkheaders.h +SOURCES += testautovariables.cpp \ + testbufferoverrun.cpp \ + testcharvar.cpp \ + testclass.cpp \ + testconstructors.cpp \ + testcppcheck.cpp \ + testdangerousfunctions.cpp \ + testdivision.cpp \ + testfilelister.cpp \ + testincompletestatement.cpp \ + testmathlib.cpp \ + testmemleak.cpp \ + testother.cpp \ + testpreprocessor.cpp \ + testredundantif.cpp \ + testrunner.cpp \ + testsimplifytokens.cpp \ + teststl.cpp \ + testsuite.cpp \ + testtoken.cpp \ + testtokenize.cpp \ + testunusedfunctions.cpp \ + testunusedprivfunc.cpp \ + testunusedvar.cpp \ + ../src/tokenize.cpp \ + ../src/settings.cpp \ + ../src/errorlogger.cpp \ + ../src/token.cpp \ + ../src/checkautovariables.cpp \ + ../src/checkbufferoverrun.cpp \ + ../src/checkother.cpp \ + ../src/checkclass.cpp \ + ../src/cppcheck.cpp \ + ../src/checkunusedfunctions.cpp \ + ../src/checkdangerousfunctions.cpp \ + ../src/filelister.cpp \ + ../src/mathlib.cpp \ + ../src/checkmemoryleak.cpp \ + ../src/preprocessor.cpp \ + ../src/checkstl.cpp \ + ../src/CheckHeaders.cpp + +win32 { + CONFIG += console + LIBS += -lshlwapi +}