Add -Ddesktop-files option

This commit is contained in:
dec05eba
2026-01-01 04:53:26 +01:00
parent 2bb6754523
commit 3713d3d59e
3 changed files with 8 additions and 7 deletions

View File

@@ -113,11 +113,13 @@ executable(
install_subdir('images', install_dir : gsr_ui_resources_path)
install_subdir('fonts', install_dir : gsr_ui_resources_path)
install_data(files('gpu-screen-recorder.desktop'), install_dir : join_paths(prefix, datadir, 'applications'))
install_subdir('icons/hicolor', install_dir : icons_path)
if get_option('desktop-files') == true
install_data(files('gpu-screen-recorder.desktop'), install_dir : join_paths(prefix, datadir, 'applications'))
install_subdir('icons/hicolor', install_dir : icons_path)
gnome = import('gnome')
gnome.post_install(update_desktop_database : true)
gnome = import('gnome')
gnome.post_install(update_desktop_database : true)
endif
if get_option('systemd') == true
install_data(files('extra/gpu-screen-recorder-ui.service'), install_dir : 'lib/systemd/user')