plug-ins: enable screenshot for non x11 targets in meson build.

This also removes screenshot as an option for the meson build
since the autotools build doesn't have that option either.
This commit is contained in:
Jacob Boerema 2020-07-31 09:46:17 -04:00 committed by Jehan
parent 9b55f82579
commit 248d2e95b8
3 changed files with 1 additions and 12 deletions

View file

@ -619,14 +619,6 @@ have_print = get_option('print')
have_doc_shooter= x11_target
if get_option('screenshot').disabled()
have_screenshot = false
elif get_option('screenshot').enabled() and not x11_target
error('Printing requires x libs')
else
have_screenshot = x11_target
endif
################################################################################
# Plugins (optional dependencies)

View file

@ -43,7 +43,6 @@ option('mng', type: 'feature', value: 'auto', description: 'Mng su
option('openexr', type: 'feature', value: 'auto', description: 'Openexr support')
option('png', type: 'feature', value: 'auto', description: 'PNG support')
option('print', type: 'boolean', value: true, description: 'Print support')
option('screenshot', type: 'feature', value: 'auto', description: 'Screensh')
option('tiff', type: 'feature', value: 'auto', description: 'TIFF support')
option('vala-plugins', type: 'feature', value: 'auto', description: 'Build VAPI and Vala plugins')
option('webkit', type: 'feature', value: 'auto', description: 'Help browser and webpage plugins')

View file

@ -1,4 +1,4 @@
if have_screenshot
plugin_name = 'screenshot'
plugin_sources = [
'screenshot-freedesktop.c',
@ -24,5 +24,3 @@ screenshot = executable('screenshot',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name,
)
endif