install_sources_for_distribution.bat 909 B

123456789101112131415
  1. @echo off
  2. echo This script not only installs the vcpkg packages (this is usually done automatically when building), but also makes the downloaded sources and the build sources (with VCPKG patches applied) available in this repository. This may be helpful for distributing, archiving and license compliance and is not required for daily development.
  3. if "%VCINSTALLDIR%" == "" (
  4. if not exist "%ProgramFiles%\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" (
  5. echo Please activate a developer command prompt.
  6. exit /b 1
  7. )
  8. )
  9. @echo on
  10. pushd "%~dp0..\3rdParty\xcc"
  11. rmdir /Q /S "%~dp0..\3rdParty\xcc\vcpkg_installed"
  12. vcpkg install --binarysource clear "--downloads-root=%~dp0..\3rdParty\xcc\vcpkg_downloads" "--x-install-root=%~dp0..\3rdParty\xcc\vcpkg_installed\x86-windows" "--x-buildtrees-root=%~dp0..\3rdParty\xcc\vcpkg_installed\x86-windows\_buildtrees" --triplet x86-windows
  13. popd