libvex-sys 0.1.1

Basic wrapper around libVEX from Valgrind - source included in the crate, based on trailofbits' static analysis fork
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::fs;
use std::ffi::OsStr;
extern crate gcc;

fn main() {
    let mut cfg = gcc::Config::new();
    cfg.include("libvex-tob/VEX/pub")
       .include("libvex-tob/VEX/priv")
       //.opt_level(3)
       .debug(true);
    for filename in fs::read_dir("libvex-tob/VEX/priv").unwrap(){
        let filename = filename.unwrap().path();
        if filename.extension() == Some(&OsStr::new("c")) {
            cfg.file(filename);
        }
    }
    cfg.compile("libvex.a");
}