From 055e326906a7d5519cf28f37b6ec17ecbac8bdad Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 23 Sep 2018 18:44:16 -0400 Subject: clean up build script --- Cargo.toml | 2 +- build.rs | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6e39720..ee7987c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ license = "MIT" build = "build.rs" [build-dependencies] -gcc = "0.3.27" +cc = "1.0" pkg-config = "0.3.8" [dependencies] diff --git a/build.rs b/build.rs index 37d90c7..055ac17 100644 --- a/build.rs +++ b/build.rs @@ -1,4 +1,4 @@ -extern crate gcc; +extern crate cc; extern crate pkg_config; fn libvt100() { @@ -31,13 +31,12 @@ fn glib() { for dir in lib_def.link_paths { println!("cargo:rustc-link-search=native={}", dir.to_str().unwrap()); } - for lib in lib_def.libs { - println!("cargo:rustc-link-lib={}", lib); - } } fn libvt100_wrappers() { - gcc::compile_library("libvt100wrappers.a", &["src/ffi.c"]); + cc::Build::new() + .file("src/ffi.c") + .compile("vt100wrappers"); } fn main() { -- cgit v1.2.3-54-g00ecf