darbyjohnston / DJV

Professional media review software for VFX, animation, and film production
https://darbyjohnston.github.io/DJV/
BSD 3-Clause "New" or "Revised" License
695 stars 59 forks source link

Moving build scripts to vcpkg ? #483

Open smeunier-amd opened 1 year ago

smeunier-amd commented 1 year ago

It simplifies a lot building DJV.

I did this for two versions of DJV already :

I can't maintain this myself and maybe it makes sense for DJV.

smeunier-amd commented 1 year ago

Here's commands for a fresh repo :

  1. git submodule update --init --recursive
  2. .\vcpkg\bootstrap-vcpkg.bat -disableMetrics
  3. .\vcpkg\vcpkg.exe install
  4. configure cmake adding -DCMAKE_TOOLCHAIN_FILE=${workspaceFolder}/vcpkg/scripts/buildsystems/vcpkg.cmake
  5. build using cmake
darbyjohnston commented 1 year ago

Hi and sorry for the delay! I'm not familiar with vcpkg, is this a replacement for CMake or a way to automate the CMake builds?

meshula commented 1 year ago

it's a package manager like apt or flatpak. Started as windows only by Microsoft, but now cross platform.

smeunier-amd commented 1 year ago

No problem for the delay ! vcpkg can help versioning, retrieving, building libraries used by cmake projects.