-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclean.bat
More file actions
41 lines (31 loc) · 870 Bytes
/
clean.bat
File metadata and controls
41 lines (31 loc) · 870 Bytes
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
39
40
41
@echo off
set DISABLE_QMAKE_DEFAULT_BUILD=1
set USE_VS_BUILD=0
if "%1"=="" (
set TOPDIR=.
) else (
set TOPDIR=%1
)
del %TOPDIR%\Makefile.*
del %TOPDIR%\src\Makefile.*
del %TOPDIR%\test\test_rx_pipe\Makefile.*
del %TOPDIR%\test\test_tx_pipe\Makefile.*
del %TOPDIR%\*.sln
del %TOPDIR%\src\*.vcxproj.*
del %TOPDIR%\test\test_rx_pipe\*.vcxproj.*
del %TOPDIR%\test\test_tx_pipe\*.vcxproj.*
rd %TOPDIR%\build /S /Q
rd %TOPDIR%\bin /S /Q
if %DISABLE_QMAKE_DEFAULT_BUILD%==0 (
rd %TOPDIR%\src\debug /S /Q
rd %TOPDIR%\src\release /S /Q
rd %TOPDIR%\test\test_rx_pipe\debug /S /Q
rd %TOPDIR%\test\test_rx_pipe\release /S /Q
rd %TOPDIR%\test\test_tx_pipe\debug /S /Q
rd %TOPDIR%\test\test_tx_pipe\release /S /Q
)
if %USE_VS_BUILD%==1 (
rd %TOPDIR%\src\x64 /S /Q
rd %TOPDIR%\test\test_rx_pipe\x64 /S /Q
rd %TOPDIR%\test\test_tx_pipe\x64 /S /Q
)