Skip to content

Commit

Permalink
Remove outdated backends and update Cargo.toml files (#226)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Adams <[email protected]>
  • Loading branch information
msub2 authored Jul 18, 2024
1 parent bacb22f commit 11a3727
Show file tree
Hide file tree
Showing 25 changed files with 12 additions and 2,444 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ jobs:
- name: build
run: |
cd webxr
cargo build --features=glwindow,headless,googlevr
cargo build --features=ipc,glwindow,headless,googlevr
cargo build --features=glwindow,headless
cargo build --features=ipc,glwindow,headless
cargo build --features=glwindow,headless,profile
rustup target add arm-linux-androideabi
cargo build --target arm-linux-androideabi --features=ipc,googlevr
mac:
runs-on: macos-latest
steps:
Expand All @@ -39,8 +37,8 @@ jobs:
- name: build
run: |
cd webxr
cargo build --features=glwindow,headless,googlevr
cargo build --features=ipc,glwindow,headless,googlevr
cargo build --features=glwindow,headless
cargo build --features=ipc,glwindow,headless
cargo build --features=glwindow,headless,profile
win:
runs-on: windows-latest
Expand All @@ -50,8 +48,8 @@ jobs:
- name: build
run: |
cd webxr
cargo build --features=glwindow,headless,googlevr
cargo build --features=ipc,glwindow,headless,googlevr
cargo build --features=glwindow,headless
cargo build --features=ipc,glwindow,headless
cargo build --features=glwindow,headless,profile
rustup target add aarch64-pc-windows-msvc
cargo build --target=aarch64-pc-windows-msvc --features ipc,openxr-api
Expand Down
7 changes: 3 additions & 4 deletions webxr-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ edition = "2018"

homepage = "https://github.com/servo/webxr"
repository = "https://github.com/servo/webxr"
keywords = ["webxr", "openvr", "oculus", "magicleap", "headset", "vr", "ar"]
keywords = ["webxr", "openxr", "oculus", "headset", "vr", "ar"]
license = "MPL-2.0"

description = '''A safe Rust API that provides a way to interact with
Virtual Reality and Augmented Reality devices and integration with
vendor-specific APIs like OpenVR, Oculus, GoogleVR and Magic Leap. The
API is inspired by the WebXR Device API (https://www.w3.org/TR/webxr/)
Virtual Reality and Augmented Reality devices and integration with OpenXR.
The API is inspired by the WebXR Device API (https://www.w3.org/TR/webxr/)
but adapted to Rust design patterns.'''

[lib]
Expand Down
21 changes: 3 additions & 18 deletions webxr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,24 @@ edition = "2018"

homepage = "https://github.com/servo/webxr"
repository = "https://github.com/servo/webxr"
keywords = ["webxr", "openvr", "oculus", "magicleap", "headset", "vr", "ar"]
keywords = ["webxr", "openxr", "oculus", "headset", "vr", "ar"]
license = "MPL-2.0"

description = '''A safe Rust API that provides a way to interact with
Virtual Reality and Augmented Reality devices and integration with
vendor-specific APIs like OpenVR, Oculus, GoogleVR and Magic Leap. The
API is inspired by the WebXR Device API (https://www.w3.org/TR/webxr/)
Virtual Reality and Augmented Reality devices and integration with OpenXR.
The API is inspired by the WebXR Device API (https://www.w3.org/TR/webxr/)
but adapted to Rust design patterns.'''

build = "build.rs"

[lib]
path = "lib.rs"

[features]
default = ["x11"]
x11 = ["surfman/sm-x11"]
angle = ["surfman/sm-angle"]
egl = []
gles = []
glwindow = []
headless = []
ipc = ["webxr-api/ipc", "serde"]
googlevr = ["gvr-sys", "android_injected_glue", "gles"]
magicleap = ["egl"]
openxr-api = ["angle", "openxr", "winapi", "wio", "surfman/sm-angle-default"]
profile = ["webxr-api/profile"]

Expand All @@ -39,7 +32,6 @@ webxr-api = { path = "../webxr-api" }
crossbeam-channel = "0.5"
euclid = "0.22"
log = "0.4.6"
gvr-sys = { version = "0.7", optional = true }
openxr = { version = "0.18", optional = true }
serde = { version = "1.0", optional = true }
sparkle = "0.1"
Expand All @@ -49,10 +41,3 @@ time = "0.1.42"
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["dxgi", "d3d11", "winerror"], optional = true }
wio = { version = "0.2", optional = true }

[target.'cfg(target_os = "android")'.dependencies]
android_injected_glue = { version = "0.2.2", optional = true }

[build-dependencies]
gl_generator = "0.14"
bindgen = "0.69"
78 changes: 0 additions & 78 deletions webxr/build.rs

This file was deleted.

19 changes: 0 additions & 19 deletions webxr/egl.rs

This file was deleted.

5 changes: 0 additions & 5 deletions webxr/gles.rs

This file was deleted.

Binary file removed webxr/googlevr/aar/GVRService.aar
Binary file not shown.
Loading

0 comments on commit 11a3727

Please sign in to comment.