File tree Expand file tree Collapse file tree 5 files changed +14
-8
lines changed Expand file tree Collapse file tree 5 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 1+ [submodule "openvr "]
2+ path = openvr
3+ url = https://github.com/ValveSoftware/openvr.git
Original file line number Diff line number Diff line change 11[package ]
22name = " openvr_sys"
3- version = " 0.1.0 "
3+ version = " 0.1.1 "
44authors = [
55 " Colin Sherratt" ,
66 " Erick Tryzelaar" ,
Original file line number Diff line number Diff line change 22
33#[ cfg( target_os="macos" ) ]
44fn 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" ) ]
1010fn 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" ) ]
1616fn 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}
Original file line number Diff line number Diff line change 1- #[ link( name = "openvr_api" ) ]
1+ #![ allow( warnings) ]
2+
3+ #[ link( name = "openvr_api" , kind = "static" ) ]
24extern { }
35
46/* automatically generated by rust-bindgen */
You can’t perform that action at this time.
0 commit comments