Skip to content

Commit

Permalink
gnome-shell/meson: add xml-stripblanks pre-process for svg icons
Browse files Browse the repository at this point in the history
  • Loading branch information
3v1n0 committed Mar 22, 2024
1 parent 46422a1 commit d76801a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gnome-shell/src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ if gnomeshell_use_gresource

foreach gfile: theme_gresource_files
filepath = '@0@'.format(gfile)
preprocess = ''
alias = filepath[0] == '/' ? '@0@'.format(gfile).split('/')[-1] : filepath
if alias == 'gnome-shell@[email protected]'.format(DEFAULT_GDM_VARIANT != '' ? '-' + DEFAULT_GDM_VARIANT : '')
# Use Yaru files for ubuntu's special gdm
Expand All @@ -282,7 +283,11 @@ if gnomeshell_use_gresource
alias = 'Yaru' / alias
endif

theme_gresource_files_xml += '<file alias="@0@">@1@</file>'.format(alias, gfile)
if alias.endswith('.svg')
preprocess = 'xml-stripblanks'
endif

theme_gresource_files_xml += '<file preprocess="@2@" alias="@0@">@1@</file>'.format(alias, gfile, preprocess)
endforeach

gnome.compile_resources(
Expand Down

0 comments on commit d76801a

Please sign in to comment.