enso/app/gui/config/build.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
482 B
Rust
Raw Normal View History

const CONFIG_PATH: &str = "../config.yaml";
const JSON_CONFIG: &[&str] = &[
"../../../lib/rust/ensogl/pack/js/src/runner/config.json",
"../../../app/ide-desktop/lib/content-config/src/config.json",
];
fn main() {
println!("cargo:rerun-if-changed={CONFIG_PATH}");
println!("cargo:rerun-if-changed=build.rs");
for path in JSON_CONFIG {
println!("cargo:rerun-if-changed={path}");
}
config_reader::generate_config_module_from_yaml(CONFIG_PATH);
}