girepository: Exclude private symbols from the ABI

This removes the gthash utility functions from the ABI, so link those
into their automated test statically.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2024-01-19 11:32:44 +00:00
parent 4ff4f073a4
commit 25ec19723c
3 changed files with 6 additions and 1 deletions

View File

@ -51,6 +51,7 @@ cmph = static_library('cmph',
sources: cmph_sources,
c_args: custom_c_args,
dependencies: cmph_deps,
gnu_symbol_visibility : 'hidden',
)
cmph_dep = declare_dependency(

View File

@ -106,6 +106,7 @@ girepo_gthash_lib = static_library('girepository-gthash',
libgmodule_dep,
libgobject_dep,
],
gnu_symbol_visibility : 'hidden',
)
girepo_gthash_dep = declare_dependency(
@ -132,6 +133,7 @@ libgirepository_internals = static_library('girepository-internals',
gi_visibility_h,
],
c_args: gir_c_args + custom_c_args,
gnu_symbol_visibility : 'hidden',
include_directories : [configinc, girepoinc],
dependencies: [girepo_gthash_dep, libffi_dep],
)

View File

@ -6,7 +6,9 @@ if enable_gir
'cmph-bdz': {
'dependencies': [cmph_dep],
},
'gthash' : {},
'gthash' : {
'dependencies': [girepo_gthash_dep],
},
'repository' : {
'depends': [glib_gir, gobject_gir],
},