| 179 '-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_80', |
179 '-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_80', |
| 180 '-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_80', |
180 '-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_80', |
| 181 language : 'c',) |
181 language : 'c',) |
| 182 |
182 |
| 183 ####################################################################### |
183 ####################################################################### |
| 184 # Check for gdk-pixbuf (required) |
|
| 185 ####################################################################### |
|
| 186 gdk_pixbuf = dependency('gdk-pixbuf-2.0', version : '>= 2.26.0') |
|
| 187 |
|
| 188 ####################################################################### |
|
| 189 # Check for GObject Introspection |
184 # Check for GObject Introspection |
| 190 ####################################################################### |
185 ####################################################################### |
| 191 if get_option('introspection') |
186 if get_option('introspection') |
| 192 enable_introspection = dependency('gobject-introspection-1.0', version : '>= 1.39.0').found() |
187 enable_introspection = dependency('gobject-introspection-1.0', version : '>= 1.39.0').found() |
| 193 else |
188 else |
| 207 endif |
202 endif |
| 208 |
203 |
| 209 ENABLE_GTK = get_option('gtkui') |
204 ENABLE_GTK = get_option('gtkui') |
| 210 |
205 |
| 211 ####################################################################### |
206 ####################################################################### |
| 212 # Check for LibXML2 (required) |
207 # Additional Dependencies |
| 213 ####################################################################### |
208 ####################################################################### |
| 214 libxml = dependency('libxml-2.0', version : '>= 2.6.0') |
209 birb_dep = dependency('birb', version : '>=0.3.1') |
| 215 if libxml.version().version_compare('<2.6.18') |
210 gdk_pixbuf = dependency('gdk-pixbuf-2.0', version : '>= 2.26.0') |
| 216 message('Versions of libxml2 < 2.6.18 may contain bugs that could cause XMPP messages to be discarded.') |
211 gstreamer = dependency('gstreamer-1.0', version : '>=1.14') |
| 217 endif |
212 gstreamer_app = dependency('gstreamer-app-1.0') |
| 218 |
|
| 219 ####################################################################### |
|
| 220 # Check for JSON-GLib (required) |
|
| 221 ####################################################################### |
|
| 222 |
|
| 223 json = dependency('json-glib-1.0', version : '>= 0.14.0') |
213 json = dependency('json-glib-1.0', version : '>= 0.14.0') |
| 224 |
|
| 225 ###################################################################### |
|
| 226 # Check for libsoup (required) |
|
| 227 ####################################################################### |
|
| 228 |
214 |
| 229 libsoup = dependency('libsoup-3.0', version : '>= 3') |
215 libsoup = dependency('libsoup-3.0', version : '>= 3') |
| 230 add_project_arguments( |
216 add_project_arguments( |
| 231 '-DSOUP_VERSION_MIN_REQUIRED=SOUP_VERSION_3_0', |
217 '-DSOUP_VERSION_MIN_REQUIRED=SOUP_VERSION_3_0', |
| 232 '-DSOUP_VERSION_MAX_ALLOWED=SOUP_VERSION_3_0', |
218 '-DSOUP_VERSION_MAX_ALLOWED=SOUP_VERSION_3_0', |
| 233 language : 'c') |
219 language : 'c') |
| 234 |
220 |
| 235 ####################################################################### |
221 libxml = dependency('libxml-2.0', version : '>= 2.6.0') |
| 236 # Check for sqlite3 (required) |
222 if libxml.version().version_compare('<2.6.18') |
| 237 ####################################################################### |
223 message('Versions of libxml2 < 2.6.18 may contain bugs that could cause XMPP messages to be discarded.') |
| |
224 endif |
| |
225 |
| |
226 seagull_dep = dependency('seagull', version : '>= 0.1.1') |
| 238 sqlite3 = dependency('sqlite3', version : '>= 3.27.0') |
227 sqlite3 = dependency('sqlite3', version : '>= 3.27.0') |
| 239 |
|
| 240 ####################################################################### |
|
| 241 # Check for GStreamer |
|
| 242 ####################################################################### |
|
| 243 |
|
| 244 gstreamer = dependency('gstreamer-1.0', version : '>=1.14') |
|
| 245 |
|
| 246 ####################################################################### |
|
| 247 # Check for Raw data streams support in Farstream |
|
| 248 ####################################################################### |
|
| 249 gstreamer_app = dependency('gstreamer-app-1.0') |
|
| 250 |
|
| 251 ####################################################################### |
|
| 252 # Check for birb glib utility library |
|
| 253 ####################################################################### |
|
| 254 birb_dep = dependency('birb', version : '>=0.3.1') |
|
| 255 |
|
| 256 ####################################################################### |
|
| 257 # Check for Xeme XMPP Library |
|
| 258 ####################################################################### |
|
| 259 xeme = dependency('xeme') |
228 xeme = dependency('xeme') |
| 260 |
229 |
| 261 dependency('shoes', required : false) |
230 dependency('shoes', required : false) |
| 262 |
231 |
| 263 DEFAULT_PRPLS = ['demo', 'ircv3', 'xmpp'] |
232 DEFAULT_PRPLS = ['demo', 'ircv3', 'xmpp'] |