Skip to content

Commit 8c53778

Browse files
committed
generate_cppcheck_resources.cmd: take all the libraries from folder
1 parent 68854cc commit 8c53778

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cxx-sensors/src/tools/generate_cppcheck_resources.cmd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ SET SCRIPT_DIR=%~dp0
55
SET CPPCHECK_DIR=C:\Program Files\Cppcheck\
66
SET PYTHON_DIR=C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\
77

8-
SET CPPCHECK_LIBRARY_ARGS=--library=avr.cfg --library=bento4.cfg --library=boost.cfg --library=bsd.cfg --library=cairo.cfg --library=cppcheck-lib.cfg --library=cppunit.cfg --library=dpdk.cfg --library=embedded_sql.cfg --library=emscripten.cfg --library=ginac.cfg --library=gnu.cfg --library=googletest.cfg --library=gtk.cfg --library=icu.cfg --library=kde.cfg --library=libcerror.cfg --library=libcurl.cfg --library=libsigc++.cfg --library=lua.cfg --library=mfc.cfg --library=microsoft_atl.cfg --library=microsoft_sal.cfg --library=microsoft_unittest.cfg --library=motif.cfg --library=nspr.cfg --library=ntl.cfg --library=opencv2.cfg --library=opengl.cfg --library=openmp.cfg --library=openssl.cfg --library=pcre.cfg --library=posix.cfg --library=python.cfg --library=qt.cfg --library=ruby.cfg --library=sdl.cfg --library=sfml.cfg --library=sqlite3.cfg --library=std.cfg --library=tinyxml2.cfg --library=vcl.cfg --library=windows.cfg --library=wxsqlite3.cfg --library=wxsvg.cfg --library=wxwidgets.cfg --library=zlib.cfg
8+
setlocal ENABLEDELAYEDEXPANSION
9+
10+
SET CPPCHECK_LIBRARY_ARGS=
11+
12+
for %%i in ("%CPPCHECK_DIR%cfg\*.cfg") do (
13+
SET CPPCHECK_LIBRARY_ARGS=!CPPCHECK_LIBRARY_ARGS! "--library=%%~nxi"
14+
)
915

1016
rem download cwec_latest.xml.zip and extract it to unzip cwec_vx.y.xml
1117
rem wget https://cwe.mitre.org/data/xml/cwec_latest.xml.zip --output-document=cwec_latest.xml.zip && unzip -j -o cwec_latest.xml.zip

0 commit comments

Comments
 (0)