Add meson build system

This commit is contained in:
Elias Projahn 2020-11-01 17:37:04 +01:00
parent a42161dc05
commit 30dfadf6e5
16 changed files with 215 additions and 15 deletions

9
src/resources.rs.in Normal file
View file

@ -0,0 +1,9 @@
use anyhow::Result;
pub fn init() -> Result<()> {
let bytes = glib::Bytes::from(include_bytes!(@RESOURCEFILE@).as_ref());
let resource = gio::Resource::from_data(&bytes)?;
gio::resources_register(&resource);
Ok(())
}