[gnote/meson] Add optional gspell dependency



commit 1d3982598213d8bbd265e196749f731428cdde52
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Mon Apr 5 14:29:35 2021 +0300

    Add optional gspell dependency

 meson.build | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/meson.build b/meson.build
index c9ad06e6..b57fd57d 100644
--- a/meson.build
+++ b/meson.build
@@ -20,6 +20,12 @@ dependencies = [
   dependency('uuid'),
 ]
 
+gspell = dependency('gspell-1', version: '>=1.6.0', required: false)
+if gspell.found()
+  dependencies = [dependencies, gspell]
+  add_project_arguments('-DENABLE_GSPELL=1', language: 'cpp')
+endif
+
 if get_option('buildtype').startswith('debug')
   add_project_arguments('-DDEBUG', language: 'cpp')
 endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]