2021-11-16 12:04:56 +03:00
|
|
|
const CONFIG_PATH: &str = "../config.yaml";
|
2021-11-12 15:56:23 +03:00
|
|
|
|
2023-03-21 09:34:24 +03:00
|
|
|
const JSON_CONFIG: &[&str] = &[
|
|
|
|
"../../../lib/rust/ensogl/pack/js/src/runner/config.json",
|
|
|
|
"../../../app/ide-desktop/lib/content-config/src/config.json",
|
|
|
|
];
|
|
|
|
|
2021-11-12 15:56:23 +03:00
|
|
|
fn main() {
|
2023-02-03 02:05:25 +03:00
|
|
|
println!("cargo:rerun-if-changed={CONFIG_PATH}");
|
2021-11-12 15:56:23 +03:00
|
|
|
println!("cargo:rerun-if-changed=build.rs");
|
2023-03-21 09:34:24 +03:00
|
|
|
for path in JSON_CONFIG {
|
|
|
|
println!("cargo:rerun-if-changed={path}");
|
|
|
|
}
|
2021-11-12 15:56:23 +03:00
|
|
|
|
|
|
|
config_reader::generate_config_module_from_yaml(CONFIG_PATH);
|
|
|
|
}
|