build: Remove private header files from Meson sources lists

They don’t need to be listed there in order to be built, and doing so
just means they get pulled into the `g-ir-scanner` command for building
`GLib-2.0.gir` and their contents end up being listed as public
introspectable API, which is not what we want.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3231
This commit is contained in:
Philip Withnall 2024-02-09 10:06:52 +00:00
parent 71801e445e
commit e9c94e8bf3

View File

@ -331,7 +331,6 @@ glib_sources += files(
'gtimer.c',
'gtimezone.c',
'gtrace.c',
'gtrace-private.h',
'gtranslit.c',
'gtrashstack.c',
'gtree.c',
@ -341,9 +340,7 @@ glib_sources += files(
'gunicollate.c',
'gunidecomp.c',
'guri.c',
'guriprivate.h',
'gutils.c',
'gutilsprivate.h',
'guuid.c',
'gvariant.c',
'gvariant-core.c',
@ -374,7 +371,7 @@ if host_system == 'windows'
glib_sources += files('dirent/wdirent.c')
endif
else
glib_sources += files('glib-unix.c', 'glib-unixprivate.h', 'gspawn.c', 'giounix.c')
glib_sources += files('glib-unix.c', 'gspawn.c', 'giounix.c')
platform_deps = []
endif