diff options
| author | Daniel Foré <daniel@elementary.io> | 2018-02-12 16:09:30 -0800 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-02-13 21:26:43 +0200 |
| commit | a99ae8104384210255887b2fd8094bb137c98ea0 (patch) | |
| tree | 92397f3e4cdda777bf2cca12ad39c8c27b4fc047 /docs/markdown/Gnome-module.md | |
| parent | 74306a930152310c2b8c0cb0068d3524eae896a2 (diff) | |
| download | meson-a99ae8104384210255887b2fd8094bb137c98ea0.tar.gz | |
Add an example for gresource
Diffstat (limited to 'docs/markdown/Gnome-module.md')
| -rw-r--r-- | docs/markdown/Gnome-module.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/markdown/Gnome-module.md b/docs/markdown/Gnome-module.md index b33009df4..fbf9530a1 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, |
