Fix auto SFML build

This commit is contained in:
Thomas Forgione 2018-10-08 14:22:45 +02:00
parent 59172a14e7
commit e479ccd388
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
2 changed files with 1 additions and 24 deletions

View File

@ -2,10 +2,9 @@
name = "rusty" name = "rusty"
version = "0.1.0" version = "0.1.0"
authors = ["Thomas Forgione <thomas@forgione.fr>"] authors = ["Thomas Forgione <thomas@forgione.fr>"]
build = "prepare/build.rs"
[dependencies] [dependencies]
sfml = "0.14.0" sfml = { git = "https://gitea.tforgione.fr/free-rusty-maker/rust-sfml" }
[build-dependencies] [build-dependencies]
git2 = "0.7.5" git2 = "0.7.5"

View File

@ -1,22 +0,0 @@
extern crate git2;
use git2::Repository;
fn main() {
let sfml = match Repository::open("third-party/sfml") {
Ok(repo) => repo,
Err(_) => {
Repository::clone("https://github.com/sfml/sfml", "third-party/sfml")
.expect("Couldn't clone SFML")
}
};
let csfml = match Repository::open("third-party/csfml") {
Ok(repo) => repo,
Err(_) => {
Repository::clone("https://github.com/sfml/csfml", "third-party/csfml")
.expect("Couldn't clone CSFML")
}
};
}