@echo offREM A simple script to build different cppcheck targets from project rootREM folder. This script can be run from VS prompt or Qt prompt.REMREM Usage: build <target> [release|debug]REM where <target> is any of cppcheck/gui/tests/allREM release or debug is the configurationREM all-target builds both cppcheck and gui.REMREM Run the command before build.bat to enable rules using pcre:REM set HAVE_RULES=yesREMREM TODO:REM - run tests toopushd %~dp0if "%1" == "" goto helpREM Qt prompt sets QMAKESPECif "%QMAKESPEC%" == "" (REM parse qmakespec to see if it's some msvcif "%QMAKESPEC:~6,4%" == "msvc" (set MAKE=nmake) else (set MAKE=mingw32-make)) else (set MAKE=nmake)if "%2" == "" set TARGET=releaseif "%2" == "debug" set TARGET=debugif "%2" == "release" set TARGET=releaseif "%1" == "all" goto cppcheckif "%1" == "cppcheck" goto cppcheckif "%1" == "gui" goto guiif "%1" == "tests" goto testsgoto help:cppcheckpushd cliqmake -config %TARGET% HAVE_RULES=%HAVE_RULES%%MAKE%popdif "%1" == "all" goto guigoto end:guipushd guiqmake -config %TARGET% HAVE_RULES=%HAVE_RULES%%MAKE%lupdate -no-obsolete gui.prolrelease gui.propopdgoto end:testspushd testqmake -config %TARGET% HAVE_RULES=%HAVE_RULES%%MAKE%popdgoto end:helpecho Syntax: build ^<target^> [debug^|release]echo where ^<target^> is any of cppcheck/gui/tests/allecho debug or release define used configurationecho all- target builds both cppcheck and gui.:end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。