diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-09-23 18:44:16 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-09-23 18:44:16 -0400 |
commit | 055e326906a7d5519cf28f37b6ec17ecbac8bdad (patch) | |
tree | c29aa7eeb364222bf84dad36a64d4dd273634359 /build.rs | |
parent | d436150c9917322d42cb845ebeb4f066c8b879d8 (diff) | |
download | vt100-rust-055e326906a7d5519cf28f37b6ec17ecbac8bdad.tar.gz vt100-rust-055e326906a7d5519cf28f37b6ec17ecbac8bdad.zip |
clean up build script
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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() { |