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

Conditionally generate manifest with cargo features #14

Open
zmerp opened this issue Jan 11, 2022 · 0 comments
Open

Conditionally generate manifest with cargo features #14

zmerp opened this issue Jan 11, 2022 · 0 comments

Comments

@zmerp
Copy link

zmerp commented Jan 11, 2022

cargo-apk should be able to use features (and maybe targets) to conditionally build the AndroidManifest.xml, in a similar way to gradle build flavors. My use-case is having different runtime_libs for different types of android devices.

Example:

[package.metadata.android]
build_targets = ["aarch64-linux-android"]

[package.'cfg(feature = "oculus")'.metadata.android]
runtime_libs = "deps/openxr/oculus"

[package.'cfg(feature = "vive")'.metadata.android]
runtime_libs = "deps/openxr/vive"
@dvc94ch dvc94ch transferred this issue from rust-mobile/ndk Dec 22, 2022
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

No branches or pull requests

1 participant