Skip to content

Commit ff5478c

Browse files
committed
Re-run the geckolib build script if components/style/properties changes.
1 parent 7787b21 commit ff5478c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/geckolib/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ fn main() {
4141
let geckolib_dir = Path::new(file!()).parent().unwrap();
4242
let top_dir = geckolib_dir.join("..").join("..");
4343

44+
let properties_dir = top_dir.join("components").join("style").join("properties");
45+
println!("cargo:rerun-if-changed={}", properties_dir.to_str().unwrap());
46+
println!("cargo:rerun-if-changed={}", geckolib_dir.join("properties.mako.rs").to_str().unwrap());
47+
4448
let style_template = Path::new("components/style/properties/properties.mako.rs");
4549
let geckolib_template = Path::new("ports/geckolib/properties.mako.rs");
4650
let mako = Path::new("components/style/properties/Mako-0.9.1.zip");

0 commit comments

Comments
 (0)