build: Error if no backends enabled

This commit is contained in:
Patrick Griffis 2018-02-27 13:42:28 -05:00
parent d2b5436462
commit 971f46e1f2

View File

@ -204,6 +204,10 @@ foreach backend : ['broadway', 'quartz', 'wayland', 'win32', 'x11']
endif
endforeach
if gdk_backends.length() == 0
error('No backends enabled')
endif
# FIXME: might have to add '-xobjective-c' to c_args for quartz backend?
libgdk = static_library('gdk',
sources: [gdk_sources, gdk_backends_gen_headers, gdkconfig],