Open sourceweaver opened 1 year ago
If you agree, I can send a PR for a build manifest that would run for Linux/Win/Mac.
@sourceweaver Thank you and PR is most welcome.
I can make the build work for Linux but I'm not sure on how to build for Windows and Mac. I've read in #4 that this library has been tested for all these platforms. Maybe you could share any scripts etc. you had for building on Win & Mac and I will translate it to a build manifest.
Don't need special script, as shard comes with Makefile
along with link-time flags are embedded inside the lib.cr
file, which are used by Crystal compiler at the time of compilation.
So if you use this shard on any of the cited platform and all you have to do is update shard.yml
and running shards install
is going to invoke make
via postinstall
hook.
:wave: @naqvis.
Other similar bindings (e.g. ImGui, SMFL etc.) generally have their examples in an
examples
directory and they automate the build of those examples with GH Actions. I think this is useful for two reasons: first, a user can clone the repository and run the examples without any copy/pasting. Second, these actions will essentially be recipes that users can refer to when they need information on how to build the examples for their specific environments.If you agree, I can send a PR for a build manifest that would run for Linux/Win/Mac. I can make the build work for Linux but I'm not sure on how to build for Windows and Mac. I've read in #4 that this library has been tested for all these platforms. Maybe you could share any scripts etc. you had for building on Win & Mac and I will translate it to a build manifest.
Thanks!