Generate recursive meta language dependencies.

Cargo doesn't scan a directory for changed dependencies recursively, so do that
as part of the build.py script.
This commit is contained in:
Jakob Stoklund Olesen
2016-05-13 10:00:38 -07:00
parent af535acdc6
commit 4109b9fe13
3 changed files with 38 additions and 3 deletions

View File

@@ -32,9 +32,6 @@ fn main() {
let meta_dir = top_dir.join("meta");
let build_script = meta_dir.join("build.py");
// Let Cargo known that this script should be rerun if anything changes in the meta directory.
println!("cargo:rerun-if-changed={}", meta_dir.display());
// Launch build script with Python. We'll just find python in the path.
let status = process::Command::new("python")
.current_dir(top_dir)