mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
use rerun-if-changed in script/build.rs (#33502)
* use rerun-if-changed in script/build.rs Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * handle rerun on changes in webidl.py Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * Address comment nit Signed-off-by: Martin Robinson <mrobinson@igalia.com> --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
1ddfde96ce
commit
96006daf6e
1 changed files with 8 additions and 1 deletions
|
@ -16,11 +16,18 @@ fn main() {
|
||||||
let start = Instant::now();
|
let start = Instant::now();
|
||||||
|
|
||||||
let style_out_dir = PathBuf::from(env::var_os("DEP_SERVO_STYLE_CRATE_OUT_DIR").unwrap());
|
let style_out_dir = PathBuf::from(env::var_os("DEP_SERVO_STYLE_CRATE_OUT_DIR").unwrap());
|
||||||
|
let css_properties_json = style_out_dir.join("css-properties.json");
|
||||||
let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap());
|
let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap());
|
||||||
|
|
||||||
|
println!("cargo::rerun-if-changed=dom/webidls");
|
||||||
|
println!("cargo::rerun-if-changed=dom/bindings/codegen");
|
||||||
|
println!("cargo::rerun-if-changed={}", css_properties_json.display());
|
||||||
|
println!("cargo::rerun-if-changed=../../third_party/WebIDL/WebIDL.py");
|
||||||
|
// NB: We aren't handling changes in `third_party/ply` here.
|
||||||
|
|
||||||
let status = Command::new(find_python())
|
let status = Command::new(find_python())
|
||||||
.arg("dom/bindings/codegen/run.py")
|
.arg("dom/bindings/codegen/run.py")
|
||||||
.arg(style_out_dir.join("css-properties.json"))
|
.arg(&css_properties_json)
|
||||||
.arg(&out_dir)
|
.arg(&out_dir)
|
||||||
.status()
|
.status()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue