mirror of
https://github.com/rust-mobile/android-activity.git
synced 2026-07-15 02:58:53 +00:00
4818de6709
This fixes build errors about not specifying either of the "native-activity" or "game-activity" features. The issue came about because the in-tree examples want to build against the in-tree version of android-activity located with a relative `path = ` but these particular examples depend on Winit which would resolve a second implementation of android-activity, via a github url - where Cargo will treat them as completely different crates.
38 lines
1013 B
TOML
38 lines
1013 B
TOML
[package]
|
|
name = "agdk-winit-wgpu"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
log = "0.4"
|
|
winit = { git = "https://github.com/rib/winit", branch = "android-activity-0.27"}
|
|
#winit = { path="../../../winit" }
|
|
wgpu = "0.13.0"
|
|
pollster = "0.2"
|
|
|
|
[target.'cfg(not(target_os = "android"))'.dependencies]
|
|
env_logger = "0.9"
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
android_logger = "0.11.0"
|
|
android-activity = { path="../../android-activity", features = [ "game-activity" ] }
|
|
|
|
# Since Winit also depends on android-activity (via a github url) we need to
|
|
# make sure we only resolve a single implementation.
|
|
[patch.'https://github.com/rib/android-activity']
|
|
android-activity = { path="../../android-activity", features = [ "game-activity" ] }
|
|
|
|
[features]
|
|
default = []
|
|
desktop = []
|
|
|
|
[lib]
|
|
name="main"
|
|
crate_type=["cdylib"]
|
|
|
|
[[bin]]
|
|
path="src/lib.rs"
|
|
name="test-winit-wgpu"
|
|
required-features = [ "desktop" ] |