Skip to content

Commit

Permalink
Make granite-demo optional (#676)
Browse files Browse the repository at this point in the history
We don't need demo in the Flatpak Platform for example,
so disabling demo when building for Flatpak should lessen its size
and make build time faster a little
  • Loading branch information
ryonakano authored Jan 9, 2024
1 parent 9a58858 commit 978d80f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,16 @@ i18n = import('i18n')

subdir('lib')
subdir('data')
subdir('demo')
subdir('po')

if get_option('documentation')
subdir('doc')
endif

if get_option('demo')
subdir('demo')
endif

# set up post-install script to refresh the GTK icon cache
meson.add_install_script(
join_paths(meson.current_source_dir(), 'meson', 'post_install.py'),
Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
option('documentation', type: 'boolean', value: false, description: 'generate documentation with gtk-doc and valadoc')
option('introspection', type: 'boolean', value: true, description: 'Whether to build introspection files')
option('demo', type: 'boolean', value: true, description: 'Whether to build granite-demo')

0 comments on commit 978d80f

Please sign in to comment.