Tools: support check_spelling for CMake files

This commit is contained in:
Campbell Barton
2024-09-20 13:14:56 +10:00
parent c9c57e2fe6
commit 0d88125da5
2 changed files with 46 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ Spell Checkers
* check_spelling_c: Check for spelling errors (C/C++ only),
* check_spelling_py: Check for spelling errors (Python only).
* check_spelling_shaders: Check for spelling errors (GLSL,OSL & MSL only).
* check_spelling_cmake: Check for spelling errors (CMake only).
Note: an additional word-list is maintained at: 'tools/check_source/check_spelling_c_config.py'
@@ -520,6 +521,16 @@ check_spelling_shaders: .FORCE
"$(BLENDER_DIR)/intern/" \
"$(BLENDER_DIR)/source/"
check_spelling_cmake: .FORCE
@PYTHONIOENCODING=utf_8 $(PYTHON) \
"$(BLENDER_DIR)/tools/check_source/check_spelling.py" \
--cache-file=$(CHECK_SPELLING_CACHE) \
--match=".*\.(cmake)$$" \
--match=".*\bCMakeLists\.(txt)$$" \
"$(BLENDER_DIR)/build_files/" \
"$(BLENDER_DIR)/intern/" \
"$(BLENDER_DIR)/source/"
check_descriptions: .FORCE
@$(BLENDER_BIN) --background --factory-startup --python \
"$(BLENDER_DIR)/tools/check_source/check_descriptions.py"