Skip to content

Commit

Permalink
Add meson build option for keybinder
Browse files Browse the repository at this point in the history
This uses the feature type from meson >=0.47 to force enable/disbable
keybinder support (helpful for packaging)
  • Loading branch information
voyageur authored and phw committed Dec 11, 2021
1 parent 2c0bcd6 commit c159a83
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion BUILD_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ From inside the Peek source folder run:
### Debian package

#### Build requirements
- meson (>= 0.37.0)
- meson (>= 0.47.0)
- valac (>= 0.22)
- libgtk-3-dev (>= 3.20)
- libkeybinder-3.0-dev
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Support for more Wayland desktops might be added in the future (see FAQs below).
### Development

- Vala compiler >= 0.22
- Meson >= 0.37.0
- Meson >= 0.47.0
- Gettext (>= 0.19 for localized .desktop entry)
- txt2man (optional for building man page)

Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project('peek', ['c', 'vala'],
version: '1.5.1',
meson_version: '>= 0.37.0',
meson_version: '>= 0.47.0',
)

add_project_arguments([
Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
option('build-tests', type : 'boolean', value : true)
option('enable-keybinder', type : 'feature', value : 'auto')
option('enable-filechoosernative', type : 'boolean', value : false)
option('enable-gnome-shell', type : 'boolean', value : true)
option('enable-open-file-manager', type : 'boolean', value : true)
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ enable_open_file_manager = get_option('enable-open-file-manager')

# Dependencies
gtk = dependency('gtk+-3.0', version: '>= 3.20')
keybinder = dependency('keybinder-3.0', required: false)
keybinder = dependency('keybinder-3.0', required: get_option('enable-keybinder'))

peek_deps = [
dependency('cairo'),
Expand Down

0 comments on commit c159a83

Please sign in to comment.