From a99ae8104384210255887b2fd8094bb137c98ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20For=C3=A9?= Date: Mon, 12 Feb 2018 16:09:30 -0800 Subject: Add an example for gresource --- docs/markdown/Gnome-module.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'docs/markdown') diff --git a/docs/markdown/Gnome-module.md b/docs/markdown/Gnome-module.md index b33009d..fbf9530 100644 --- a/docs/markdown/Gnome-module.md +++ b/docs/markdown/Gnome-module.md @@ -46,6 +46,25 @@ file called `foobar.h`, which you can then include in your sources. Returns an array containing: `[c_source, header_file]` or `[gresource_bundle]` +Example: + +```meson +gnome = import('gnome') + +asresources = gnome.compile_resources( + 'as-resources', 'data/asresources.gresource.xml', + source_dir: 'data', + c_name: 'as' +) + +executable( + meson.project_name(), + asresources, + dependencies: my_deps, + install: true +) +``` + ### gnome.generate_gir() Generates GObject introspection data. Takes one positional argument, -- cgit v1.1