Commit 635b6d9 2 people authored and committed
1 parent 9468f11 commit 635b6d9 Copy full SHA for 635b6d9
File tree 4 files changed +19
-5
lines changed
contrib/buildsystems/Generators
4 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,11 @@ The Steps to Build Git with VS2015 or VS2017 from the command line.
6
6
Prompt or from an SDK bash window:
7
7
8
8
$ cd <repo_root>
9
- $ ./compat/vcbuild/vcpkg_install.bat
9
+ $ ./compat/vcbuild/vcpkg_install.bat x64-windows
10
+
11
+ or
12
+
13
+ $ ./compat/vcbuild/vcpkg_install.bat arm64-windows
10
14
11
15
The vcpkg tools and all of the third-party sources will be installed
12
16
in this folder:
Original file line number Diff line number Diff line change @@ -15,7 +15,12 @@ REM ================================================================
15
15
@ FOR /F " delims=" %% D IN (" %~dp0 " ) DO @ SET cwd = %% ~fD
16
16
cd %cwd%
17
17
18
- SET arch = x64-windows
18
+ SET arch = %2
19
+ IF NOT DEFINED arch (
20
+ echo defaulting to 'x64-windows`. Invoke %0 with 'x86-windows', 'x64-windows', or 'arm64-windows'
21
+ set arch = x64-windows
22
+ )
23
+
19
24
SET inst = %cwd% vcpkg\installed\%arch%
20
25
21
26
IF [%1 ]== [release] (
Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ REM ================================================================
31
31
32
32
SETLOCAL EnableDelayedExpansion
33
33
34
+ SET arch = %1
35
+ IF NOT DEFINED arch (
36
+ echo defaulting to 'x64-windows`. Invoke %0 with 'x86-windows', 'x64-windows', or 'arm64-windows'
37
+ set arch = x64-windows
38
+ )
39
+
34
40
@ FOR /F " delims=" %% D IN (" %~dp0 " ) DO @ SET cwd = %% ~fD
35
41
cd %cwd%
36
42
@@ -55,9 +61,8 @@ REM ================================================================
55
61
echo Successfully installed %cwd% vcpkg\vcpkg.exe
56
62
57
63
:install_libraries
58
- SET arch = x64-windows
59
64
60
- echo Installing third-party libraries...
65
+ echo Installing third-party libraries( %arch% ) ...
61
66
FOR %%i IN (zlib expat libiconv openssl libssh2 curl) DO (
62
67
cd %cwd% vcpkg
63
68
IF NOT EXIST " packages\%%i _%arch% " CALL :sub__install_one %%i
Original file line number Diff line number Diff line change 193
193
<PreBuildEvent Condition="!Exists('$cdup \\ compat\\ vcbuild\\ vcpkg\\ installed\\\$ (VCPKGArch)\\ include\\ openssl\\ ssl.h')">
194
194
<Message>Initialize VCPKG</Message>
195
195
<Command>del "$cdup \\ compat\\ vcbuild\\ vcpkg"</Command>
196
- <Command>call "$cdup \\ compat\\ vcbuild\\ vcpkg_install.bat"</Command>
196
+ <Command>call "$cdup \\ compat\\ vcbuild\\ vcpkg_install.bat" \$ (VCPKGArch) </Command>
197
197
</PreBuildEvent>
198
198
EOM
199
199
}
You can’t perform that action at this time.
0 commit comments