Skip to content

Commit ba16f16

Browse files
committed
meson: add gdk-pixbuf and man-pages options
1 parent 08a5b30 commit ba16f16

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

meson.build

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ xkbcommon = dependency('xkbcommon')
4646
cairo = dependency('cairo')
4747
pango = dependency('pango')
4848
pangocairo = dependency('pangocairo')
49-
gdk_pixbuf = dependency('gdk-pixbuf-2.0', required: false)
49+
gdk_pixbuf = dependency('gdk-pixbuf-2.0', required: get_option('gdk-pixbuf'))
5050
pixman = dependency('pixman-1')
5151
libevdev = dependency('libevdev')
5252
libinput = dependency('libinput', version: '>=1.6.0')
@@ -80,8 +80,7 @@ if not systemd.found() and not elogind.found()
8080
warning('You must do this manually post-install: chmod a+s /path/to/sway')
8181
endif
8282

83-
scdoc = find_program('scdoc', required: false)
84-
83+
scdoc = find_program('scdoc', required: get_option('man-pages'))
8584
if scdoc.found()
8685
sh = find_program('sh')
8786
mandir = get_option('mandir')

meson_options.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ option('bash-completions', type: 'boolean', value: true, description: 'Install b
77
option('fish-completions', type: 'boolean', value: true, description: 'Install fish shell completions.')
88
option('xwayland', type: 'feature', value: 'auto', description: 'Enable support for X11 applications')
99
option('tray', type: 'feature', value: 'auto', description: 'Enable support for swaybar tray')
10+
option('gdk-pixbuf', type: 'feature', value: 'auto', description: 'Enable support for more image formats in swaybg')
11+
option('man-pages', type: 'feature', value: 'auto', description: 'Generate and install man pages')

0 commit comments

Comments
 (0)