Skip to content

Commit f1ac491

Browse files
author
Rene Eichhorn
committed
now statically links against openvr
1 parent da5eecf commit f1ac491

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "openvr"]
2+
path = openvr
3+
url = https://github.com/ValveSoftware/openvr.git

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "openvr_sys"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
authors = [
55
"Colin Sherratt",
66
"Erick Tryzelaar",

build.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
#[cfg(target_os="macos")]
44
fn main() {
5-
println!("cargo:rustc-link-search={}/../../openvr/lib/osx32", env!("CARGO_MANIFEST_DIR"));
6-
println!("cargo:rustc-link-search={}/../../openvr/bin/osx32", env!("CARGO_MANIFEST_DIR"));
5+
println!("cargo:rustc-link-search={}/openvr/lib/osx32", env!("CARGO_MANIFEST_DIR"));
6+
println!("cargo:rustc-link-search={}/openvr/bin/osx32", env!("CARGO_MANIFEST_DIR"));
77
}
88

99
#[cfg(target_os="linux")]
1010
fn main() {
11-
println!("cargo:rustc-link-search={}/../../openvr/lib/linux64", env!("CARGO_MANIFEST_DIR"));
12-
println!("cargo:rustc-link-search={}/../../openvr/bin/linux64", env!("CARGO_MANIFEST_DIR"));
11+
println!("cargo:rustc-link-search={}/openvr/lib/linux64", env!("CARGO_MANIFEST_DIR"));
12+
println!("cargo:rustc-link-search={}/openvr/bin/linux64", env!("CARGO_MANIFEST_DIR"));
1313
}
1414

1515
#[cfg(target_os="windows")]
1616
fn main() {
17-
println!("cargo:rustc-link-search={}\\..\\..\\openvr\\lib\\win64", env!("CARGO_MANIFEST_DIR"));
18-
println!("cargo:rustc-link-search={}\\..\\..\\openvr\\bin\\win64", env!("CARGO_MANIFEST_DIR"));
17+
println!("cargo:rustc-link-search={}/openvr/lib/win64", env!("CARGO_MANIFEST_DIR"));
18+
println!("cargo:rustc-link-search={}/openvr/bin/win64", env!("CARGO_MANIFEST_DIR"));
1919
}

lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#[link(name = "openvr_api")]
1+
#![allow(warnings)]
2+
3+
#[link(name = "openvr_api", kind = "static")]
24
extern {}
35

46
/* automatically generated by rust-bindgen */

openvr

Submodule openvr added at 01e9d9a

0 commit comments

Comments
 (0)