mirror of
https://github.com/mii443/rust-openvr.git
synced 2025-08-22 16:25:36 +00:00
add support for cargo.
This commit is contained in:
23
Cargo.toml
Normal file
23
Cargo.toml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
[package]
|
||||||
|
|
||||||
|
name = "ovr-rs"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = [
|
||||||
|
"Colin Sherratt",
|
||||||
|
"Erick Tryzelaar"
|
||||||
|
]
|
||||||
|
|
||||||
|
build = "./scripts/compile-for-cargo"
|
||||||
|
|
||||||
|
[[lib]]
|
||||||
|
|
||||||
|
name = "ovr-rs"
|
||||||
|
path = "src/oculus-vr/lib.rs"
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "oculus-info"
|
||||||
|
path = "src/oculus-info/main.rs"
|
||||||
|
|
||||||
|
[dependencies.cgmath-rs]
|
||||||
|
|
||||||
|
git = "https://github.com/bjz/cgmath-rs.git"
|
7
scripts/compile-for-cargo
Executable file
7
scripts/compile-for-cargo
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
./configure
|
||||||
|
make lib/libovr.a
|
||||||
|
cp lib/libovr.a target/
|
Reference in New Issue
Block a user