build: Tell glib-compile-resources to make symbols internal where possible
authorSimon McVittie <smcv@debian.org>
Tue, 4 Jan 2022 17:41:34 +0000 (17:41 +0000)
committerSimon McVittie <smcv@debian.org>
Tue, 4 Jan 2022 18:08:22 +0000 (18:08 +0000)
Partial solution to https://gitlab.gnome.org/GNOME/gtk/-/issues/4598

Signed-off-by: Simon McVittie <smcv@debian.org>
gtk/meson.build

index 6ce2c18320d701cfd7d1483f01cc1e20fc7b4be3..201af63f2399e5f40f96f4a1d39cecd39d4df89e 100644 (file)
@@ -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(),