Skip to content

Commit

Permalink
[imtui-sys] Link imtui-sys to ncurses
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaheen Gandhi committed Feb 16, 2020
1 parent 8529070 commit 6c63e5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions imtui-sys/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use std::io;

fn main() -> io::Result<()> {
println!("cargo:rerun-if-env-changed=PKG_CONFIG_PATH");

let mut build = cc::Build::new();
let files = vec![
"third-party/imtui/src/imtui-impl-text.cpp",
Expand All @@ -13,5 +15,7 @@ fn main() -> io::Result<()> {
.flag("-std=c++17")
.files(files.iter())
.compile("libimtui.a");

println!("cargo:rustc-link-lib=ncurses");
Ok(())
}

0 comments on commit 6c63e5e

Please sign in to comment.