Skip to content

Commit

Permalink
Add build option to check for runtime dependencies (default)
Browse files Browse the repository at this point in the history
This is to aid packagers/developers where there are apps
that are needed to successfully run budgie-desktop.
For the final packaging, distros can switch off this check
to speed up build-time i.e. limit the number of additional
dependencies these packages would bring in.
  • Loading branch information
fossfreedom committed Jan 4, 2025
1 parent f8d9d4f commit f059394
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ dep_upower = dependency('upower-glib', version: '>= 0.99.8')
# Create config.h
cdata = configuration_data()

if get_option('with-runtime-dependencies')
find_program('wlopm', required: true)
find_program('swayidle', required: true)
found_gtklock = find_program('gtklock', required: false)
if found_gtklock.found() == false
find_program('swaylock', required: true)
endif
endif

# Inspired by https://github.com/GNOME/recipes/blob/master/meson.build
package_version = meson.project_version()

Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ option('with-libuuid-time-safe', type: 'boolean', value: true, description: 'Ena
option('with-polkit', type: 'boolean', value: true, description: 'Enable PolKit support')
option('with-stateless', type: 'boolean', value: false, description: 'Enable stateless XDG paths')
option('xdg-appdir', type: 'string', description: 'XDG autostart path')
option('with-runtime-dependencies', type: 'boolean', value: true, description: 'Check during build for critical runtime dependencies')

0 comments on commit f059394

Please sign in to comment.