summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2022-01-04 17:41:34 +0000
committerSimon McVittie <smcv@debian.org>2022-01-04 18:08:22 +0000
commit17c2a1cb4ea2093d0aac442162295751ac6df2a5 (patch)
treef33314d16495293def4b73aea351e2f6aa349eab
parent7efd08ca2e7f4313db41a3cbe0627601bf871c4a (diff)
downloadgtk+-17c2a1cb4ea2093d0aac442162295751ac6df2a5.tar.gz
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 <smcv@debian.org>
-rw-r--r--gtk/meson.build3
1 files changed, 3 insertions, 0 deletions
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(),