This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
initvcpkg.cmd
78 lines (68 loc) · 2.06 KB
/
initvcpkg.cmd
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
@echo off
setlocal enableextensions disabledelayedexpansion
:: Parse options
:GETOPTS
if /I "%~1" == "/?" goto USAGE
if /I "%~1" == "/Help" goto USAGE
if /I "%~1" == "/x86" set BUILD=x86
if /I "%~1" == "/arm64" set BUILD=arm64
if /I "%~1" == "/arm" set BUILD=arm
if /I "%~1" == "/x64" set BUILD=x64
if /I "%~1" == "/unity" set BUILD=unity
shift
if not (%1)==() goto GETOPTS
set PATH_ORIG=%PATH%
set PATH=c:\opt\vcpkg;c:\opt\chocolatey\bin;C:\opt\python37amd64\;C:\opt\python37amd64\Scripts;C:\opt\python37amd64\DLLs;%PATH%
set VCPKG_ROOT=c:\opt\vcpkg
if exist "%VCPKG_ROOT%" goto :build_tools
mkdir c:\opt
pushd c:\opt
git clone https://github.com/ooeygui/vcpkg
call bootstrap-vcpkg.bat
popd
:build_tools
: Build tooling
vcpkg install protobuf:x86-windows
vcpkg install foonathan-memory:x64-windows
if "%BUILD%"=="x86" goto :build_x86
if "%BUILD%"=="x64" goto :build_x64
if "%BUILD%"=="arm64" goto :build_arm64
if "%BUILD%"=="arm" goto :build_arm
if "%BUILD%"=="unity" goto :build_unity
:build_x86
vcpkg install protobuf:x86-uwp
: vcpkg install asio:x86-uwp
vcpkg install eigen3:x86-uwp
vcpkg install foonathan-memory:x86-uwp
vcpkg install poco:x86-uwp
if "%BUILD%"=="x86" goto :eof
:build_arm64
vcpkg install protobuf:arm64-uwp
: vcpkg install asio:arm64-uwp
vcpkg install tinyxml2:arm64-uwp
vcpkg install eigen3:arm64-uwp
vcpkg install foonathan-memory[core]:arm64-uwp
vcpkg install poco:arm64-uwp
if "%BUILD%"=="arm64" goto :eof
:build_arm
vcpkg install protobuf:arm-uwp
: vcpkg install asio:arm-uwp
vcpkg install tinyxml2:arm-uwp
vcpkg install eigen3:arm-uwp
vcpkg install foonathan-memory[core]:arm-uwp
vcpkg install poco:arm-uwp
if "%BUILD%"=="arm" goto :eof
:build_x64
vcpkg install protobuf:x64-uwp
: vcpkg install asio:x64-uwp
vcpkg install eigen3:x64-uwp
vcpkg install foonathan-memory[core]:x64-uwp
vcpkg install poco:x64-uwp
if "%BUILD%"=="x64" goto :eof
:build_unity
vcpkg install protobuf:x64-windows
: vcpkg install asio:x64-windows
vcpkg install eigen3:x64-windows
vcpkg install foonathan-memory:x64-windows
vcpkg install poco:x64-windows
if "%BUILD%"=="unity" goto :eof