From 17c2a1cb4ea2093d0aac442162295751ac6df2a5 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 4 Jan 2022 17:41:34 +0000 Subject: [PATCH] build: Tell glib-compile-resources to make symbols internal where possible Partial solution to https://gitlab.gnome.org/GNOME/gtk/-/issues/4598 Signed-off-by: Simon McVittie --- gtk/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/meson.build b/gtk/meson.build index 6ce2c18320..201af63f23 100644 --- a/gtk/meson.build +++ b/gtk/meson.build @@ -883,6 +883,7 @@ if not meson.is_cross_build() and build_machine.system() == 'linux' and objcopy. depfile : 'gtk.gresource.d', command : [glib_compile_resources, '--generate', + '--internal', '--target=@OUTPUT@', '--dependency-file=@DEPFILE@', '--sourcedir=' + meson.current_source_dir(), @@ -897,6 +898,7 @@ if not meson.is_cross_build() and build_machine.system() == 'linux' and objcopy. depfile : 'gtkresources.c.d', command : [glib_compile_resources, '--generate-source', + '--internal', '--target=@OUTPUT@', '--dependency-file=@DEPFILE@', '--sourcedir=' + meson.current_source_dir(), @@ -913,6 +915,7 @@ if not meson.is_cross_build() and build_machine.system() == 'linux' and objcopy. depfile : 'gtkresources.h.d', command : [glib_compile_resources, '--generate-header', + '--internal', '--target=@OUTPUT@', '--dependency-file=@DEPFILE@', '--sourcedir=' + meson.current_source_dir(),