Function glib_build_tools::compile_resources

source ·
pub fn compile_resources<P: AsRef<Path>>(
    source_dirs: &[P],
    gresource: &str,
    target: &str,
)
Expand description

Call to run glib-compile-resources to generate compiled gresources to embed in binary with gio::resources_register_include. target is relative to OUT_DIR.

glib_build_tools::compile_resources(
    &["resources"],
    "resources/resources.gresource.xml",
    "compiled.gresource",
);