blob: 08ac6e27da34f01d4ca2ab6393596fd65b1d2bac (
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
30
31
32
33
34
35
|
fn main() {
println!("cargo::rerun-if-env-changed=PKGDATADIR");
println!("cargo::rerun-if-env-changed=LOCALEDIR");
println!("cargo::rerun-if-env-changed=APP_ID");
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())
}
if std::env::var_os("APP_ID").is_none() {
println!("cargo::rustc-env=APP_ID=xyz.vikanezrimaya.kittybox.Bowl")
}
relm4_icons_build::bundle_icons(
"icons.rs",
Some("xyz.vikanezrimaya.kittybox.Bowl"),
None::<&str>,
Some("./icons"),
// Stock icons to include
["menu", "brain-augemnted" /* sic! */ ],
);
}
|