File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ if not defined PLATFORM_TOOLSET (
43
43
set PLATFORM_TOOLSET = v141_xp
44
44
)
45
45
46
+ set clean = 0
46
47
set build_dir_base = build
47
48
set build_dir_suffix =
48
49
set build_config = Release
@@ -57,6 +58,7 @@ set enable_logging=ON
57
58
58
59
:parse_cmdline_options
59
60
if " %1 " == " " goto end_parsing_cmdline_options
61
+ if " %1 " == " clean" set clean = 1
60
62
if " %1 " == " boost" set build_boost = 1
61
63
if " %1 " == " boost_x64" (
62
64
set build_boost = 1
@@ -97,11 +99,23 @@ shift
97
99
goto parse_cmdline_options
98
100
:end_parsing_cmdline_options
99
101
102
+ if %clean% == 0 (
100
103
if %build_librime% == 0 (
101
104
if %build_boost% == 0 (
102
105
if %build_thirdparty% == 0 (
103
106
set build_librime = 1
104
- )))
107
+ ))))
108
+
109
+ if %clean% == 1 (
110
+ rmdir /s /q build
111
+ rmdir /s /q thirdparty\src\capnproto\build
112
+ rmdir /s /q thirdparty\src\glog\cmake-build
113
+ rmdir /s /q thirdparty\src\googletest\build
114
+ rmdir /s /q thirdparty\src\leveldb\build
115
+ rmdir /s /q thirdparty\src\marisa-trie\build
116
+ rmdir /s /q thirdparty\src\opencc\build
117
+ rmdir /s /q thirdparty\src\yaml-cpp\build
118
+ )
105
119
106
120
set build_dir = %build_dir_base%%build_dir_suffix%
107
121
You can’t perform that action at this time.
0 commit comments