add support for cargo.

This commit is contained in:
Erick Tryzelaar
2014-06-26 08:03:48 -07:00
parent 043b929b0e
commit be77b71bda
2 changed files with 30 additions and 0 deletions

23
Cargo.toml Normal file
View 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
View File

@ -0,0 +1,7 @@
#!/bin/sh
set -e
./configure
make lib/libovr.a
cp lib/libovr.a target/