forked from velopack/filelocksmith-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.rs
18 lines (17 loc) · 810 Bytes
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fn main() {
#[cfg(not(feature = "private-docs-rs"))]
{
let mut build = cc::Build::new();
build.cpp(true);
build.static_crt(true);
build.include(r"PowerToys\src\modules\FileLocksmith\FileLocksmithLibInterop");
build.file(r"PowerToys\src\modules\FileLocksmith\FileLocksmithLibInterop\FileLocksmith.cpp");
build.file(r"PowerToys\src\modules\FileLocksmith\FileLocksmithLibInterop\NtdllBase.cpp");
build.file(r"PowerToys\src\modules\FileLocksmith\FileLocksmithLibInterop\NtdllExtensions.cpp");
build.file(r"src/interop.cpp");
build.flag_if_supported("/std:c++17");
build.compile("powertoys_locksmith");
println!("cargo:rerun-if-changed=src/lib.rs");
println!("cargo:rerun-if-changed=src/interop.cpp");
}
}