diff options
| author | Yuval Adam <_@yuv.al> | 2019-03-15 16:20:28 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2019-03-15 16:20:28 +0200 |
| commit | 0cfc9e3e3d4e6b3bfffa82a61a8fa6399f92189c (patch) | |
| tree | 51a26779d676af60a9d76cb018be966354394545 /build.rs | |
| parent | 004fb40e5a5af447266c73b951a058ab014b528d (diff) | |
Working version based on bch_codec
Diffstat (limited to 'build.rs')
| -rw-r--r-- | build.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,4 +1,5 @@ extern crate bindgen; +extern crate cc; use std::env; use std::path::PathBuf; @@ -15,4 +16,9 @@ fn main() { bindings .write_to_file(out_path.join("bindings.rs")) .expect("Couldn't write bindings!"); + + cc::Build::new() + .file("src/bch/bch.c") + .include("src/bch/bch.h") + .compile("bch"); } |
