Skip to content

Conversation

@elmarco
Copy link
Collaborator

@elmarco elmarco commented Oct 27, 2021

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

Signed-off-by: Marc-André Lureau <[email protected]>
Signed-off-by: Marc-André Lureau <[email protected]>
Check the C header generation will include enum values.

Signed-off-by: Marc-André Lureau <[email protected]>
Signed-off-by: Marc-André Lureau <[email protected]>
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)

Signed-off-by: Marc-André Lureau <[email protected]>
Signed-off-by: Marc-André Lureau <[email protected]>
@thiblahute
Copy link

thiblahute commented Apr 16, 2022

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).

@sdroege
Copy link
Owner

sdroege commented Apr 18, 2022

That's great :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants