From b05c2f5327f4afa8b861642872370fd54f1249b5 Mon Sep 17 00:00:00 2001 From: David Farrell Date: Tue, 21 Apr 2020 10:52:25 -0700 Subject: [PATCH] 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. --- .gitignore | 4 ++++ vcpkg/install_vcpkg_dependencies.bat | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 vcpkg/install_vcpkg_dependencies.bat diff --git a/.gitignore b/.gitignore index 48c593da..dcec2473 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,7 @@ manual/t*.synctex.gz manual/t*.toc profiler/build/win32/packages profiler/build/win32/Tracy.aps + +# include the vcpkg install script but not the files it produces +vcpkg/* +!vcpkg/install_vcpkg_dependencies.bat diff --git a/vcpkg/install_vcpkg_dependencies.bat b/vcpkg/install_vcpkg_dependencies.bat new file mode 100644 index 00000000..089c389c --- /dev/null +++ b/vcpkg/install_vcpkg_dependencies.bat @@ -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]