libpurple/tests/meson.build

Thu, 01 Mar 2018 08:27:47 -0500

author
Shawn Napora <shawn@napora.me>
date
Thu, 01 Mar 2018 08:27:47 -0500
changeset 38934
5b861179cad9
parent 38860
4af13de1fee2
child 38935
4c5211ba7880
permissions
-rw-r--r--

Various build fixes:
* Included required libraries for functions used in various files
* Created dbus_codegen_dep in meson build to generate dbus_types.h and other files prior to using them
* Added dbus_codegen_dep where code depends on generated files
* Created package_revision_dep to build package_revision.h for gtkdialogs.c

38534
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
1 PROGS = [
38860
4af13de1fee2 Finish up the unit tests for the attention cleanup
Gary Kramlich <grim@reaperworld.com>
parents: 38848
diff changeset
2 'attention_type',
38534
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
3 'image',
38860
4af13de1fee2 Finish up the unit tests for the attention cleanup
Gary Kramlich <grim@reaperworld.com>
parents: 38848
diff changeset
4 'protocol_attention',
38829
2be373489ef1 Start of unit tests for the PurpleProtocolXferInterface
Gary Kramlich <grim@reaperworld.com>
parents: 38534
diff changeset
5 'protocol_xfer',
38534
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
6 'smiley',
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
7 'smiley_list',
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
8 'trie',
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
9 'util',
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
10 'xmlnode'
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
11 ]
38831
d260f3b61831 The start of a ui for unit testing
Gary Kramlich <grim@reaperworld.com>
parents: 38830
diff changeset
12
38832
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
13 test_ui = static_library(
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
14 'test-ui',
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
15 'test_ui.c',
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
16 'test_ui.h',
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
17 c_args: [
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
18 '-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir())
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
19 ],
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
20 dependencies: [libpurple_dep, glib, dbus, dbus_glib]
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
21 )
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
22
38534
28747a3cea35 Switch GnuTLS/NSS for Nettle in Meson build.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 38492
diff changeset
23 foreach prog : PROGS
38848
22e32372b906 Fix a few typos and cleanup some whitespace
Gary Kramlich <grim@reaperworld.com>
parents: 38832
diff changeset
24 e = executable('test_' + prog, 'test_@0@.c'.format(prog),
22e32372b906 Fix a few typos and cleanup some whitespace
Gary Kramlich <grim@reaperworld.com>
parents: 38832
diff changeset
25 c_args : [
22e32372b906 Fix a few typos and cleanup some whitespace
Gary Kramlich <grim@reaperworld.com>
parents: 38832
diff changeset
26 '-DTEST_DATA_DIR="@0@/data"'.format(meson.current_source_dir())
22e32372b906 Fix a few typos and cleanup some whitespace
Gary Kramlich <grim@reaperworld.com>
parents: 38832
diff changeset
27 ],
38934
5b861179cad9 Various build fixes:
Shawn Napora <shawn@napora.me>
parents: 38860
diff changeset
28 dependencies : [libpurple_dep, dbus_codegen_dep, glib, dbus, dbus_glib],
38832
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
29 link_with: test_ui,
7ad7854d8e60 Create a very basic ui for testing
Gary Kramlich <grim@reaperworld.com>
parents: 38831
diff changeset
30 )
38848
22e32372b906 Fix a few typos and cleanup some whitespace
Gary Kramlich <grim@reaperworld.com>
parents: 38832
diff changeset
31 test(prog, e)
38439
03f1a1642a68 Add meson build for libpurple only.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
32 endforeach

mercurial