girepository: add support for relocations

Relocation is a common scenario in macOS applications and frameworks.
This commit provides a mechanism to support relocations by inferring
the typelib dir from the path of the loaded image libgirepository-1.0.dylib.
This commit is contained in:
Andoni Morales Alastruey
2024-05-21 16:34:37 +02:00
parent 2b7678b41b
commit 62fb5eb6d4
2 changed files with 113 additions and 14 deletions

View File

@@ -85,6 +85,7 @@ gir_c_args = [
'-DGIR_DIR="@0@"'.format(glib_girdir),
'-DGOBJECT_INTROSPECTION_LIBDIR="@0@"'.format(glib_libdir),
'-DGOBJECT_INTROSPECTION_DATADIR="@0@"'.format(glib_datadir),
'-DGOBJECT_INTROSPECTION_RELATIVE_LIBDIR="@0@"'.format(get_option('libdir')),
]
custom_c_args = []