-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathbuild.rs
27 lines (25 loc) · 878 Bytes
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
extern crate gcc;
fn main() {
let path = std::env::current_dir().expect("Could not get the current dir");
gcc::Config::new()
.cpp(true)
.pic(true)
.include(path.join("escapi_dll"))
.include(path.join("common"))
.include("C:/Program Files (x86)/Windows Kits/8.1/Include/um/shlwapi.h")
.file("escapi_dll/capture.cpp")
.file("escapi_dll/conversion.cpp")
.file("escapi_dll/escapi_dll.cpp")
.file("escapi_dll/interface.cpp")
.file("escapi_dll/videobufferlock.cpp")
.object("ole32.lib")
.object("oleaut32.lib")
.object("uuid.lib")
.object("mf.lib")
.object("mfplat.lib")
.object("mfreadwrite.lib")
.object("mfuuid.lib")
.object("shlwapi.lib")
.compile("libescapi.a");
println!("cargo:rustc-link-lib=static=escapi");
}