From 001110d2174a38754ac6c52cce47fb63feb1b505 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 13 May 2019 22:18:22 +0200 Subject: Add check for Oniguruma --- meson.build | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 6303b872..2cab6cd9 100644 --- a/meson.build +++ b/meson.build @@ -22,6 +22,7 @@ openssl = dependency('openssl', required : false) gtkspell = dependency('gtkspell-2.0', required : false) aspell = dependency('aspell', required : false) enchant = dependency('enchant', required : false) +oniguruma = dependency('oniguruma', required : false) # Suppress some compiler warnings (for now) @@ -80,6 +81,10 @@ if gtkspell.found() and (aspell.found() or enchant.found()) add_project_arguments('-DUSE_GTKSPELL', language : 'c') endif +if oniguruma.found() + add_project_arguments('-DUSE_ONIGURUMA', language : 'c') +endif + if compiler.has_header('sys/wait.h') conf_data.set('HAVE_SYS_WAIT_H', 1) endif @@ -164,7 +169,7 @@ libsylph = library('sylph', 'libsylph/virtual.c', 'libsylph/xml.c'], include_directories : libsylph_includes, - dependencies : [glib, gobject, openssl], + dependencies : [glib, gobject, openssl, oniguruma], install : true) libsylph_dep = declare_dependency(include_directories : libsylph_includes, @@ -336,5 +341,5 @@ executable('sylpheed', 'src/vcard.c', version_h], dependencies : [gtk, glib, gobject, gmodule, libsylph_dep, openssl, - gtkspell, aspell, enchant], + gtkspell, aspell, enchant, oniguruma], install : true) -- cgit v1.2.3