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

Add support for building vendored dbus #411

Closed
wants to merge 1 commit into from

Conversation

twistedfall
Copy link

Hi! This PR adds a new feature dbus-vendored which enables the build against vendored dbus as opposed to using system .so. I needed this to make the successful cross-platform build. It was previously discussed in the PR #347 and it looks like the agreement was to add an optional feature for that.

@qwandor qwandor changed the base branch from master to dev December 9, 2024 10:03
@qwandor
Copy link
Collaborator

qwandor commented Dec 9, 2024

Why not add this to your own binary's Cargo.toml rather than btleplug?

@twistedfall
Copy link
Author

@qwandor That would work, but that would mean my crate would need to depend on dbus too (which it currently doesn't). And I will need to replicate all of the conditional platform support logic to make sure I'm not including dbus for macOS build for example.

@qdot qdot requested a review from qwandor December 21, 2024 21:12
@qdot
Copy link
Contributor

qdot commented Dec 21, 2024

@qwandor This one's up to you. I'm not familiar enough with needed to cross-compile in regards to dbus to make a decision on how worth it this is.

@qwandor
Copy link
Collaborator

qwandor commented Dec 24, 2024

I don't really think it belongs here. If someone wants to build their binary with a vendored copy of libdbus they can add the dependencies directly to their binary.

@qdot
Copy link
Contributor

qdot commented Dec 24, 2024

'k, closing.

@qdot qdot closed this Dec 24, 2024
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