meson.build

changeset 43186
f869ebb47d88
parent 43175
41ad34b9de13
child 43189
3f33bf2e4efc
--- a/meson.build	Wed Feb 19 01:52:06 2025 -0600
+++ b/meson.build	Fri Feb 21 00:03:24 2025 -0600
@@ -190,15 +190,36 @@
 endif
 
 #######################################################################
+# Documentation
+#######################################################################
+
+if get_option('doc') and not get_option('introspection')
+    error('Documentation requires GObject Introspection.')
+endif
+
+dependency(
+    'gi-docgen', version: '>= 2021.1',
+    fallback: ['gi-docgen', 'dummy_dep'],
+    required: get_option('doc')
+)
+
+gidocgen = find_program('gi-docgen', required : get_option('doc'))
+docs_dir = get_option('prefix') / get_option('datadir') / 'doc'
+
+#######################################################################
 # Check Pidgin dependencies
 #######################################################################
 if get_option('gtkui')
 	gtk = dependency('gtk4', version : '>= 4.10.0')
+
 	libadwaita = dependency('libadwaita-1', version : '>= 1.5')
 	add_project_arguments(
 		'-DADW_VERSION_MIN_REQUIRED=ADW_VERSION_1_5',
 		'-DADW_VERSION_MAX_ALLOWED=ADW_VERSION_1_5',
 		language: 'c')
+
+	libspelling = dependency('libspelling-1', version : '>= 0.4.0',
+	                         default_options : ['sysprof=false'])
 endif
 
 ENABLE_GTK = get_option('gtkui')
@@ -362,23 +383,6 @@
 hasl = dependency('hasl', version : '>= 0.4.0')
 
 #######################################################################
-# Documentation
-#######################################################################
-
-if get_option('doc') and not get_option('introspection')
-    error('Documentation requires GObject Introspection.')
-endif
-
-dependency(
-    'gi-docgen', version: '>= 2021.1',
-    fallback: ['gi-docgen', 'dummy_dep'],
-    required: get_option('doc')
-)
-
-gidocgen = find_program('gi-docgen', required : get_option('doc'))
-docs_dir = get_option('prefix') / get_option('datadir') / 'doc'
-
-#######################################################################
 # Random Stuff
 #######################################################################
 # So that purpleconfig.h may be found.

mercurial