libpurple/protocols/zephyr/meson.build

Mon, 23 Nov 2020 01:41:50 -0600

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Mon, 23 Nov 2020 01:41:50 -0600
changeset 40624
6f7bbd42d36c
parent 40165
6bb197792c6d
child 40681
675b8605dca2
permissions
-rw-r--r--

Delete a bunch of unused zephyr stuff

* Remove unused `ZSetFD`.
* Remove `__HM_set` which is never read.
* Remove `__Zephyr_open` global, which is redundant with `__Zephyr_fd != -1`.
* Remove `ZSetSrv.c`, as `ZSetServerState` is never called.
Consequently, remove `__Zephyr_server` global and all things that check it as it will never be TRUE.
* Remove zephyr internal debug code, as `ZSetDebug` is never called.
Also, make a couple debug messages go to libpurple.
* Remove unused `ZNewLocateUser` compatibility macro.

Testing Done:
Compile only.

Reviewed at https://reviews.imfreedom.org/r/249/

ZEPHYRSOURCES = [
	'ZAsyncLocate.c',
	'ZCkAuth.c',
	'ZCkIfNot.c',
	'ZClosePort.c',
	'ZCmpUID.c',
	'ZCmpUIDP.c',
	'ZFlsLocs.c',
	'ZFlsSubs.c',
	'ZFmtAuth.c',
	'ZFmtList.c',
	'ZFmtNotice.c',
	'ZFmtRaw.c',
	'ZFmtRawLst.c',
	'ZFmtSmRaw.c',
	'ZFreeNot.c',
	'ZGetLocs.c',
	'ZGetSender.c',
	'ZGetSubs.c',
	'ZGetWGPort.c',
	'ZIfNotice.c',
	'ZInit.c',
	'ZLocations.c',
	'ZMakeAscii.c',
	'ZMkAuth.c',
	'ZNewLocU.c',
	'ZOpenPort.c',
	'ZParseNot.c',
	'ZPeekNot.c',
	'ZPeekPkt.c',
	'ZPending.c',
	'ZReadAscii.c',
	'ZRecvNot.c',
	'ZRecvPkt.c',
	'ZRetSubs.c',
	'ZSendList.c',
	'ZSendNot.c',
	'ZSendPkt.c',
	'ZSetDest.c',
	'ZSubs.c',
	'ZVariables.c',
	'ZWait4Not.c',
	'ZhmStat.c',
	'Zinternal.c',
	'internal.h',
	'mit-copyright.h',
	'mit-sipb-copyright.h',
	'sysdep.h',
	'zephyr_err.h',
	'zephyr_internal.h',
	'zephyr.c',
	'zephyr.h'
]

ZEPHYRSOURCESEXT = ['zephyr.c', 'zephyr.h']

extdep = krb4
if EXTERNAL_LIBZEPHYR
	ZEPHYRSOURCES = ZEPHYRSOURCESEXT
	extdep = ext_zephyr
endif

if DYNAMIC_ZEPHYR
	zephyr_prpl = shared_library('zephyr', ZEPHYRSOURCES,
	    c_args : '-Dlint',
	    dependencies : [extdep, libpurple_dep, glib],
	    install : true, install_dir : PURPLE_PLUGINDIR)
endif

mercurial