girepository/introspection: correctly install .gir files into custom locations

There is a meson option (gir_dir_prefix), but without being passed in here
the files would always get installed into the default location (datadir).

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
This commit is contained in:
Alexander Kanavin 2024-04-23 11:24:34 +02:00
parent 1cf9b36303
commit 22ec5a96e3

View File

@ -49,6 +49,7 @@ glib_gir = gnome.generate_gir(libglib,
export_packages: 'glib-2.0', export_packages: 'glib-2.0',
header: 'glib.h', header: 'glib.h',
install: true, install: true,
install_dir_gir: glib_girdir,
dependencies: [ dependencies: [
libgobject_dep, libgobject_dep,
], ],
@ -76,6 +77,7 @@ if host_system == 'windows'
header: 'glib.h', header: 'glib.h',
includes: [ glib_gir[0] ], includes: [ glib_gir[0] ],
install: true, install: true,
install_dir_gir: glib_girdir,
dependencies: [ dependencies: [
libgobject_dep, libgobject_dep,
], ],
@ -104,6 +106,7 @@ else
header: 'glib.h', header: 'glib.h',
includes: [ glib_gir[0] ], includes: [ glib_gir[0] ],
install: true, install: true,
install_dir_gir: glib_girdir,
dependencies: [ dependencies: [
libgobject_dep, libgobject_dep,
], ],
@ -137,6 +140,7 @@ gobject_gir = gnome.generate_gir(libgobject,
header: 'glib-object.h', header: 'glib-object.h',
includes: [ glib_gir[0] ], includes: [ glib_gir[0] ],
install: true, install: true,
install_dir_gir: glib_girdir,
env: gi_gen_env_variables, env: gi_gen_env_variables,
extra_args: gir_args + [ extra_args: gir_args + [
'-DGOBJECT_COMPILATION', '-DGOBJECT_COMPILATION',
@ -162,6 +166,7 @@ gmodule_gir = gnome.generate_gir(libgmodule,
header: 'gmodule.h', header: 'gmodule.h',
includes: [ glib_gir[0] ], includes: [ glib_gir[0] ],
install: true, install: true,
install_dir_gir: glib_girdir,
dependencies: [ dependencies: [
libglib_dep, libglib_dep,
], ],
@ -224,6 +229,7 @@ gio_gir = gnome.generate_gir(libgio,
header: 'gio/gio.h', header: 'gio/gio.h',
includes: [ glib_gir[0], gmodule_gir[0], gobject_gir[0] ], includes: [ glib_gir[0], gmodule_gir[0], gobject_gir[0] ],
install: true, install: true,
install_dir_gir: glib_girdir,
dependencies: [ dependencies: [
libglib_dep, libglib_dep,
libgobject_dep, libgobject_dep,
@ -249,6 +255,7 @@ if host_system == 'windows'
header: 'gio/gio.h', header: 'gio/gio.h',
includes: [ glib_gir[0], gmodule_gir[0], gobject_gir[0], gio_gir[0] ], includes: [ glib_gir[0], gmodule_gir[0], gobject_gir[0], gio_gir[0] ],
install: true, install: true,
install_dir_gir: glib_girdir,
dependencies: [ dependencies: [
libglib_dep, libglib_dep,
libgobject_dep, libgobject_dep,
@ -277,6 +284,7 @@ else
header: 'gio/gio.h', header: 'gio/gio.h',
includes: [ glib_gir[0], gmodule_gir[0], gobject_gir[0], gio_gir[0] ], includes: [ glib_gir[0], gmodule_gir[0], gobject_gir[0], gio_gir[0] ],
install: true, install: true,
install_dir_gir: glib_girdir,
dependencies: [ dependencies: [
libglib_dep, libglib_dep,
libgobject_dep, libgobject_dep,
@ -314,6 +322,7 @@ girepository_gir = gnome.generate_gir(libgirepository,
header: 'girepository/girepository.h', header: 'girepository/girepository.h',
includes: [ glib_gir[0], gmodule_gir[0], gobject_gir[0], gio_gir[0] ], includes: [ glib_gir[0], gmodule_gir[0], gobject_gir[0], gio_gir[0] ],
install: true, install: true,
install_dir_gir: glib_girdir,
dependencies: [ libglib_dep, libgobject_dep, libgmodule_dep, libgio_dep ], dependencies: [ libglib_dep, libgobject_dep, libgmodule_dep, libgio_dep ],
extra_args: gir_args + libgirepository_gir_args, extra_args: gir_args + libgirepository_gir_args,
) )