Re-run the geckolib build script if components/style/properties changes.

This commit is contained in:
Simon Sapin 2016-04-18 19:04:09 +02:00
parent 7787b21e30
commit ff5478cba9

View file

@ -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");