Function gio::compile_resources

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

Call from build script to run glib-compile-resources to generate compiled gresources to embed in binary with [resources_register_include]. target is relative to OUT_DIR.

gio::compile_resources(
    "resources",
    "resources/resources.gresource.xml",
    "compiled.gresource",
);