Skip to content

Commit

Permalink
build: Make update_mime_database optional
Browse files Browse the repository at this point in the history
As it needs to be disabled for the installation process when building
distribution packages.
  • Loading branch information
hadess committed May 18, 2024
1 parent f1c5029 commit 03e1f92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ install_data(
install_dir: get_option('datadir') / 'mime/packages',
)

gnome.post_install(
update_mime_database: true
)
if get_option('update_mime_database')
gnome.post_install(
update_mime_database: true
)
endif
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
option('update_mime_database', type: 'boolean', value: true, description: 'Whether to run update-mime-database after installation')

0 comments on commit 03e1f92

Please sign in to comment.