Skip to content

Commit

Permalink
Fixed android linkage (#44)
Browse files Browse the repository at this point in the history
* Fixed android linkage

* Update Cargo.toml

* Update Cargo.toml
  • Loading branch information
TheButlah authored Nov 23, 2023
1 parent b4ebe08 commit 6c5ca18
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[target.aarch64-linux-android.openxr_loader]
rustc-link-search = ["assets/runtime_libs/arm64-v8a"]
rustc-link-lib = ["openxr_loader"]
25 changes: 22 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ bevy-inspector-egui = "0.21.0"
wgpu = "0.17"
bevy_flycam = "0.12"
bevy_oxr = "0.1"
openxr = "0.17.1"
openxr = { git = "https://github.com/Ralith/openxrs", rev = "361b27e" }
bevy_mod_inverse_kinematics = "0.5"

# Enable a small amount of optimization in debug mode
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
# cmake for openxr
pkgs.cmake
] ++ pkgs.lib.optionals (!pkgs.stdenv.isDarwin) (with pkgs; [
alsa-lib
alsa-lib.dev
androidenv.androidPkgs_9_0.androidsdk
]);

Expand All @@ -57,6 +59,7 @@
pkgs.zstd
rustPlatform.bindgenHook
] ++ pkgs.lib.optionals pkgs.stdenv.isLinux (with pkgs; [
alsa-lib
alsa-lib.dev
libxkbcommon
udev
Expand Down
2 changes: 1 addition & 1 deletion skills/openxr-6dof/manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
android:
runtime_libs:
- "runtime_libs"
- "../../assets/runtime_libs"
manifest:
package: "com.github.nexussocial.skilltree.openxr_6dof"
uses_feature:
Expand Down

0 comments on commit 6c5ca18

Please sign in to comment.