From 971f46e1f292120322143d23201d8d377e225354 Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Tue, 27 Feb 2018 13:42:28 -0500 Subject: build: Error if no backends enabled --- gdk/meson.build | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdk') diff --git a/gdk/meson.build b/gdk/meson.build index 267f53fd27..466e11ff41 100644 --- a/gdk/meson.build +++ b/gdk/meson.build @@ -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], -- cgit v1.2.1