pidgin/plugins/meson.build

Mon, 18 Jan 2021 18:00:51 -0600

author
Arkadiy Illarionov <qarkai@gmail.com>
date
Mon, 18 Jan 2021 18:00:51 -0600
changeset 40715
206563c8b5c6
parent 40669
48dfed6f4f1f
child 40994
1eb6d260980d
permissions
-rw-r--r--

zephyr_tzc_escape_msg and zephyr_tzc_deescape_str refactoring

* Move declarations before implementations. Also slightly change `local_zephyr_normalize` signature
* Early return from functions
* Get `strlen(message)` once
* Convert `while` to `for`
* Simplify escaping
* Remove nulling of last char since `newmsg` already initialized to 0's

Testing Done:
Compile.

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

subdir('disco')
subdir('gestures')
subdir('xmppconsole')

if PLUGINS
	gtkbuddynote = library('gtkbuddynote', 'gtkbuddynote.c',
	    dependencies : [libpurple_dep, libpidgin_dep, glib],
	    name_prefix : '',
	    install : true, install_dir : PIDGIN_PLUGINDIR)

	iconaway = library('iconaway', 'iconaway.c',
	    dependencies : [libpurple_dep, libpidgin_dep, glib],
	    name_prefix : '',
	    install : true, install_dir : PIDGIN_PLUGINDIR)

	notify = library('notify', 'notify.c',
	    dependencies : [libpurple_dep, libpidgin_dep, glib],
	    name_prefix : '',
	    build_by_default: false,
	    install : false, install_dir : PIDGIN_PLUGINDIR)

	relnot = library('relnot', 'relnot.c',
	    dependencies : [libpurple_dep, libpidgin_dep, libsoup, glib],
	    name_prefix : '',
	    install : true, install_dir : PIDGIN_PLUGINDIR)

	spellchk = library('spellchk', 'spellchk.c',
	    dependencies : [libpurple_dep, libpidgin_dep, glib],
	    name_prefix : '',
	    build_by_default: false,
	    install : false, install_dir : PIDGIN_PLUGINDIR)

	if IS_WIN32
		transparency = library('transparency', 'transparency.c',
			dependencies : [libpurple_dep, libpidgin_dep, glib],
			name_prefix : '',
			build_by_default : false,
			install : false, install_dir : PIDGIN_PLUGINDIR)
	endif

	if enable_unity
		unity = library('unity', 'unity.c',
		    dependencies : [UNITY, libpurple_dep, libpidgin_dep, glib],
		    name_prefix : '',
		    install : true, install_dir : PIDGIN_PLUGINDIR)
	endif

endif # PLUGINS

mercurial