libpurple/protocols/irc/meson.build

Sun, 16 Jul 2017 18:55:56 -0500

author
Mike Ruprecht <cmaiku@gmail.com>
date
Sun, 16 Jul 2017 18:55:56 -0500
changeset 38603
df41d8da702d
parent 38458
e665653856ab
child 39404
dc8c71a301d0
permissions
-rw-r--r--

meson: Link ws2_32 to prpls which need it

Various prpls need to be linked to ws2_32 for htons() and friends.
The automake build achieves this by adding it to LIBADD. This patch
manually adds it to the prpls which need it.

IRCSOURCES = [
	'cmds.c',
	'dcc_send.c',
	'irc.c',
	'irc.h',
	'msgs.c',
	'parse.c'
]

if STATIC_IRC
	irc_prpl = static_library('irc', IRCSOURCES,
	    c_args : '-DPURPLE_STATIC_PRPL',
	    dependencies : [sasl, libpurple_dep, glib, gio, ws2_32])
elif DYNAMIC_IRC
	irc_prpl = shared_library('irc', IRCSOURCES,
	    dependencies : [sasl, libpurple_dep, glib, gio, ws2_32],
	    install : true, install_dir : PURPLE_PLUGINDIR)
endif

mercurial