Created
October 12, 2018 06:52
-
-
Save yushulx/82aa1e908364b462c95a73b9a39cc546 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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