From c2f67c9c1e88d9614bf5a6a42a5ffb65204abacb Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 21 Nov 2022 03:25:33 +0200 Subject: [PATCH 17/17] Meson: Install .desktop files See osdn #45870 Signed-off-by: Marko Lindqvist --- meson.build | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/meson.build b/meson.build index e14dc43851..0b4af5be1c 100644 --- a/meson.build +++ b/meson.build @@ -1021,6 +1021,11 @@ install_data( install_dir : join_paths(get_option('datadir'), 'freeciv/ruledit') ) +install_data( + 'bootstrap/org.freeciv.server.desktop', + install_dir : join_paths(get_option('prefix'), 'share/applications') + ) + nations = [ 'abkhaz', 'aborigines', @@ -2705,6 +2710,11 @@ install_data('data/themes/gtk3.22/Freeciv/gtk-3.0/gtk.css', install_dir : join_paths(get_option('datadir'), 'freeciv/themes/gtk3.22/Freeciv/gtk-3.0')) +install_data( + 'bootstrap/org.freeciv.gtk322.desktop', + install_dir : join_paths(get_option('prefix'), 'share/applications') + ) + endif if get_option('clients').contains('gtk4') @@ -2779,6 +2789,11 @@ install_data('data/themes/gtk4/Freeciv/gtk-4.0/gtk.css', install_dir : join_paths(get_option('datadir'), 'freeciv/themes/gtk4/Freeciv/gtk-4.0')) +install_data( + 'bootstrap/org.freeciv.gtk4.desktop', + install_dir : join_paths(get_option('prefix'), 'share/applications') + ) + endif if get_option('qtver') == 'qt6' @@ -3020,6 +3035,11 @@ install_data( install_dir : join_paths(get_option('datadir'), 'freeciv/themes/gui-qt/System')) +install_data( + 'bootstrap/org.freeciv.qt.desktop', + install_dir : join_paths(get_option('prefix'), 'share/applications') + ) + endif if get_option('clients').contains('sdl2') @@ -3124,6 +3144,11 @@ install_data('data/themes/gui-sdl2/human/backgrounds.themespec', install_dir : join_paths(get_option('datadir'), 'freeciv/themes/gui-sdl2/human')) +install_data( + 'bootstrap/org.freeciv.sdl2.desktop', + install_dir : join_paths(get_option('prefix'), 'share/applications') + ) + endif if get_option('clients').contains('stub') @@ -3209,6 +3234,11 @@ executable('freeciv-mp-gtk3', install: true ) +install_data( + 'bootstrap/org.freeciv.mp.gtk3.desktop', + install_dir : join_paths(get_option('prefix'), 'share/applications') + ) + endif @@ -3231,6 +3261,11 @@ executable('freeciv-mp-gtk4', install: true ) +install_data( + 'bootstrap/org.freeciv.mp.gtk4.desktop', + install_dir : join_paths(get_option('prefix'), 'share/applications') + ) + endif if get_option('fcmp').contains('qt') @@ -3260,6 +3295,11 @@ executable('freeciv-mp-qt', install: true ) +install_data( + 'bootstrap/org.freeciv.mp.qt.desktop', + install_dir : join_paths(get_option('prefix'), 'share/applications') + ) + endif if get_option('fcmp').contains('cli') @@ -3360,6 +3400,11 @@ install_data( install_dir : join_paths(get_option('datadir'), 'freeciv') ) +install_data( + 'bootstrap/org.freeciv.ruledit.desktop', + install_dir : join_paths(get_option('prefix'), 'share/applications') + ) + endif executable('freeciv-manual', -- 2.35.1