feat: added alvr fork
This commit is contained in:
31
patches/fix-finding-libs.patch
Normal file
31
patches/fix-finding-libs.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
diff --git a/alvr/server_openvr/build.rs b/alvr/server_openvr/build.rs
|
||||
index 2573d07e..130cfcce 100644
|
||||
--- a/alvr/server_openvr/build.rs
|
||||
+++ b/alvr/server_openvr/build.rs
|
||||
@@ -1,24 +1,12 @@
|
||||
use std::{env, path::PathBuf};
|
||||
|
||||
fn get_ffmpeg_path() -> PathBuf {
|
||||
- let ffmpeg_path = alvr_filesystem::deps_dir()
|
||||
- .join(if cfg!(target_os = "linux") {
|
||||
- "linux"
|
||||
- } else {
|
||||
- "windows"
|
||||
- })
|
||||
- .join("ffmpeg");
|
||||
-
|
||||
- if cfg!(target_os = "linux") {
|
||||
- ffmpeg_path.join("alvr_build")
|
||||
- } else {
|
||||
- ffmpeg_path
|
||||
- }
|
||||
+ PathBuf::from("@ffmpeg@")
|
||||
}
|
||||
|
||||
#[cfg(all(target_os = "linux", feature = "gpl"))]
|
||||
fn get_linux_x264_path() -> PathBuf {
|
||||
- alvr_filesystem::deps_dir().join("linux/x264/alvr_build")
|
||||
+ PathBuf::from("@x264@")
|
||||
}
|
||||
|
||||
fn main() {
|
||||
Reference in New Issue
Block a user