gobject-example-rs icon indicating copy to clipboard operation
gobject-example-rs copied to clipboard

WIP: use cargo-c

Open elmarco opened this issue 4 years ago • 2 comments

Use https://github.com/lu-zero/cargo-c to build a C library.

It handles C libraries and .pc file generation, as well as some installation details. However, header generation is done manually in build.rs now (still with the gobject cbindgen fork)

Depends on #6

elmarco avatar Oct 27 '21 14:10 elmarco

I played a bit with this branch and moved to using meson instead of Makefile to see how we could integrate GObject based libs written in rust into existing projects: https://github.com/thiblahute/gobject-example-rs/commits/cargoc%2Bmeson (Added a minor fix to cbindgen after rebasing this branch).

thiblahute avatar Apr 16 '22 16:04 thiblahute

That's great :)

sdroege avatar Apr 18 '22 06:04 sdroege