-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
install-packages.cmd
85 lines (71 loc) · 3.04 KB
/
install-packages.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
79
80
81
82
83
84
85
@echo off
echo "Cleanup the environment....."
IF EXIST "Src\external_dependencies\vcpkg" (
echo Deleting "Src\external_dependencies\vcpkg" ...
rmdir /S /Q "Src\external_dependencies\vcpkg"
echo "Src\external_dependencies\vcpkg was deleted!"
)
IF EXIST "%AppData%\..\local\vcpkg" (
echo Deleting "%AppData%\..\local\vcpkg" ...
rmdir /S /Q "%AppData%\..\local\vcpkg"
echo "%AppData%\..\local\vcpkg was deleted!"
)
IF EXIST ".\vcpkg" (
echo Deleting ".\vcpkg" ...
rmdir /S /Q ".\vcpkg"
echo ".\vcpkg was deleted!"
)
if "%computername%"=="NullsoftBuildbox" (
echo "Uncompress the Qt Debug dlls..."
.\BuildTools\7-ZipPortable_22.01\App\7-Zip\7z.exe x .\Qt\DLL_5.12_x86\Debug_Commercial.7z.001 -y -o.\Qt\DLL_5.12_x86
ren ".\Qt\DLL_5.12_x86\Debug_Commercial\" ".\Qt\DLL_5.12_x86\Debug"
echo "Uncompress the Qt Release dlls..."
.\BuildTools\7-ZipPortable_22.01\App\7-Zip\7z.exe x .\Qt\DLL_5.12_x86\Release_Commercial.7z.001 -y -o.\Qt\DLL_5.12_x86
ren ".\Qt\DLL_5.12_x86\Release_Commercial\" ".\Qt\DLL_5.12_x86\Release\"
) ELSE (
echo "Uncompress the Qt Debug dlls..."
.\BuildTools\7-ZipPortable_22.01\App\7-Zip\7z.exe x .\Qt\DLL_5.12_x86\Debug.7z.001 -y -o.\Qt\DLL_5.12_x86
echo "Uncompress the Qt Release dlls..."
.\BuildTools\7-ZipPortable_22.01\App\7-Zip\7z.exe x .\Qt\DLL_5.12_x86\Release.7z.001 -y -o.\Qt\DLL_5.12_x86
)
echo "Uncompress \Src\external_dependencies\CEF..."
.\BuildTools\7-ZipPortable_22.01\App\7-Zip\7z.exe x .\Src\external_dependencies\CEF.7z.001 -y -o.\Src\external_dependencies
IF NOT EXIST .\vcpkg (
echo First time setup. Downloading vcpkg
git clone https://github.com/microsoft/vcpkg.git
.\vcpkg\bootstrap-vcpkg.bat -disableMetrics
.\vcpkg\vcpkg.exe integrate install
.\vcpkg\vcpkg.exe integrate project
echo Patching ports...
xcopy /K /Y /H /C /I /E .\vcpkg-ports\* .\vcpkg\ports\*
echo Installing packages....
cd .\vcpkg
.\vcpkg install alac:x86-windows-static-md
.\vcpkg install expat:x86-windows-static-md expat:x86-windows-static
.\vcpkg install freetype:x86-windows-static-md
.\vcpkg install ijg-libjpeg:x86-windows-static-md
.\vcpkg install libflac:x86-windows-static-md
.\vcpkg install libogg:x86-windows-static-md
.\vcpkg install libpng:x86-windows-static-md
.\vcpkg install libsndfile:x86-windows-static-md
.\vcpkg install libtheora:x86-windows-static-md
.\vcpkg install libvorbis:x86-windows-static-md
.\vcpkg install libvpx:x86-windows-static-md
.\vcpkg install minizip:x86-windows-static-md
.\vcpkg install mp3lame:x86-windows-static-md
.\vcpkg install mpg123:x86-windows-static-md
.\vcpkg install openssl:x86-windows-static-md openssl:x86-windows-static
.\vcpkg install pthread:x86-windows-static-md pthread:x86-windows-static
.\vcpkg install restclient-cpp:x86-windows-static-md restclient-cpp:x86-windows-static
.\vcpkg install spdlog:x86-windows-static-md
.\vcpkg install zlib:x86-windows-static-md zlib:x86-windows-static
pause
) ELSE (
echo vcpkg is available. Updating.
cd .\vcpkg
git pull
.\bootstrap-vcpkg.bat -disableMetrics
echo Patching ports...
xcopy /K /Y /H /C /I /E ..\vcpkg-ports\* ..\vcpkg\ports\*
pause
)