libremidi icon indicating copy to clipboard operation
libremidi copied to clipboard

Create a test case building on the CI with vcpkg

Open totalgee opened this issue 8 months ago • 4 comments

Hi there, as @jcelerier requested in microsoft/vcpkg#44637, here is a simple example of a minimal test project that builds (at least tested on Windows under MSVC and Linux) with libremidi using vcpkg. Currently uses the 4.5.0#1 version, but would like to update to 5.2.0.

https://gist.github.com/totalgee/de7319c7dc1cdc4a49886f1d67778538 (the files named "src CMakeLists.txt" and "src main.cpp" should be in a src/ subdirectory, but the gist wouldn't allow that)

totalgee avatar Apr 02 '25 12:04 totalgee

thanks, looking at it !

jcelerier avatar Apr 03 '25 19:04 jcelerier

what I'd like to do is to make sure that each commit of HEAD works with vcpkg, do you have any idea how could I do this ? e.g. I don't want to use v. 4.5, I want to use the library as it is on the repo right now

jcelerier avatar Apr 09 '25 18:04 jcelerier

I don't know how, unfortunately. I have never done it, but I suspect you might need a local (fork?) of the vcpkg repo, and then make changes there and use that one in the CI process...(?)

totalgee avatar Apr 11 '25 17:04 totalgee

Regarding the vcpkg packaging, in the next version i added a CMake var to prevent vendoring

jcelerier avatar Jul 03 '25 16:07 jcelerier