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

ndk: Remove "irrelevant" hardware_buffer/trace feature in favour of API level #320

Merged
merged 1 commit into from
Jul 24, 2022

Conversation

MarijnS95
Copy link
Member

Fixes #318

Thus far feature flags have been used specifically in ndk-sys to control what native libraries are linked to, for content that is provided outside of the standard linked libandroid.so:

https://github.com/rust-windowing/android-ndk-rs/blob/d104d01f116b537babdc94d8c9889581f8d63a02/ndk-sys/src/lib.rs#L43-L53

However, hardware_buffer and trace are available in libandroid.so directly making these features only guard our Rust bindings. This is unnecessarily tedious and inconsistent with the rest of the NDK wrappers which are only guarded by their minimum API level.

…of API level

Thus far feature flags have been used specifically in `ndk-sys` to
control what native libraries are linked to, for content that is
provided outside of the standard linked `libandroid.so`:

https://github.com/rust-windowing/android-ndk-rs/blob/d104d01f116b537babdc94d8c9889581f8d63a02/ndk-sys/src/lib.rs#L43-L53

However, `hardware_buffer` and `trace` are available in `libandroid.so`
directly making these features only guard our Rust bindings.  This is
unnecessarily tedious and inconsistent with the rest of the NDK wrappers
which are only guarded by their minimum API level.
@MarijnS95 MarijnS95 force-pushed the ndk-remove-unused-features branch from 8c9d24a to b2959d2 Compare July 18, 2022 08:42
@MarijnS95 MarijnS95 changed the title ndk: Remove "irrelevant" hardware_buffer/trace` feature in favour of API level ndk: Remove "irrelevant" hardware_buffer/trace feature in favour of API level Jul 18, 2022
Copy link
Contributor

@dvc94ch dvc94ch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@MarijnS95 MarijnS95 merged commit d120268 into master Jul 24, 2022
@MarijnS95 MarijnS95 deleted the ndk-remove-unused-features branch July 24, 2022 15:44
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.

Replace hardware_buffer and trace features with their respective api-level-23/26
2 participants