-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.rs
More file actions
21 lines (20 loc) · 888 Bytes
/
Copy pathbuild.rs
File metadata and controls
21 lines (20 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
fn main() {
if cfg!(target_os = "windows") {
println!("cargo:rerun-if-changed=native/adlx_bridge.cpp");
println!("cargo:rerun-if-changed=native/adlx_bridge.h");
println!("cargo:rerun-if-changed=vendor/adlx/SDK/ADLXHelper/Windows/Cpp/ADLXHelper.cpp");
println!("cargo:rerun-if-changed=vendor/adlx/SDK/Platform/Windows/WinAPIs.cpp");
cc::Build::new()
.cpp(true)
.file("native/adlx_bridge.cpp")
.file("vendor/adlx/SDK/ADLXHelper/Windows/Cpp/ADLXHelper.cpp")
.file("vendor/adlx/SDK/Platform/Windows/WinAPIs.cpp")
.include("vendor/adlx")
.flag_if_supported("/std:c++17")
.warnings(true)
.compile("gpu_crash_recorder_adlx");
embed_resource::compile("app.rc", embed_resource::NONE)
.manifest_required()
.unwrap();
}
}