diff options
author | Thomas White <taw@physics.org> | 2019-05-11 17:10:54 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-05-16 15:15:49 +0200 |
commit | 0850bc3f474333b6588d4dad6519a42f31ed45ba (patch) | |
tree | 83a0ee28c196a72e680c70d5a0729c5bb3e759a1 | |
parent | 4ffe4f0dd628ad062f762aafdb5938a8e20e80a9 (diff) |
Add GtkSpell bits
-rw-r--r-- | meson.build | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 2bce84d7..ff8d3fb1 100644 --- a/meson.build +++ b/meson.build @@ -19,6 +19,9 @@ glib = dependency('glib-2.0') gobject = dependency('gobject-2.0') gmodule = dependency('gmodule-2.0') openssl = dependency('openssl', required : false) +gtkspell = dependency('gtkspell-2.0', required : false) +aspell = dependency('aspell', required : false) +enchant = dependency('enchant', required : false) # Suppress some compiler warnings (for now) @@ -66,6 +69,14 @@ if openssl.found() add_project_arguments('-DUSE_SSL', language : 'c') endif +if enchant.found() + add_project_arguments('-DUSE_ENCHANT', language : 'c') +endif + +if gtkspell.found() and (aspell.found() or enchant.found()) + add_project_arguments('-DUSE_GTKSPELL', language : 'c') +endif + if compiler.has_header('sys/wait.h') conf_data.set('HAVE_SYS_WAIT_H', 1) endif @@ -313,5 +324,6 @@ executable('sylpheed', 'src/undo.c', 'src/update_check.c', 'src/vcard.c'], - dependencies : [gtk, glib, gobject, gmodule, libsylph_dep, openssl], + dependencies : [gtk, glib, gobject, gmodule, libsylph_dep, openssl, + gtkspell, aspell, enchant], install : true) |