mirror of
https://github.com/bspeice/aeron-rs
synced 2024-12-21 21:38:09 -05:00
Add extra Windows SDK static libs
This commit is contained in:
parent
6312d9520d
commit
1d0e68a2da
@ -46,6 +46,19 @@ pub fn main() {
|
|||||||
link_type.link_lib(),
|
link_type.link_lib(),
|
||||||
link_type.target_name()
|
link_type.target_name()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
match link_type {
|
||||||
|
LinkType::Static => {
|
||||||
|
// On Windows, there are some extra libraries needed for static link
|
||||||
|
// that aren't included by Aeron.
|
||||||
|
if cfg!(target_os = "windows") {
|
||||||
|
println!("cargo:rustc-link-lib=shell32");
|
||||||
|
println!("cargo:rustc-link-lib=iphlpapi");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
_ => ()
|
||||||
|
};
|
||||||
|
|
||||||
let cmake_output = Config::new(&aeron_path)
|
let cmake_output = Config::new(&aeron_path)
|
||||||
.build_target(link_type.target_name())
|
.build_target(link_type.target_name())
|
||||||
.build();
|
.build();
|
||||||
|
Loading…
Reference in New Issue
Block a user