Skip to content

Commit 439cb27

Browse files
author
Rene Eichhorn
committed
now statically linked against openvr
1 parent f1ac491 commit 439cb27

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

build.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,14 @@
33
#[cfg(target_os="macos")]
44
fn main() {
55
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"));
76
}
87

98
#[cfg(target_os="linux")]
109
fn main() {
1110
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"));
1311
}
1412

1513
#[cfg(target_os="windows")]
1614
fn main() {
1715
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"));
1916
}

scripts/binding.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// This header is used for bindgen to automatically generate the openvr c binding
2+
// bindgen -match openvr_capi.h scripts/binding.h -o binding.rs
3+
4+
#include <stdbool.h>
5+
#include "../openvr/headers/openvr_capi.h"

0 commit comments

Comments
 (0)