Desktop/icon files, rpm dist
This commit is contained in:
@@ -8,12 +8,46 @@ dependencies = [
|
||||
]
|
||||
|
||||
gnome = import('gnome')
|
||||
kp_prefix = get_option('prefix')
|
||||
datadir = join_paths(kp_prefix, get_option('datadir'))
|
||||
resources = gnome.compile_resources(
|
||||
'kordophone-resources',
|
||||
'resources/kordophone.gresource.xml',
|
||||
source_dir: 'resources'
|
||||
)
|
||||
|
||||
# Icons
|
||||
app_icon_dirs = [
|
||||
'16x16',
|
||||
'24x24',
|
||||
'32x32',
|
||||
'48x48',
|
||||
'256x256',
|
||||
'512x512',
|
||||
]
|
||||
|
||||
build_tools_dir = meson.source_root() / 'build-aux'
|
||||
|
||||
image_magick = find_program('magick', required : true)
|
||||
resizer = find_program(build_tools_dir / 'resize.py')
|
||||
icons = custom_target('icons',
|
||||
output: 'hicolor',
|
||||
input: 'resources/net.buzzert.kordophone.png',
|
||||
command: [resizer, image_magick, '@INPUT@', '@OUTPUT@'],
|
||||
install: true,
|
||||
install_dir: join_paths(datadir, 'icons'),
|
||||
)
|
||||
|
||||
# Full res icon for Desktop Entry
|
||||
install_data('resources/net.buzzert.kordophone.png',
|
||||
install_dir: join_paths(datadir, 'icons'),
|
||||
)
|
||||
|
||||
# Desktop
|
||||
install_data('resources/net.buzzert.kordophone.desktop',
|
||||
install_dir: join_paths(datadir, 'applications')
|
||||
)
|
||||
|
||||
sources = [
|
||||
'application/kordophone-application.vala',
|
||||
'application/main-window.vala',
|
||||
@@ -49,8 +83,9 @@ sources = [
|
||||
executable('kordophone',
|
||||
sources,
|
||||
resources,
|
||||
icons,
|
||||
dependencies : dependencies,
|
||||
vala_args: ['--pkg', 'posix'],
|
||||
link_args: ['-lm'],
|
||||
install : true
|
||||
)
|
||||
)
|
||||
|
||||
9
src/resources/net.buzzert.kordophone.desktop
Normal file
9
src/resources/net.buzzert.kordophone.desktop
Normal file
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Name=Kordophone
|
||||
Comment=Kordophone GTK Client
|
||||
Exec=kordophone
|
||||
Icon=net.buzzert.kordophone.png
|
||||
Terminal=false
|
||||
|
||||
BIN
src/resources/net.buzzert.kordophone.png
Normal file
BIN
src/resources/net.buzzert.kordophone.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 272 KiB |
Reference in New Issue
Block a user