File tree 7 files changed +28
-17
lines changed 7 files changed +28
-17
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,9 @@ if %argC% lss 4 GOTO :USAGE
11
11
if %1 == " /?" GOTO :USAGE
12
12
13
13
setlocal enabledelayedexpansion
14
- set basePath = %~dp0
15
- set __repoRoot = %~dp0 ..\..\
16
- :: remove quotes
17
- set " basePath = %basePath:" =% "
18
- :: remove trailing slash
19
- if %basePath:~-1 % == \ set " basePath = %basePath:~0 ,-1 % "
14
+ set " __repoRoot = %~dp0 ..\.."
15
+ :: normalize
16
+ for %%i in (" %__repoRoot% " ) do set " __repoRoot = %%~fi "
20
17
21
18
set __SourceDir = %1
22
19
set __IntermediatesDir = %2
@@ -53,7 +50,7 @@ if /i "%__Arch%" == "wasm" (
53
50
exit /B 1
54
51
)
55
52
56
- set EMSDK_PATH = %__repoRoot% \src\mono\wasm\emsdk
53
+ set " EMSDK_PATH = %__repoRoot% \src\mono\wasm\emsdk"
57
54
)
58
55
:: replace backslash with forward slash and append last slash
59
56
set " EMSDK_PATH = !EMSDK_PATH:\ =/ ! "
@@ -69,7 +66,7 @@ if /i "%__Arch%" == "wasm" (
69
66
exit /B 1
70
67
)
71
68
72
- set WASI_SDK_PATH = %__repoRoot% src\mono\wasi\wasi-sdk
69
+ set " WASI_SDK_PATH = %__repoRoot% src\mono\wasi\wasi-sdk"
73
70
)
74
71
:: replace backslash with forward slash and append last slash
75
72
set " WASI_SDK_PATH = !WASI_SDK_PATH:\ =/ ! "
Original file line number Diff line number Diff line change 1
1
@ if not defined _echo @ echo off
2
2
setlocal EnableDelayedExpansion EnableExtensions
3
3
4
- set __VersionFolder = %~dp0
5
- set __RepoRoot = %~dp0 ..\..\..
6
- set __artifactsObjDir = %__RepoRoot% \artifacts\obj
4
+ set " __VersionFolder = %~dp0 "
5
+ set " __RepoRoot = %~dp0 ..\..\.."
6
+ :: normalize
7
+ for %%i in (" %__RepoRoot% " ) do set " __RepoRoot = %%~fi "
8
+ set " __artifactsObjDir = %__RepoRoot% \artifacts\obj"
7
9
8
10
for /r " %__VersionFolder% " %%a in (*.h *.rc) do (
9
11
if not exist " %__artifactsObjDir% \%%~nxa " (
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ set "__ProjectDir=%~dp0"
32
32
:: remove trailing slash
33
33
if %__ProjectDir:~-1 % == \ set " __ProjectDir = %__ProjectDir:~0 ,-1 % "
34
34
set " __RepoRootDir = %__ProjectDir% \..\.."
35
+ :: normalize
36
+ for %%i in (" %__RepoRootDir% " ) do set " __RepoRootDir = %%~fi "
35
37
36
38
set " __ProjectFilesDir = %__ProjectDir% "
37
39
set " __RootBinDir = %__RepoRootDir% \artifacts"
Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ set "__sourceDir=%~dp0"
7
7
:: remove trailing slash
8
8
if %__sourceDir:~-1 % == \ set " __ProjectDir = %__sourceDir:~0 ,-1 % "
9
9
10
- set __engNativeDir = %__sourceDir% \..\..\..\eng\native
10
+ set " __RepoRootDir = %__sourceDir% \..\..\.."
11
+ :: normalize
12
+ for %%i in (" %__RepoRootDir% " ) do set " __RepoRootDir = %%~fi "
13
+ set " __engNativeDir = %__RepoRootDir% \eng\native"
11
14
set __CMakeBinDir = " "
12
15
set __IntermediatesDir = " "
13
16
set __BuildArch = x64
Original file line number Diff line number Diff line change @@ -3,10 +3,14 @@ setlocal
3
3
4
4
:SetupArgs
5
5
:: Initialize the args that will be passed to cmake
6
- set __sourceRootDir = %~dp0
7
- set __repoRoot = %~dp0 ..\..\..
8
- set __engNativeDir = %__repoRoot% \eng\native
9
- set __artifactsDir = %__repoRoot% \artifacts
6
+ set " __sourceRootDir = %~dp0 "
7
+ :: remove trailing slash
8
+ if %__sourceRootDir:~-1 % == \ set " __sourceRootDir = %__sourceRootDir:~0 ,-1 % "
9
+ set " __repoRoot = %__sourceRootDir% \..\..\.."
10
+ :: normalize
11
+ for %%i in (" %__repoRoot% " ) do set " __repoRoot = %%~fi "
12
+ set " __engNativeDir = %__repoRoot% \eng\native"
13
+ set " __artifactsDir = %__repoRoot% \artifacts"
10
14
set __CMakeBinDir = " "
11
15
set __IntermediatesDir = " "
12
16
set __BuildArch = x64
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ set "__ProjectDir=%~dp0"
11
11
:: remove trailing slash
12
12
if %__ProjectDir:~-1 % == \ set " __ProjectDir = %__ProjectDir:~0 ,-1 % "
13
13
set " __RepoRootDir = %__ProjectDir% \..\.."
14
- for %%i in (" %__RepoRootDir% " ) do SET " __RepoRootDir = %%~fi "
14
+ :: normalize
15
+ for %%i in (" %__RepoRootDir% " ) do set " __RepoRootDir = %%~fi "
15
16
16
17
set " __TestDir = %__RepoRootDir% \src\tests"
17
18
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ set __TargetOS=windows
12
12
13
13
set " __ProjectDir = %~dp0 "
14
14
set " __RepoRootDir = %~dp0 ..\.."
15
+ :: normalize
16
+ for %%i in (" %__RepoRootDir% " ) do set " __RepoRootDir = %%~fi "
15
17
:: remove trailing slash
16
18
if %__ProjectDir:~-1 % == \ set " __ProjectDir = %__ProjectDir:~0 ,-1 % "
17
19
set " __ProjectFilesDir = %__ProjectDir% "
You can’t perform that action at this time.
0 commit comments