blob: 595f3952b1bd22514afe218aeca7ee552580e9f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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("OUT_DIR").unwrap());
path.push("share");
path
}.display())
}
if std::env::var_os("LOCALEDIR").is_none() {
println!("cargo::rustc-env=LOCALEDIR={}", {
let mut path = std::path::PathBuf::from(std::env::var_os("OUT_DIR").unwrap());
path.push("locale");
path
}.display())
}
relm4_icons_build::bundle_icons(
"icons.rs",
Some("xyz.vikanezrimaya.kittybox.Bowl"),
None::<&str>,
Some("./icons"),
// Stock icons to include
["menu", "magic-wand"],
);
}
|