Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: use cargo-c #15

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

WIP: use cargo-c #15

wants to merge 9 commits into from

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