Tools: add OUTPUT_DIR option to the "check_cppcheck" target
- Add optional `--build-dir` & `--output-dir` arguments to "static_check_cppcheck.py". - Support using `project_source_info.py` without the CWD having to be the build-directory. - Make the script executable.
This commit is contained in:
12
GNUmakefile
12
GNUmakefile
@@ -56,7 +56,12 @@ Testing Targets
|
||||
Static Source Code Checking
|
||||
Not associated with building Blender.
|
||||
|
||||
* check_cppcheck: Run blender source through cppcheck (C & C++).
|
||||
* check_cppcheck:
|
||||
Run blender source through cppcheck (C & C++).
|
||||
|
||||
To write log files into a user defined location append 'OUTPUT_DIR',
|
||||
e.g. 'OUTPUT_DIR=/example/path'
|
||||
|
||||
* check_clang_array: Run blender source through clang array checking script (C & C++).
|
||||
* check_struct_comments: Check struct member comments are correct (C & C++).
|
||||
* check_deprecated: Check if there is any deprecated code to remove.
|
||||
@@ -474,9 +479,10 @@ project_eclipse: .FORCE
|
||||
|
||||
check_cppcheck: .FORCE
|
||||
@$(CMAKE_CONFIG)
|
||||
@cd "$(BUILD_DIR)" ; \
|
||||
$(PYTHON) \
|
||||
"$(BLENDER_DIR)/tools/check_source/static_check_cppcheck.py"
|
||||
"$(BLENDER_DIR)/tools/check_source/static_check_cppcheck.py" \
|
||||
--build-dir=$(BUILD_DIR) \
|
||||
--output-dir=$(OUTPUT_DIR)
|
||||
|
||||
check_struct_comments: .FORCE
|
||||
@$(CMAKE_CONFIG)
|
||||
|
||||
Reference in New Issue
Block a user