Add an example for gresource

pull/3064/head
Daniel Foré 7 years ago committed by Jussi Pakkanen
parent 74306a9301
commit a99ae81043
  1. 19
      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,

Loading…
Cancel
Save