From e479ccd3882382f70d2d8e918bede7c3fb1fe95e Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Mon, 8 Oct 2018 14:22:45 +0200 Subject: [PATCH] Fix auto SFML build --- Cargo.toml | 3 +-- prepare/build.rs | 22 ---------------------- 2 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 prepare/build.rs diff --git a/Cargo.toml b/Cargo.toml index a0f3a6d..e65a71f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,10 +2,9 @@ name = "rusty" version = "0.1.0" authors = ["Thomas Forgione "] -build = "prepare/build.rs" [dependencies] -sfml = "0.14.0" +sfml = { git = "https://gitea.tforgione.fr/free-rusty-maker/rust-sfml" } [build-dependencies] git2 = "0.7.5" diff --git a/prepare/build.rs b/prepare/build.rs deleted file mode 100644 index c07cd58..0000000 --- a/prepare/build.rs +++ /dev/null @@ -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") - } - }; - -}