vcpkg-cr
vcpkg-cr
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
Installation
dependencies:
vcpkg:
github: dsisnero/vcpkg-cr
...and run crystal deps
or shards install
Usage
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
Development
Contributing
- 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
Contributors
- dsisnero - creator and maintainer
Repository
vcpkg-cr
Owner
Statistic
- 1
- 0
- 0
- 0
- 0
- 9 months ago
- March 19, 2024
License
MIT License
Links
Synced at
Sun, 22 Dec 2024 04:46:28 GMT
Languages