From 1a8f8c6450a62d2377c3047826049fb7eeea9f33 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 12 Nov 2021 11:18:49 +0000 Subject: Show a build error for -Dvapi=true -Dintrospection=false --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 8bca5d2..89bf1c1 100644 --- a/meson.build +++ b/meson.build @@ -116,6 +116,10 @@ gusb_deps = [ libusb, ] +if not get_option('introspection') and get_option('vapi') + error('-Dvapi=true requires -Dintrospection=true') +endif + gnome = import('gnome') add_project_arguments('-DGUSB_COMPILATION', language: 'c') -- cgit v1.2.1