libpurple/protocols/sametime/tests/meson.build

Sun, 31 Mar 2019 17:45:25 -0400

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Sun, 31 Mar 2019 17:45:25 -0400
changeset 39526
4f678f514b69
parent 39525
e1280f3aaea8
child 41493
06dcfb1cc1b2
permissions
-rw-r--r--

Switch to GMime for sametime.

This causes a few differences (as shown in the tests):

* MIME headers are in a slightly different order,
* MIME headers use `Camel-Case` instead of `lower-case`,
* `Content-Type` includes a `charset` parameter,
* An extra newline at the end of MIME parts was dropped,
* Filenames in attachment parts are no longer quoted,
* `Content-Disposition` and image base64 data are now wrapped,
* Unix newlines are sent consistently as DOS newlines (but correctly
parsed back to Unix).

foreach prog : ['im_mime']
	e = executable(
	    'test_sametime_' + prog, 'test_sametime_@0@.c'.format(prog),
	    link_with : [sametime_prpl],
	    dependencies : [libpurple_dep, gmime, glib])

	test('sametime_' + prog, e,
	    env : 'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()))
endforeach

mercurial