implemented a way less clean thingy
This commit is contained in:
@@ -5,11 +5,9 @@ edition = "2021"
|
|||||||
description = "Community crate for OpenXR in Bevy"
|
description = "Community crate for OpenXR in Bevy"
|
||||||
license = "MIT/Apache-2.0"
|
license = "MIT/Apache-2.0"
|
||||||
|
|
||||||
[target.'cfg(not(target_os="android"))'.features]
|
|
||||||
default = ["openxr/mint", "linked"]
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["openxr/mint"]
|
default = ["linked"]
|
||||||
linked = ["openxr/linked"]
|
linked = ["openxr/linked"]
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
@@ -25,10 +23,10 @@ wgpu-core = { version = "0.17.1", features = ["vulkan"] }
|
|||||||
wgpu-hal = "0.17.1"
|
wgpu-hal = "0.17.1"
|
||||||
|
|
||||||
[target.'cfg( target_family = "unix" )'.dependencies]
|
[target.'cfg( target_family = "unix" )'.dependencies]
|
||||||
openxr = "0.17.1"
|
openxr = { version = "0.17.1", features = ["mint"] }
|
||||||
|
|
||||||
[target.'cfg(not(target_family = "unix"))'.dependencies]
|
[target.'cfg(not(target_family = "unix"))'.dependencies]
|
||||||
openxr = { version = "0.17.1", features = ["static"] }
|
openxr = { version = "0.17.1", features = ["mint", "static"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
bevy = "0.12"
|
bevy = "0.12"
|
||||||
|
|||||||
@@ -24,12 +24,17 @@ strip = "strip"
|
|||||||
[package.metadata.android.sdk]
|
[package.metadata.android.sdk]
|
||||||
target_sdk_version = 32
|
target_sdk_version = 32
|
||||||
|
|
||||||
|
|
||||||
|
[target.'cfg(not(target_os="android"))'.dependencies.bevy_oxr]
|
||||||
|
path = "../../"
|
||||||
|
default-features = true
|
||||||
|
|
||||||
# [package.metadata.android.application]
|
# [package.metadata.android.application]
|
||||||
# icon = "@mipmap/ic_launcher"
|
# icon = "@mipmap/ic_launcher"
|
||||||
# label = "Bevy Example"
|
# label = "Bevy Example"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bevy_oxr = { path = "../.." }
|
bevy_oxr = { path = "../..", default-features = false }
|
||||||
bevy = "0.12"
|
bevy = "0.12"
|
||||||
openxr = { git = "https://github.com/Ralith/openxrs", features = ["mint"] }
|
openxr = { git = "https://github.com/Ralith/openxrs", features = ["mint"] }
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,11 @@ crate-type = ["lib", "cdylib"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bevy = "0.12"
|
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" }
|
bevy_rapier3d = { git = "https://github.com/devil-ira/bevy_rapier", branch = "bevy-0.12" }
|
||||||
color-eyre = "0.6.2"
|
color-eyre = "0.6.2"
|
||||||
|
|
||||||
|
|
||||||
|
[target.'cfg(not(target_os="android"))'.dependencies.bevy_oxr]
|
||||||
|
path = "../../"
|
||||||
|
default-features = true
|
||||||
|
|||||||
Reference in New Issue
Block a user