Commit a1c768c9 authored by Felipe Borges's avatar Felipe Borges 👣

build: Generate gobject introspection bindings

parent 1b123601
......@@ -14,6 +14,13 @@ add_project_arguments([
'-I' + meson.build_root(),
], language: 'c')
datadir = get_option('datadir')
libdir = get_option('libdir')
girdir = join_paths(datadir, 'gir-1.0')
typelibdir = join_paths(libdir, 'girepository-1.0')
gnome = import('gnome')
subdir('src')
subdir('examples')
......
......@@ -54,6 +54,20 @@ gtk_frdp_dep = declare_dependency(
install_headers(gtk_frdp_headers, subdir: 'gtk-frdp')
gtk_frdp_gir = gnome.generate_gir(gtk_frdp_lib,
sources: gtk_frdp_sources + gtk_frdp_headers,
nsversion: api_version,
namespace: 'GtkFrdp',
symbol_prefix: 'frdp',
identifier_prefix: 'Frdp',
link_with: gtk_frdp_lib,
includes: ['Gio-2.0', 'Gtk-3.0'],
install: true,
install_dir_gir: girdir,
install_dir_typelib: typelibdir,
extra_args: [ '--c-include=gtk-frdp.h', '--quiet' ],
)
pkg = import('pkgconfig')
pkg.generate(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment