Added install_vcpkg_dependencies.bat to set up dependencies

This script will build both vcpkg and the dependencies needed by Tracy. It puts everything in the vcpkg/vcpkg directory, and changes no other state on the machine. It is perfectly safe to erase the vcpkg/vcpkg directory and re-run the script to build the dependencies again, although that should only be needed once.

To add new vcpkg dependencies, just modify the 'vcpkg install ...' line in the .bat file.
This commit is contained in:
David Farrell 2020-04-21 10:52:25 -07:00
parent 865593146a
commit b05c2f5327
2 changed files with 14 additions and 0 deletions

4
.gitignore vendored
View File

@ -20,3 +20,7 @@ manual/t*.synctex.gz
manual/t*.toc manual/t*.toc
profiler/build/win32/packages profiler/build/win32/packages
profiler/build/win32/Tracy.aps profiler/build/win32/Tracy.aps
# include the vcpkg install script but not the files it produces
vcpkg/*
!vcpkg/install_vcpkg_dependencies.bat

View File

@ -0,0 +1,10 @@
@echo off
REM get vcpkg distribution
if not exist vcpkg git clone https://github.com/Microsoft/vcpkg.git
REM build vcpkg
if not exist vcpkg\vcpkg.exe call vcpkg\bootstrap-vcpkg.bat
REM install required packages
vcpkg\vcpkg.exe install --triplet x64-windows-static freetype glfw3 capstone[arm,arm64,x86]