This is a helper for finding libraries in a Vcpkg installation from crystal build scripts. It works similarly to pkg-config. It works on Windows (MSVC ABI), Linux and MacOS.
A crystal port of vcpkg-rs
dependencies:
vcpkg:
github: dsisnero/vcpkg-cr
...and run crystal deps
or shards install
Find the library named foo
in a Vcpkg installation and emit crystal metadata to link it:
// build.rs
require "vcpkg"
Vcpkg.find_package("foo")
Also includes a cmd line app
vcpkg find zlib -l dll
or
vcpkg-find zlib
- Fork it (https://github.com/dsisnero/vcpkg-crystal/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- dsisnero - creator and maintainer