1
0

install-packages.cmd 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. @echo off
  2. echo "Clean up the environment ..."
  3. IF EXIST "Src\external_dependencies\vcpkg" (
  4. echo Deleting "Src\external_dependencies\vcpkg" ...
  5. rmdir /S /Q "Src\external_dependencies\vcpkg"
  6. echo "Src\external_dependencies\vcpkg was deleted!"
  7. )
  8. IF EXIST "%AppData%\..\local\vcpkg" (
  9. echo Deleting "%AppData%\..\local\vcpkg" ...
  10. rmdir /S /Q "%AppData%\..\local\vcpkg"
  11. echo "%AppData%\..\local\vcpkg was deleted!"
  12. )
  13. IF EXIST ".\vcpkg" (
  14. echo Deleting ".\vcpkg" ...
  15. rmdir /S /Q ".\vcpkg"
  16. echo ".\vcpkg was deleted!"
  17. )
  18. if "%computername%"=="NullsoftBuildbox" (
  19. echo "Uncompress the Qt Debug dlls ..."
  20. .\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
  21. ren ".\Qt\DLL_5.12_x86\Debug_Commercial\" ".\Qt\DLL_5.12_x86\Debug"
  22. echo "Uncompress the Qt Release dlls ..."
  23. .\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
  24. ren ".\Qt\DLL_5.12_x86\Release_Commercial\" ".\Qt\DLL_5.12_x86\Release\"
  25. ) ELSE (
  26. echo "Uncompress the Qt Debug dlls ..."
  27. .\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
  28. echo "Uncompress the Qt Release dlls ..."
  29. .\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
  30. )
  31. echo "Uncompress \Src\external_dependencies\CEF ..."
  32. .\BuildTools\7-ZipPortable_22.01\App\7-Zip\7z.exe x .\Src\external_dependencies\CEF.7z.001 -y -o.\Src\external_dependencies
  33. IF NOT EXIST .\vcpkg (
  34. echo First time setup. Downloading vcpkg
  35. git clone https://github.com/microsoft/vcpkg.git
  36. .\vcpkg\bootstrap-vcpkg.bat -disableMetrics
  37. .\vcpkg\vcpkg.exe integrate install
  38. .\vcpkg\vcpkg.exe integrate project
  39. echo Patching ports...
  40. xcopy /K /Y /H /C /I /E .\vcpkg-ports\* .\vcpkg\ports\*
  41. echo Installing packages...
  42. cd .\vcpkg
  43. .\vcpkg install alac:x86-windows-static-md
  44. .\vcpkg install expat:x86-windows-static-md expat:x86-windows-static
  45. .\vcpkg install freetype:x86-windows-static-md
  46. .\vcpkg install ijg-libjpeg:x86-windows-static-md
  47. .\vcpkg install libflac:x86-windows-static-md
  48. .\vcpkg install libogg:x86-windows-static-md
  49. .\vcpkg install libpng:x86-windows-static-md
  50. .\vcpkg install libsndfile:x86-windows-static-md
  51. .\vcpkg install libtheora:x86-windows-static-md
  52. .\vcpkg install libvorbis:x86-windows-static-md
  53. .\vcpkg install libvpx:x86-windows-static-md
  54. .\vcpkg install minizip:x86-windows-static-md
  55. .\vcpkg install mp3lame:x86-windows-static-md
  56. .\vcpkg install mpg123:x86-windows-static-md
  57. .\vcpkg install openssl:x86-windows-static-md openssl:x86-windows-static
  58. .\vcpkg install pthread:x86-windows-static-md pthread:x86-windows-static
  59. .\vcpkg install restclient-cpp:x86-windows-static-md restclient-cpp:x86-windows-static
  60. .\vcpkg install spdlog:x86-windows-static-md
  61. .\vcpkg install zlib:x86-windows-static-md zlib:x86-windows-static
  62. pause
  63. ) ELSE (
  64. echo vcpkg is available. Updating.
  65. cd .\vcpkg
  66. git pull
  67. .\bootstrap-vcpkg.bat -disableMetrics
  68. echo Patching ports...
  69. xcopy /K /Y /H /C /I /E ..\vcpkg-ports\* ..\vcpkg\ports\*
  70. pause
  71. )