clapper-app: Fix internal functions visibility

We have to export functions that are used from UI files, otherwise they are
not accessible. For this reason add a special internal visibility header.
This commit is contained in:
Rafał Dzięgiel
2025-01-18 15:11:43 +01:00
parent f017b23798
commit e35d04a742
2 changed files with 22 additions and 0 deletions

View File

@@ -53,6 +53,19 @@ configure_file(
configuration: config_h,
)
visibility_conf = configuration_data()
visibility_conf.set(
'CLAPPER_API',
'CLAPPER_APP_INTERNAL',
)
configure_file(
input: '../../lib/shared/clapper-api-visibility.h.in',
output: 'clapper-app-internal-visibility.h',
configuration: visibility_conf,
)
clapperapp_sources = [
'clapper-app-about-window.c',
'clapper-app-application.c',
@@ -77,6 +90,7 @@ clapperapp_sources = [
]
clapperapp_c_args = [
'-DG_LOG_DOMAIN="ClapperApp"',
'-DCLAPPER_APP_INTERNAL_COMPILATION',
'-DGST_USE_UNSTABLE_API',
]