rust-hdl-ok-frontpanel-sys 0.1.0

OpalKelly FrontPanel library wrapper for the RustHDL crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate bindgen;

use std::path::PathBuf;

//#[cfg(linux)]
fn main() {
    println!("cargo:rustc-link-lib=dylib=okFrontPanel");
    let root_path = PathBuf::from("/opt/FrontPanel-Ubuntu16.04LTS-x64-5.2.0/API");
    println!(
        "cargo:rustc-link-search=native={}",
        root_path.to_str().unwrap()
    );
}