mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: use app-id to determine installed icon
This means we don't install org.gnome.Sysprof.svg anymore when building with -Ddevelopment=true (and vice versa). We do use org.gnome.Sysprof.svg from libsysprof-ui, but that embeds the appropriate resources.
This commit is contained in:
7
data/icons/meson.build
Normal file
7
data/icons/meson.build
Normal file
@ -0,0 +1,7 @@
|
||||
icondir = join_paths(datadir, 'icons/hicolor')
|
||||
|
||||
foreach kind: ['scalable', 'symbolic']
|
||||
install_subdir(kind, install_dir: icondir)
|
||||
endforeach
|
||||
|
||||
install_data('@0@.svg'.format(app_id), install_dir: join_paths(icondir, 'scalable/apps'))
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
@ -30,11 +30,5 @@ if get_option('gtk') and get_option('libsysprof')
|
||||
install_dir: join_paths(datadir, 'applications')
|
||||
)
|
||||
|
||||
icon_sizes = ['scalable', 'symbolic']
|
||||
foreach size: icon_sizes
|
||||
install_subdir('icons/' + size,
|
||||
install_dir: join_paths(datadir, 'icons/hicolor')
|
||||
)
|
||||
endforeach
|
||||
|
||||
subdir('icons')
|
||||
endif
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<file compressed="true">css/SysprofDisplay-shared.css</file>
|
||||
|
||||
<!-- Application icons -->
|
||||
<file alias="icons/scalable/apps/org.gnome.Sysprof.svg">../../data/icons/scalable/apps/org.gnome.Sysprof.svg</file>
|
||||
<file alias="icons/scalable/apps/org.gnome.Sysprof.svg">../../data/icons/org.gnome.Sysprof.svg</file>
|
||||
<file alias="icons/scalable/apps/org.gnome.Sysprof-symbolic.svg">../../data/icons/symbolic/apps/org.gnome.Sysprof-symbolic.svg</file>
|
||||
<file alias="icons/symbolic/apps/org.gnome.Sysprof-symbolic.svg">../../data/icons/symbolic/apps/org.gnome.Sysprof-symbolic.svg</file>
|
||||
</gresource>
|
||||
|
||||
Reference in New Issue
Block a user