From 18933ea0e662da8d9e0edac520c750fb95c64125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 17 Dec 2010 21:43:47 +0100 Subject: [PATCH] QMake: auto-generate the visual studio project files with qmake --- cli/cppcheck.vcproj | 681 ++++++++-------------------------- cli/cppcheck.vcxproj | 290 +++++---------- cli/cppcheck.vcxproj.filters | 160 ++++---- externals/tinyxml/tinyxml.pri | 4 +- lib/lib.pri | 106 +++--- 5 files changed, 385 insertions(+), 856 deletions(-) diff --git a/cli/cppcheck.vcproj b/cli/cppcheck.vcproj index 1f098bb9a..ccebc9135 100755 --- a/cli/cppcheck.vcproj +++ b/cli/cppcheck.vcproj @@ -1,651 +1,278 @@ + ProjectGUID="{A610CB5D-FA83-3FC9-96AB-5689E3B50CEC}" + Keyword="Qt4VSv1.0"> + Name="Win32" /> - - - - - - - + ConfigurationType="1" + IntermediateDirectory="temp\" + UseOfMfc="0"> + ExceptionHandling="1" + GeneratePreprocessedFile="0" + ObjectFile="temp\" + Optimization ="4" + PreprocessorDefinitions="UNICODE,WIN32,QT_LARGEFILE_SUPPORT" + ProgramDataBaseFileName=".\" + RuntimeLibrary="3" + RuntimeTypeInfo="true" + SuppressStartupBanner="true" + TreatWChar_tAsBuiltInType="false" + WarningLevel="4" /> - - + Name="VCCustomBuildTool" /> + SuppressStartupBanner="true" /> + Name="VCMIDLTool" + DefaultCharType="0" + EnableErrorChecks="1" + WarningLevel="0" /> + Name="VCPostBuildEventTool" /> + Name="VCPreBuildEventTool" /> + Name="VCPreLinkEventTool" /> - - + Name="VCResourceCompilerTool" + PreprocessorDefinitions="UNICODE,WIN32,QT_LARGEFILE_SUPPORT,_DEBUG" /> - - - - - + ConfigurationType="1" + IntermediateDirectory="temp\" + UseOfMfc="0"> + WarningLevel="4" /> - - + Name="VCCustomBuildTool" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + SuppressStartupBanner="true" /> + Name="VCMIDLTool" + DefaultCharType="0" + EnableErrorChecks="1" + WarningLevel="0" /> + Name="VCPostBuildEventTool" /> + Name="VCPreBuildEventTool" /> + Name="VCPreLinkEventTool" /> - - + Name="VCResourceCompilerTool" + PreprocessorDefinitions="QT_NO_DEBUG,NDEBUG,UNICODE,WIN32,QT_LARGEFILE_SUPPORT,NDEBUG" /> - - + UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"> - + RelativePath="..\lib\checkautovariables.cpp" /> - + RelativePath="..\lib\checkbufferoverrun.cpp" /> - + RelativePath="..\lib\checkclass.cpp" /> - + RelativePath="..\lib\checkexceptionsafety.cpp" /> - + RelativePath="..\lib\checkmemoryleak.cpp" /> - + RelativePath="..\lib\checknullpointer.cpp" /> - + RelativePath="..\lib\checkobsoletefunctions.cpp" /> - + RelativePath="..\lib\checkother.cpp" /> - + RelativePath="..\lib\checkpostfixoperator.cpp" /> - + RelativePath="..\lib\checkstl.cpp" /> - + RelativePath="..\lib\checkuninitvar.cpp" /> - + RelativePath="..\lib\checkunusedfunctions.cpp" /> - + RelativePath="cmdlineparser.cpp" /> - + RelativePath="..\lib\cppcheck.cpp" /> - + RelativePath="cppcheckexecutor.cpp" /> - + RelativePath="..\lib\errorlogger.cpp" /> - + RelativePath="..\lib\executionpath.cpp" /> - + RelativePath="..\lib\filelister.cpp" /> - + RelativePath="..\lib\filelister_unix.cpp" /> - + RelativePath="..\lib\filelister_win32.cpp" /> - + RelativePath="main.cpp" /> - + RelativePath="..\lib\mathlib.cpp" /> - + RelativePath="..\lib\path.cpp" /> - + RelativePath="..\lib\preprocessor.cpp" /> - + RelativePath="..\lib\settings.cpp" /> - + RelativePath="..\lib\symboldatabase.cpp" /> - + RelativePath="threadexecutor.cpp" /> - + RelativePath="..\lib\timer.cpp" /> - + RelativePath="..\externals\tinyxml\tinystr.cpp" /> - + RelativePath="..\externals\tinyxml\tinyxml.cpp" /> + + + + + UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"> - + RelativePath="..\lib\check.h" /> - + RelativePath="..\lib\checkautovariables.h" /> - + RelativePath="..\lib\checkbufferoverrun.h" /> - + RelativePath="..\lib\checkclass.h" /> - + RelativePath="..\lib\checkexceptionsafety.h" /> - + RelativePath="..\lib\checkmemoryleak.h" /> - + RelativePath="..\lib\checknullpointer.h" /> - + RelativePath="..\lib\checkobsoletefunctions.h" /> - + RelativePath="..\lib\checkother.h" /> - + RelativePath="..\lib\checkpostfixoperator.h" /> - + RelativePath="..\lib\checkstl.h" /> - + RelativePath="..\lib\checkuninitvar.h" /> - + RelativePath="..\lib\checkunusedfunctions.h" /> - + RelativePath="cmdlineparser.h" /> - + RelativePath="..\lib\cppcheck.h" /> - + RelativePath="cppcheckexecutor.h" /> - + RelativePath="..\lib\errorlogger.h" /> - + RelativePath="..\lib\executionpath.h" /> - + RelativePath="..\lib\filelister.h" /> - + RelativePath="..\lib\filelister_unix.h" /> - + RelativePath="..\lib\filelister_win32.h" /> - + RelativePath="..\lib\mathlib.h" /> - + RelativePath="..\lib\path.h" /> - + RelativePath="..\lib\preprocessor.h" /> - + RelativePath="resource.h" /> - + RelativePath="..\lib\settings.h" /> - + RelativePath="..\lib\symboldatabase.h" /> - + RelativePath="threadexecutor.h" /> - + RelativePath="..\lib\timer.h" /> - + RelativePath="..\externals\tinyxml\tinystr.h" /> - + RelativePath="..\externals\tinyxml\tinyxml.h" /> + + + Name="Generated Files" + Filter="cpp;c;cxx;moc;h;def;odl;idl;res;" + UniqueIdentifier="{71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11}"> - - - - - - - - - - - + RelativePath="temp\cppcheck.res" /> - + RelativePath="cppcheck.rc" /> - + \ No newline at end of file diff --git a/cli/cppcheck.vcxproj b/cli/cppcheck.vcxproj index 4526fd431..a0691b89f 100644 --- a/cli/cppcheck.vcxproj +++ b/cli/cppcheck.vcxproj @@ -1,240 +1,122 @@ - + Debug Win32 - - Debug - x64 - Release Win32 - - Release - x64 - - {7D0D241B-E144-3FAC-ABD3-8D1BBA4B600A} + {E3A516D8-D69D-32D7-A444-A3674D4B1FE8} cppcheck Qt4VSv1.0 - + + debug\ + false Application - false + temp\ - + + release\ + false Application - false - - - Application - false - - - Application - false + temp\ - + + + - - - - - - - - - - - + + - <_ProjectFileVersion>10.0.30319.1 - ..\Build\$(Configuration)\ - ..\Build\$(Configuration)-$(Platform)\ - ..\BuildTmp\$(TargetName)\$(Configuration)\ - ..\BuildTmp\$(TargetName)\$(Configuration)-$(Platform)\ - true - true - ..\Build\$(Configuration)\ - ..\Build\$(Configuration)-$(Platform)\ - ..\BuildTmp\$(TargetName)\$(Configuration)\ - ..\BuildTmp\$(TargetName)\$(Configuration)-$(Platform)\ - true - true - false - false - AllRules.ruleset - AllRules.ruleset - - - - - AllRules.ruleset - AllRules.ruleset - - - - - $(IncludePath) + debug\ + temp\ + cppcheck + true + release\ + temp\ + cppcheck + true + false - - - 0 - Unsigned - None - + + ".";"..\lib";"..\externals";c:\Qt\VS4.7.0\mkspecs\win32-msvc2010;%(AdditionalIncludeDirectories) + -Zm200 -w34100 -w34189 %(AdditionalOptions) + temp\ + false + false + ProgramDatabase + Sync + temp\ Disabled - false - ..\lib;..\externals;%(AdditionalIncludeDirectories) - _DEBUG;WIN32;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebug + UNICODE;WIN32;QT_LARGEFILE_SUPPORT;%(PreprocessorDefinitions) + false + .\ + MultiThreadedDebugDLL + true + true false - $(IntDir) - $(IntDir) Level4 - ProgramDatabase - - WIN32;_DEBUG;%(PreprocessorDefinitions) - - shlwapi.lib;%(AdditionalDependencies) - $(OutDir)cppcheck.exe + pcre.lib;shlwapi.lib;%(AdditionalDependencies) + ../externals;%(AdditionalLibraryDirectories) true - - + true + debug\cppcheck.exe Console - - + true - - $(IntDir)$(ProjectName).bsc - - - - - 0 - Unsigned - None - - - Disabled - false - ..\lib;%(AdditionalIncludeDirectories) - _DEBUG;WIN64;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebug - false - $(IntDir) - $(IntDir) - Level4 - ProgramDatabase - + - WIN32;_DEBUG;%(PreprocessorDefinitions) + UNICODE;WIN32;QT_LARGEFILE_SUPPORT;_DEBUG;%(PreprocessorDefinitions) - - shlwapi.lib;%(AdditionalDependencies) - $(OutDir)cppcheck.exe - true - - - Console - - - - - $(IntDir)$(ProjectName).bsc - - - - 0 - Unsigned - None - + + ".";"..\lib";"..\externals";c:\Qt\VS4.7.0\mkspecs\win32-msvc2010;%(AdditionalIncludeDirectories) + -Zm200 -w34100 -w34189 %(AdditionalOptions) + temp\ + false + false + Sync + temp\ MaxSpeed - true - true - ..\lib;..\externals;%(AdditionalIncludeDirectories) - NDEBUG;WIN32;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) - MultiThreaded + QT_NO_DEBUG;NDEBUG;UNICODE;WIN32;QT_LARGEFILE_SUPPORT;NDEBUG;NDEBUG;%(PreprocessorDefinitions) + false + .\ + MultiThreadedDLL + true + true false - $(IntDir) - $(IntDir) Level4 - ProgramDatabase - false - - NDEBUG;WIN32;%(PreprocessorDefinitions) - - shlwapi.lib;%(AdditionalDependencies) - $(OutDir)cppcheck.exe - true - - - Console - UseLinkTimeCodeGeneration - - - $(IntDir)$(ProjectName).bsc - - - - - 0 - Unsigned - None - - - MaxSpeed - true - true - ..\lib;%(AdditionalIncludeDirectories) - NDEBUG;WIN64;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) - MultiThreaded - false - $(IntDir) - $(IntDir) - Level4 - ProgramDatabase - false - - - NDEBUG;WIN32;%(PreprocessorDefinitions) - - - shlwapi.lib;%(AdditionalDependencies) - $(OutDir)cppcheck.exe + pcre.lib;shlwapi.lib;%(AdditionalDependencies) + ../externals;%(AdditionalLibraryDirectories) false - - + true + false + release\cppcheck.exe Console - UseLinkTimeCodeGeneration + true - - $(IntDir)$(ProjectName).bsc - + + + QT_NO_DEBUG;NDEBUG;UNICODE;WIN32;QT_LARGEFILE_SUPPORT;NDEBUG;%(PreprocessorDefinitions) + - - - - @@ -247,27 +129,30 @@ + + + + + + + + + - - - - - - @@ -281,28 +166,33 @@ - + + + + + + + - - - + + + - - + \ No newline at end of file diff --git a/cli/cppcheck.vcxproj.filters b/cli/cppcheck.vcxproj.filters index db8e0d837..339cb5475 100644 --- a/cli/cppcheck.vcxproj.filters +++ b/cli/cppcheck.vcxproj.filters @@ -1,34 +1,23 @@ - + - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx + + {71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11} + cpp;c;cxx;moc;h;def;odl;idl;res {93995380-89BD-4b04-88EB-625FBE52EBFB} h;hpp;hxx;hm;inl;inc;xsd - - {430c75d7-d27c-4015-b5a2-97819caa61f1} + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx - - Source Files - - - Source Files - - - Source Files - Source Files - - Source Files - Source Files @@ -41,18 +30,36 @@ Source Files + + Source Files + + + Source Files + Source Files + + Source Files + Source Files + + Source Files + Source Files + + Source Files + Source Files + + Source Files + Source Files @@ -62,68 +69,59 @@ Source Files + + Source Files + Source Files + + Source Files + Source Files + + Source Files + Source Files Source Files - + Source Files - + Source Files Source Files - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - - Source Files - - TinyXml + Source Files - TinyXml + Source Files - TinyXml + Source Files - TinyXml + Source Files + + + Source Files + + + Source Files - - Header Files - Header Files - - Header Files - Header Files @@ -139,21 +137,36 @@ Header Files + + Header Files + + + Header Files + Header Files + + Header Files + Header Files + + Header Files + Header Files - + Header Files Header Files + + Header Files + Header Files @@ -163,54 +176,53 @@ Header Files + + Header Files + Header Files Header Files + + Header Files + Header Files + + Header Files + Header Files - + Header Files - + Header Files Header Files - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - - Header Files - - TinyXml + Header Files - TinyXml + Header Files + + Header Files + + + Header Files + + + + + Generated Files + diff --git a/externals/tinyxml/tinyxml.pri b/externals/tinyxml/tinyxml.pri index a4bd62292..853229d34 100644 --- a/externals/tinyxml/tinyxml.pri +++ b/externals/tinyxml/tinyxml.pri @@ -1,3 +1,3 @@ -HEADERS += $$PWD/tinystr.h $$PWD/tinyxml.h -SOURCES += $$PWD/tinystr.cpp $$PWD/tinyxml.cpp $$PWD/tinyxmlerror.cpp $$PWD/tinyxmlparser.cpp +HEADERS += ../externals/tinyxml/tinystr.h ../externals/tinyxml/tinyxml.h +SOURCES += ../externals/tinyxml/tinystr.cpp ../externals/tinyxml/tinyxml.cpp ../externals/tinyxml/tinyxmlerror.cpp ../externals/tinyxml/tinyxmlparser.cpp diff --git a/lib/lib.pri b/lib/lib.pri index 10505fa76..275a95091 100644 --- a/lib/lib.pri +++ b/lib/lib.pri @@ -2,57 +2,57 @@ LIBS += -L../externals -lpcre INCLUDEPATH += ../externals -HEADERS += $$PWD/check.h \ - $$PWD/checkautovariables.h \ - $$PWD/checkbufferoverrun.h \ - $$PWD/checkclass.h \ - $$PWD/checkexceptionsafety.h \ - $$PWD/checkmemoryleak.h \ - $$PWD/checknullpointer.h \ - $$PWD/checkobsoletefunctions.h \ - $$PWD/checkother.h \ - $$PWD/checkpostfixoperator.h \ - $$PWD/checkstl.h \ - $$PWD/checkuninitvar.h \ - $$PWD/checkunusedfunctions.h \ - $$PWD/cppcheck.h \ - $$PWD/errorlogger.h \ - $$PWD/executionpath.h \ - $$PWD/filelister.h \ - $$PWD/filelister_unix.h \ - $$PWD/filelister_win32.h \ - $$PWD/mathlib.h \ - $$PWD/path.h \ - $$PWD/preprocessor.h \ - $$PWD/settings.h \ - $$PWD/symboldatabase.h \ - $$PWD/timer.h \ - $$PWD/token.h \ - $$PWD/tokenize.h +HEADERS += ../lib/check.h \ + ../lib/checkautovariables.h \ + ../lib/checkbufferoverrun.h \ + ../lib/checkclass.h \ + ../lib/checkexceptionsafety.h \ + ../lib/checkmemoryleak.h \ + ../lib/checknullpointer.h \ + ../lib/checkobsoletefunctions.h \ + ../lib/checkother.h \ + ../lib/checkpostfixoperator.h \ + ../lib/checkstl.h \ + ../lib/checkuninitvar.h \ + ../lib/checkunusedfunctions.h \ + ../lib/cppcheck.h \ + ../lib/errorlogger.h \ + ../lib/executionpath.h \ + ../lib/filelister.h \ + ../lib/filelister_unix.h \ + ../lib/filelister_win32.h \ + ../lib/mathlib.h \ + ../lib/path.h \ + ../lib/preprocessor.h \ + ../lib/settings.h \ + ../lib/symboldatabase.h \ + ../lib/timer.h \ + ../lib/token.h \ + ../lib/tokenize.h -SOURCES += $$PWD/checkautovariables.cpp \ - $$PWD/checkbufferoverrun.cpp \ - $$PWD/checkclass.cpp \ - $$PWD/checkexceptionsafety.cpp \ - $$PWD/checkmemoryleak.cpp \ - $$PWD/checknullpointer.cpp \ - $$PWD/checkobsoletefunctions.cpp \ - $$PWD/checkother.cpp \ - $$PWD/checkpostfixoperator.cpp \ - $$PWD/checkstl.cpp \ - $$PWD/checkuninitvar.cpp \ - $$PWD/checkunusedfunctions.cpp \ - $$PWD/cppcheck.cpp \ - $$PWD/errorlogger.cpp \ - $$PWD/executionpath.cpp \ - $$PWD/filelister.cpp \ - $$PWD/filelister_unix.cpp \ - $$PWD/filelister_win32.cpp \ - $$PWD/mathlib.cpp \ - $$PWD/path.cpp \ - $$PWD/preprocessor.cpp \ - $$PWD/settings.cpp \ - $$PWD/symboldatabase.cpp \ - $$PWD/timer.cpp \ - $$PWD/token.cpp \ - $$PWD/tokenize.cpp +SOURCES += ../lib/checkautovariables.cpp \ + ../lib/checkbufferoverrun.cpp \ + ../lib/checkclass.cpp \ + ../lib/checkexceptionsafety.cpp \ + ../lib/checkmemoryleak.cpp \ + ../lib/checknullpointer.cpp \ + ../lib/checkobsoletefunctions.cpp \ + ../lib/checkother.cpp \ + ../lib/checkpostfixoperator.cpp \ + ../lib/checkstl.cpp \ + ../lib/checkuninitvar.cpp \ + ../lib/checkunusedfunctions.cpp \ + ../lib/cppcheck.cpp \ + ../lib/errorlogger.cpp \ + ../lib/executionpath.cpp \ + ../lib/filelister.cpp \ + ../lib/filelister_unix.cpp \ + ../lib/filelister_win32.cpp \ + ../lib/mathlib.cpp \ + ../lib/path.cpp \ + ../lib/preprocessor.cpp \ + ../lib/settings.cpp \ + ../lib/symboldatabase.cpp \ + ../lib/timer.cpp \ + ../lib/token.cpp \ + ../lib/tokenize.cpp