summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-01-03 15:40:46 +0100
committerLubomir Rintel <lkundrak@v3.sk>2018-01-03 15:40:46 +0100
commit18143142c24b6acc7c1d646f645c20bd22733e1c (patch)
tree4e5c1c67e55291a87f08bdfe63877bb0b4a5c728
parentacee7299d4b7ba327dae5b4380225509e59b0770 (diff)
downloadpidgin-18143142c24b6acc7c1d646f645c20bd22733e1c.tar.gz
finch/meson: fix build with -Dgtkui=false
$ meson build -Dgtkui=false ... Meson encountered an error in file finch/plugins/meson.build, line 2, column 1: Unknown variable "x11".
-rw-r--r--finch/plugins/meson.build18
1 files changed, 10 insertions, 8 deletions
diff --git a/finch/plugins/meson.build b/finch/plugins/meson.build
index 6984f302fa..b6364bbd05 100644
--- a/finch/plugins/meson.build
+++ b/finch/plugins/meson.build
@@ -1,13 +1,15 @@
if PLUGINS
- gntclipboard = library('gntclipboard', 'gntclipboard.c',
- dependencies : [x11, libpurple_dep, libfinch_dep, glib],
- name_prefix : '',
- install : true, install_dir : FINCH_PLUGINDIR)
+ if ENABLE_GTK
+ gntclipboard = library('gntclipboard', 'gntclipboard.c',
+ dependencies : [x11, libpurple_dep, libfinch_dep, glib],
+ name_prefix : '',
+ install : true, install_dir : FINCH_PLUGINDIR)
- gntgf = library('gntgf', 'gntgf.c',
- dependencies : [x11, libpurple_dep, libfinch_dep, glib],
- name_prefix : '',
- install : true, install_dir : FINCH_PLUGINDIR)
+ gntgf = library('gntgf', 'gntgf.c',
+ dependencies : [x11, libpurple_dep, libfinch_dep, glib],
+ name_prefix : '',
+ install : true, install_dir : FINCH_PLUGINDIR)
+ endif
gnthistory = library('gnthistory', 'gnthistory.c',
dependencies : [libpurple_dep, libfinch_dep, glib],