mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-13 15:48:11 +07:00
update scripts
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
BUILD_DIR=`dirname "$BASH_SOURCE"`/../build
|
||||
mkdir -p $BUILD_DIR/pvs_analyze
|
||||
pushd $BUILD_DIR/pvs_analyze
|
||||
rm -rf pvs_report
|
||||
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=On ../..
|
||||
pvs-studio-analyzer analyze\
|
||||
-e _deps\
|
||||
-e ../../untests\
|
||||
-e ../../modules\
|
||||
-e ../../headers/3rdparty\
|
||||
-e ../../sources/3rdparty\
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE}" )" && pwd )"
|
||||
|
||||
ROOT_DIR="${DIR}/.."
|
||||
BUILD_DIR="${ROOT_DIR}/build/pvs_analyze"
|
||||
|
||||
mkdir -p "${BUILD_DIR}"
|
||||
(cd "${BUILD_DIR}" && cmake "${ROOT_DIR}" -DCMAKE_EXPORT_COMPILE_COMMANDS=On)
|
||||
(cd "${BUILD_DIR}" && pvs-studio-analyzer analyze\
|
||||
-e "${ROOT_DIR}/headers/3rdparty"\
|
||||
-e "${ROOT_DIR}/modules"\
|
||||
-e "${ROOT_DIR}/sources/3rdparty"\
|
||||
-e "${ROOT_DIR}/untests"\
|
||||
-o pvs_report.log\
|
||||
-j8
|
||||
plog-converter -a GA:1,2 -t fullhtml -o pvs_report pvs_report.log
|
||||
open pvs_report/index.html
|
||||
popd
|
||||
-j8)
|
||||
(cd "${BUILD_DIR}" && rm -rf pvs_report)
|
||||
(cd "${BUILD_DIR}" && plog-converter -a GA:1,2 -t fullhtml -o pvs_report pvs_report.log)
|
||||
(cd "${BUILD_DIR}" && open pvs_report/index.html)
|
||||
|
||||
Reference in New Issue
Block a user