From e79cd09a277c93ed524fe40b230ab59aa07bd90e Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 12 Nov 2021 11:18:49 +0000 Subject: [PATCH] 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 452bf58..244dee1 100644 --- a/meson.build +++ b/meson.build @@ -124,6 +124,10 @@ gusb_deps = [ libjsonglib, ] +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')