diff options
author | Vika <vika@fireburn.ru> | 2024-09-01 21:07:42 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2024-09-04 19:51:50 +0300 |
commit | 1cfd8614cef2a5348586803079a4a4bbd17e66c7 (patch) | |
tree | 33283a3b0ac04ada3c0657979cd392335c733535 | |
parent | 6b2c31a96685fa6db3ba59a58011bb07004959e0 (diff) | |
download | bowl-1cfd8614cef2a5348586803079a4a4bbd17e66c7.tar.zst |
Fix build script
-rwxr-xr-x[-rw-r--r--] | build.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/build.rs b/build.rs index 8113d1c..e3491bb 100644..100755 --- a/build.rs +++ b/build.rs @@ -1,15 +1,18 @@ fn main() { + println!("cargo::rerun-if-env-changed=PKGDATADIR"); + println!("cargo::rerun-if-env-changed=LOCALEDIR"); + println!("cargo::rerun-if-changed=./build.rs"); if std::env::var_os("PKGDATADIR").is_none() { println!("cargo::rustc-env=PKGDATADIR={}", { - let mut path = std::path::PathBuf::from(std::env::var_os("OUTDIR").unwrap()); + let mut path = std::path::PathBuf::from(std::env::var_os("OUT_DIR").unwrap()); path.push("share"); path }.display()) } if std::env::var_os("LOCALEDIR").is_none() { - println!("cargo::rustc-env=PKGDATADIR={}", { - let mut path = std::path::PathBuf::from(std::env::var_os("OUTDIR").unwrap()); + println!("cargo::rustc-env=LOCALEDIR={}", { + let mut path = std::path::PathBuf::from(std::env::var_os("OUT_DIR").unwrap()); path.push("locale"); path }.display()) |