From ff5478cba9403191bca4e84f1a5e04dffb68b362 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 18 Apr 2016 19:04:09 +0200 Subject: [PATCH] Re-run the geckolib build script if components/style/properties changes. --- ports/geckolib/build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/geckolib/build.rs b/ports/geckolib/build.rs index e7bae9ee508..9bfe24f8277 100644 --- a/ports/geckolib/build.rs +++ b/ports/geckolib/build.rs @@ -41,6 +41,10 @@ fn main() { let geckolib_dir = Path::new(file!()).parent().unwrap(); let top_dir = geckolib_dir.join("..").join(".."); + let properties_dir = top_dir.join("components").join("style").join("properties"); + println!("cargo:rerun-if-changed={}", properties_dir.to_str().unwrap()); + println!("cargo:rerun-if-changed={}", geckolib_dir.join("properties.mako.rs").to_str().unwrap()); + let style_template = Path::new("components/style/properties/properties.mako.rs"); let geckolib_template = Path::new("ports/geckolib/properties.mako.rs"); let mako = Path::new("components/style/properties/Mako-0.9.1.zip");