summaryrefslogtreecommitdiff
blob: b31ee886eae6a692d97345cc8d6ad77ff0d5dcea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/meson_options.txt b/meson_options.txt
index 36fcfc969..cef10804d 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -13,6 +13,7 @@ option('channel',
 
 option('help', type: 'boolean', value: false)
 option('docs', type: 'boolean', value: false)
+option('vapi', type: 'boolean')
 
 option('network_tests', type: 'boolean', value: true, description: 'Allow networking in unit-tests')
 
diff --git a/src/meson.build b/src/meson.build
index bc7f91841..53d678297 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -124,6 +124,7 @@ configure_file(
            copy: true,
 )
 
+if get_option('vapi')
 libide_vapi = gnome.generate_vapi('libide-' + libide_api_version,
         sources: libide_gir[0],
         install: true,
@@ -141,3 +142,4 @@ libide_vapi = gnome.generate_vapi('libide-' + libide_api_version,
 
 # Must be after vapi generation
 subdir('plugins/vala-pack')
+endif