Tools: support check_spelling for CMake files
This commit is contained in:
11
GNUmakefile
11
GNUmakefile
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user