diff --git a/Cargo.toml b/Cargo.toml index fe68b6c..e6159c1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ license = "MIT/Apache-2.0" [features] -default = [] +default = ["linked"] linked = ["openxr/linked"] [workspace] @@ -28,10 +28,6 @@ openxr = { version = "0.17.1", features = ["mint"] } [target.'cfg(not(target_family = "unix"))'.dependencies] openxr = { version = "0.17.1", features = ["mint", "static"] } - -[target.'cfg(not(target_os="android"))'.dependencies] -openxr = { version = "0.17.1", features = ["mint", "static", "linked"] } - [dev-dependencies] bevy = "0.12" color-eyre = "0.6.2" diff --git a/examples/android/Cargo.toml b/examples/android/Cargo.toml index 6d38591..bb38236 100644 --- a/examples/android/Cargo.toml +++ b/examples/android/Cargo.toml @@ -25,16 +25,16 @@ strip = "strip" target_sdk_version = 32 -# [target.'cfg(not(target_os="android"))'.dependencies.bevy_oxr] -# path = "../../" -# default-features = true +[target.'cfg(not(target_os="android"))'.dependencies.bevy_oxr] +path = "../../" +default-features = true # [package.metadata.android.application] # icon = "@mipmap/ic_launcher" # label = "Bevy Example" [dependencies] -bevy_oxr = { path = "../.." } +bevy_oxr = { path = "../..", default-features = false } bevy = "0.12" openxr = { git = "https://github.com/Ralith/openxrs", features = ["mint"] } diff --git a/examples/demo/Cargo.toml b/examples/demo/Cargo.toml index 57c1e0f..e472750 100644 --- a/examples/demo/Cargo.toml +++ b/examples/demo/Cargo.toml @@ -10,11 +10,11 @@ crate-type = ["lib", "cdylib"] [dependencies] bevy = "0.12" -bevy_oxr = { path = "../../" } +bevy_oxr = { path = "../../", default-features = false } bevy_rapier3d = { git = "https://github.com/devil-ira/bevy_rapier", branch = "bevy-0.12" } color-eyre = "0.6.2" -# [target.'cfg(not(target_os="android"))'.dependencies.bevy_oxr] -# path = "../../" -# default-features = true +[target.'cfg(not(target_os="android"))'.dependencies.bevy_oxr] +path = "../../" +default-features = true