vcpkg-cr

Result class for Crystal

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

  1. Fork it (https://github.com/dsisnero/vcpkg-crystal/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

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