diff options
author | Thomas White <taw@physics.org> | 2019-05-13 22:18:22 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-05-16 15:15:49 +0200 |
commit | 001110d2174a38754ac6c52cce47fb63feb1b505 (patch) | |
tree | 466d8265b4b3aedebcbef9bdf0980728d665a9b6 /meson.build | |
parent | c5ecba35096aecd4a5ceeb065e9c77ca16463373 (diff) |
Add check for Oniguruma
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 9 |
1 files 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) |