summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2018-02-27 13:42:28 -0500
committerPatrick Griffis <tingping@tingping.se>2018-02-27 13:42:28 -0500
commit971f46e1f292120322143d23201d8d377e225354 (patch)
treeb554bc7b4375e1428ae9adb01bbbc5cbb044eba9 /gdk
parentd2b5436462f1452ec283eb7d156813852fe359be (diff)
downloadgtk+-971f46e1f292120322143d23201d8d377e225354.tar.gz
build: Error if no backends enabled
Diffstat (limited to 'gdk')
-rw-r--r--gdk/meson.build4
1 files changed, 4 insertions, 0 deletions
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],