mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
Merge branch 'dynamic-typelib-path' into 'master'
build: Get typelib dir dynamically using gobject-introspection dependency See merge request GNOME/gtk!3737
This commit is contained in:
commit
c86631b8a9
@ -406,6 +406,9 @@ iso_codes_dep = dependency('iso-codes', required: false)
|
||||
gidocgen_dep = dependency('gi-docgen', version: '>= 2021.1',
|
||||
fallback: ['gi-docgen', 'dummy_dep'],
|
||||
required: get_option('gtk_doc'))
|
||||
gi_dep = dependency('gobject-introspection-1.0', version: introspection_req,
|
||||
required: get_option('introspection').enabled() and
|
||||
get_option('build-tests'))
|
||||
|
||||
fontconfig_dep = [] # only used in x11 backend
|
||||
|
||||
|
@ -3,6 +3,7 @@ test('api',
|
||||
find_program('api.py', dirs: meson.current_source_dir()),
|
||||
suite: ['introspection'],
|
||||
env: [
|
||||
'GI_TYPELIB_PATH=@0@/gtk:/usr/lib64/girepository-1.0'.format(project_build_root),
|
||||
'GI_TYPELIB_PATH=@0@/gtk:@1@'.format(project_build_root,
|
||||
gi_dep.get_pkgconfig_variable('typelibdir')),
|
||||
'LD_PRELOAD=@0@/gtk/libgtk-4.so'.format(project_build_root),
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user