From cc307ec395145a6ded8e2c61a6bd460d41208643 Mon Sep 17 00:00:00 2001 From: "Mr. eXoDia" Date: Mon, 6 Apr 2015 01:20:41 +0200 Subject: [PATCH] batch files for building (don't try this at home) --- .gitignore | 1 - build_x32.bat | 28 ++++++++++++++++++++++++++++ build_x64.bat | 28 ++++++++++++++++++++++++++++ coverity.bat | 5 +++++ coverity_setenv.bat | 2 ++ 5 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 build_x32.bat create mode 100644 build_x64.bat create mode 100644 coverity.bat create mode 100644 coverity_setenv.bat diff --git a/.gitignore b/.gitignore index b3a62f02..a2d24a32 100644 --- a/.gitignore +++ b/.gitignore @@ -29,7 +29,6 @@ doc/ *.exe *.pro.user.* *.orig -coverity* cov-int* COV/ *.pdb diff --git a/build_x32.bat b/build_x32.bat new file mode 100644 index 00000000..59232025 --- /dev/null +++ b/build_x32.bat @@ -0,0 +1,28 @@ +@echo off +echo Setting Qt in PATH +set PATH=%PATH%;c:\Qt\qt-4.8.6-x86-msvc2013\qt-4.8.6-x86-msvc2013\bin +set PATH=%PATH%;c:\Qt\qtcreator-3.1.1\bin +CALL "c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" + +echo Building DBG... +devenv /Rebuild "Release|Win32" x64_dbg.sln + +echo GUI prebuildStep +cd x64_dbg_gui\Project +cmd /k "prebuildStep.bat x32" +cd .. +cd .. + +echo Building GUI... +rmdir /S /Q build +mkdir build +cd build +qmake ..\x64_dbg_gui\Project\x64_dbg.pro CONFIG+=release +jom +cd .. + +echo GUI afterbuildStep +cd x64_dbg_gui\Project +call afterbuildStep.bat x32 ..\..\build\release +cd .. +cd .. \ No newline at end of file diff --git a/build_x64.bat b/build_x64.bat new file mode 100644 index 00000000..009c42c5 --- /dev/null +++ b/build_x64.bat @@ -0,0 +1,28 @@ +@echo off +echo Setting Qt in PATH +set PATH=%PATH%;c:\Qt\qt-4.8.6-x64-msvc2013\qt-4.8.6-x64-msvc2013\bin +set PATH=%PATH%;c:\Qt\qtcreator-3.1.1\bin +CALL "c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64 + +echo Building DBG... +devenv /Rebuild "Release|x64" x64_dbg.sln + +echo GUI prebuildStep +cd x64_dbg_gui\Project +cmd /k "prebuildStep.bat x64" +cd .. +cd .. + +echo Building GUI... +rmdir /S /Q build +mkdir build +cd build +qmake ..\x64_dbg_gui\Project\x64_dbg.pro CONFIG+=release +jom +cd .. + +echo GUI afterbuildStep +cd x64_dbg_gui\Project +call afterbuildStep.bat x64 ..\..\build\release +cd .. +cd .. \ No newline at end of file diff --git a/coverity.bat b/coverity.bat new file mode 100644 index 00000000..67eb66f3 --- /dev/null +++ b/coverity.bat @@ -0,0 +1,5 @@ +@echo off +cov-configure --msvc +cov-build --dir cov-int --instrument build_x64.bat + +exit \ No newline at end of file diff --git a/coverity_setenv.bat b/coverity_setenv.bat new file mode 100644 index 00000000..b478a1ea --- /dev/null +++ b/coverity_setenv.bat @@ -0,0 +1,2 @@ +@echo off +call %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"" amd64 \ No newline at end of file