blob: e20a2561b289b714bfc164514991c18c2e4165de (
plain)
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
28
29
30
31
|
--- a/build.rs
+++ b/build.rs
@@ -66,13 +66,6 @@ fn main() {
}
}
- println!("cargo:rerun-if-changed=lib/error.h");
- println!("cargo:rerun-if-changed=lib/error.c");
- println!("cargo:rerun-if-changed=lib/log.h");
- println!("cargo:rerun-if-changed=lib/log.c");
- cc::Build::new().file("lib/error.c").compile("error");
- cc::Build::new().file("lib/log.c").compile("log");
-
println!("cargo:rerun-if-changed=lib/encode_video.c");
let mut cc_video = cc::Build::new();
cc_video.file("lib/encode_video.c");
@@ -90,6 +83,14 @@ fn main() {
cc_video.define("HAS_MEDIAFOUNDATION", None);
}
cc_video.compile("video");
+
+ println!("cargo:rerun-if-changed=lib/error.h");
+ println!("cargo:rerun-if-changed=lib/error.c");
+ println!("cargo:rerun-if-changed=lib/log.h");
+ println!("cargo:rerun-if-changed=lib/log.c");
+ cc::Build::new().file("lib/error.c").compile("error");
+ cc::Build::new().file("lib/log.c").compile("log");
+
let ffmpeg_link_kind =
// https://github.com/rust-lang/rust/pull/72785
// https://users.rust-lang.org/t/linking-on-windows-without-wholearchive/49846/3
|