Welcome to mirror list, hosted at ThFree Co, Russian Federation.

format.cmd « windows « build_files - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f036257e2201639cc48300528f6e13c27e8fac2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
if EXIST %BLENDER_DIR%\..\lib\win64_vc14\llvm\bin\clang-format.exe (
    set CF_PATH=..\lib\win64_vc14\llvm\bin
    goto detect_done
)

echo clang-format not found
exit /b 1

:detect_done
echo found clang-format in %CF_PATH%

if EXIST %BLENDER_DIR%\..\lib\win64_vc14\python\37\bin\python.exe (
    set PYTHON=%BLENDER_DIR%\..\lib\win64_vc14\python\37\bin\python.exe
    goto detect_python_done
)

echo python not found in lib folder
exit /b 1

:detect_python_done
echo found python (%PYTHON%)

set FORMAT_PATHS=%BLENDER_DIR%\source\tools\utils_maintenance\clang_format_paths.py

REM The formatting script expects clang-format to be in the current PATH.
set PATH=%CF_PATH%;%PATH%

%PYTHON% %FORMAT_PATHS% %FORMAT_ARGS%

:EOF