build/gi: Split generated sources to public/private

Since the switch to manual-register for gresources, the generated
functions were exposed in the gir file which is something we don't want
This commit is contained in:
Bilal Elmoussaoui 2023-09-07 22:01:04 +02:00
parent 058c1f4fb0
commit 414b26fcd9

View File

@ -102,17 +102,23 @@ libmks_gresources = gnome.compile_resources(
libmks_generated_sources = [
libmks_enums[0],
libmks_gresources[0],
libmks_marshal[0],
]
libmks_private_generated_sources = [
libmks_gresources[0],
]
libmks_generated_headers = [
mks_version_h,
libmks_enums[1],
libmks_gresources[1],
libmks_marshal[1],
]
libmks_private_generated_headers = [
libmks_gresources[1],
]
libmks_deps = [
libepoxy_dep,
libgio_dep,
@ -126,6 +132,8 @@ libmks = shared_library('mks-' + api_version,
libmks_generated_headers +
libmks_generated_sources +
libmks_private_sources +
libmks_private_generated_sources +
libmks_private_generated_headers +
libmks_sources,
include_directories: libmks_include_directories,
dependencies: libmks_deps,