Skip to content

Instantly share code, notes, and snippets.

@yushulx
Created October 12, 2018 06:52
Show Gist options
  • Save yushulx/82aa1e908364b462c95a73b9a39cc546 to your computer and use it in GitHub Desktop.
Save yushulx/82aa1e908364b462c95a73b9a39cc546 to your computer and use it in GitHub Desktop.
extern crate cc;
use std::env;
use std::fs;
fn main() {
// Link Dynamsoft Barcode Reader.
println!("cargo:rustc-link-search=./platforms/win");
println!("cargo:rustc-link-lib=DBRx64");
// Build C code.
cc::Build::new()
.include("include")
.file("src/bridge.c")
.compile("bridge");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment