-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.rs
More file actions
20 lines (16 loc) · 720 Bytes
/
build.rs
File metadata and controls
20 lines (16 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use std::env;
use std::path::PathBuf;
fn main() {
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
println!("{}", env::var("OUT_DIR").unwrap());
std::process::Command::new("pwd").spawn();
std::process::Command::new("ls").spawn();
glib_build_tools::compile_resources(
&["./icons"], // Search path for XML and resources
"./icons.gresource.xml", // The XML file
&out_dir.join("icons.gresource").into_os_string().to_str().unwrap(), // Output path
);
println!("cargo:rerun-if-changed=icons.gresource.xml");
println!("cargo:rerun-if-changed=icons/icon1.png");
println!("cargo:rerun-if-changed=icons/icon2.png");
}