Mon, 22 Aug 2016 04:07:00 -0400
Add irc to meson build.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libpurple/protocols/irc/meson.build Mon Aug 22 04:07:00 2016 -0400 @@ -0,0 +1,22 @@ +IRCSOURCES = [ + 'cmds.c', + 'dcc_send.c', + 'irc.c', + 'irc.h', + 'msgs.c', + 'parse.c' +] + +if STATIC_IRC + irc_prpl = static_library('irc', IRCSOURCES, + include_directories : [toplevel_inc, libpurple_inc], + c_args : '-DPURPLE_STATIC_PRPL', + link_with : libpurple, + dependencies : [sasl, gplugin, glib, gio]) +elif DYNAMIC_IRC + irc_prpl = shared_library('irc', IRCSOURCES, + include_directories : [toplevel_inc, libpurple_inc], + link_with : libpurple, + dependencies : [sasl, gplugin, glib, gio], + install : true, install_dir : PURPLE_PLUGINDIR) +endif
--- a/libpurple/protocols/meson.build Mon Aug 22 03:58:14 2016 -0400 +++ b/libpurple/protocols/meson.build Mon Aug 22 04:07:00 2016 -0400 @@ -1,7 +1,7 @@ subdir('bonjour') subdir('facebook') subdir('gg') -#subdir('irc') +subdir('irc') #subdir('jabber') #subdir('msn') #subdir('mxit')
--- a/meson.build Mon Aug 22 03:58:14 2016 -0400 +++ b/meson.build Mon Aug 22 04:07:00 2016 -0400 @@ -1692,7 +1692,7 @@ if compiler.has_function('sasl_client_init', args : '-lsasl2') USE_CYRUS_SASL = true conf.set('HAVE_CYRUS_SASL', true) - SASL_LIBS = '-lsasl2' + sasl = declare_dependency(link_args : '-lsasl2') else USE_CYRUS_SASL = false error('Cyrus SASL library not found') @@ -1700,6 +1700,9 @@ else USE_CYRUS_SASL = false endif +if not USE_CYRUS_SASL + sasl = declare_dependency() +endif ####################################################################### # Check for Kerberos (for Zephyr)