There are couple of caviats currently: - The script requires system-wide Python 3 available in the current search PATH as python.exe. This will get addressed soon by distributing unpacked Python binary in our libraries. - Since the libraries folder is to be known, this requires to have MSVC detected. Not too bad, since formatting is still way slower than detection, but still doesn't feel ideal.
11 lines
325 B
Batchfile
11 lines
325 B
Batchfile
REM TODO(sergey): Switch to Python from libraries when available.
|
|
set PYTHON="python.exe"
|
|
set FORMAT_PATHS=%BLENDER_DIR%\source\tools\utils\clang_format_paths.py
|
|
|
|
REM The formatting script expects clang-format to be in the current PATH.
|
|
set PATH=%BUILD_VS_LIBDIR%\llvm\bin;%PATH%
|
|
|
|
%PYTHON% %FORMAT_PATHS% --expand-tabs
|
|
|
|
:EOF
|