diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-04-16 16:34:32 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-16 16:41:32 +0300 |
commit | fc32f98bbc2f094cddf1c75e092c98d7a00a22b9 (patch) | |
tree | b92eb2a902580acadad583957064ae08452e9296 /build_files/windows/format.cmd | |
parent | f45b91a1c5791c6f80f4790896e70b0fa9804da1 (diff) |
Initial support of `make format` for Windows
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.
Diffstat (limited to 'build_files/windows/format.cmd')
-rw-r--r-- | build_files/windows/format.cmd | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/build_files/windows/format.cmd b/build_files/windows/format.cmd new file mode 100644 index 00000000000..b33ebdcbe5d --- /dev/null +++ b/build_files/windows/format.cmd @@ -0,0 +1,10 @@ +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 |