-
Notifications
You must be signed in to change notification settings - Fork 8
/
CleanAll.bat
38 lines (30 loc) · 1.01 KB
/
CleanAll.bat
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
31
32
33
34
35
36
37
38
@echo off
set "ROOT=%cd%"
set "FRAME_BINARARY=%ROOT%\Frame\bin"
set "FRAME_INTERMEDIATE=%ROOT%\Frame\int"
set "FRAME_VSCACHE=%ROOT%\.vs"
set "FREETYPE=%ROOT%\Frame\Source\ThirdParty\freetype\build"
set "GLEW=%ROOT%\Frame\Source\ThirdParty\glew\build\cmake\build"
set "GLFW=%ROOT%\Frame\Source\ThirdParty\glfw\build"
set "OPENCV_DOWNLOAD=%ROOT%\Frame\Source\ThirdParty\opencv\.cache"
set "OPENCV_BUILD=%ROOT%\Frame\Source\ThirdParty\opencv\build"
set "FRAME_SOLUTION=%ROOT%\Frame.sln"
if exist "%FRAME_SOLUTION%" (
echo Deleting "%FRAME_SOLUTION%"...
del /f %FRAME_SOLUTION%
) else (
echo Path "%FRAME_SOLUTION%" does not exist.
)
set "pathsToDelete=FRAME_BINARARY FRAME_INTERMEDIATE FRAME_VSCACHE FREETYPE GLEW GLFW OPENCV_DOWNLOAD OPENCV_BUILD"
for %%i in (%pathsToDelete%) do (
setlocal enabledelayedexpansion
set "path=!%%i!"
if exist "!path!" (
echo Deleting "!path!"...
rd /s /q "!path!"
) else (
echo Path "!path!" does not exist.
)
endlocal
)
pause