summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2021-11-12 11:18:49 +0000
committerRichard Hughes <richard@hughsie.com>2021-11-12 12:43:50 +0000
commit1a8f8c6450a62d2377c3047826049fb7eeea9f33 (patch)
tree559850cca6b58c1b66f361b8896173734845dccc
parent197fc9eb778791665f81b35a3817527cc4f0810c (diff)
downloadgusb-wip/hughsie/no-introspection2.tar.gz
Show a build error for -Dvapi=true -Dintrospection=falsewip/hughsie/no-introspection2
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
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')