Removed old library

This commit is contained in:
Colin Sherratt
2015-06-13 09:46:24 -04:00
parent 13472c3837
commit 4a57cb70a2
278 changed files with 0 additions and 56765 deletions

View File

@@ -1,38 +0,0 @@
use std::path::Path;
use std::process::Command;
#[cfg(target_os = "linux")]
use std::fs;
#[cfg(target_os = "linux")]
fn main() {
Command::new("make")
.arg("-C").arg("modules/oculus_sdk_linux/")
.status()
.ok().expect("Failed to build");
fs::copy(&Path::new("modules/oculus_sdk_linux/LibOVR/Lib/Linux/Release/x86_64/libovr.a"),
&Path::new(env!("OUT_DIR")).join(Path::new("libovr.a")))
.ok().expect("Failed to move file");
println!("cargo:rustc-flags=-L {} -l ovr", env!("OUT_DIR"));
}
#[cfg(target_os = "macos")]
fn main() {
Command::new("xcodebuild")
.arg("-project")
.arg("modules/oculus_sdk_mac/LibOVR/Projects/Mac/Xcode/LibOVR.xcodeproj")
.arg("build")
.status()
.ok().expect("Failed to build");
Command::new("lipo")
.arg("modules/oculus_sdk_mac/LibOVR/Lib/MacOS/Release/libovr.a")
.arg("-thin")
.arg("x86_64")
.arg("-output")
.arg(Path::new(env!("OUT_DIR")).join(Path::new("libovr.a")).to_str().unwrap())
.status()
.ok().expect("Failed to lipo library");
println!("cargo:rustc-flags=-L {} -l ovr", env!("OUT_DIR"));
}