tsm-sys 0.1.0

FFI bindings to libtsm
Documentation
extern crate gcc;
extern crate glob;

use glob::glob;
use std::env;

fn main() {
    let vendor_path = env::current_dir().unwrap().join("vendor/libtsm-3");

    let mut config = gcc::Config::new();
    for file in glob(vendor_path.join("src/*.c").to_str().unwrap()).unwrap() {
        config.file(file.unwrap());
    }
    for file in glob(vendor_path.join("external/*.c").to_str().unwrap()).unwrap() {
        config.file(file.unwrap());
    }
    config.include(vendor_path.to_str().unwrap());
    config.compile("libtsm.a");
}