Standardize all protocol header guard macros.
[pidgin-git.git] / libpurple / protocols / jabber / meson.build
blobc38957be2149a9d489c96dd11b2e5dd53dfa1e9b
1 #######################################################################
2 # Check for Internationalized Domain Name support
3 #######################################################################
5 if get_option('idn')
6         idn = dependency('libidn', version : '>= 0.0.0', required : force_deps)
7         use_idn = [ '-DUSE_IDN' ]
8 else
9         idn = []
10         use_idn = []
11 endif
13 JABBERSOURCES = [
14         'adhoccommands.c',
15         'adhoccommands.h',
16         'auth.c',
17         'auth.h',
18         'auth_digest_md5.c',
19         'auth_digest_md5.h',
20         'auth_plain.c',
21         'auth_scram.c',
22         'auth_scram.h',
23         'auth_webex.c',
24         'buddy.c',
25         'buddy.h',
26         'bosh.c',
27         'bosh.h',
28         'caps.c',
29         'caps.h',
30         'chat.c',
31         'chat.h',
32         'data.c',
33         'data.h',
34         'disco.c',
35         'disco.h',
36         'google/gmail.c',
37         'google/gmail.h',
38         'google/google.c',
39         'google/google.h',
40         'google/google_p2p.c',
41         'google/google_p2p.h',
42         'google/google_presence.c',
43         'google/google_presence.h',
44         'google/google_roster.c',
45         'google/google_roster.h',
46         'google/google_session.c',
47         'google/google_session.h',
48         'google/jingleinfo.c',
49         'google/jingleinfo.h',
50         'google/relay.c',
51         'google/relay.h',
52         'gtalk.c',
53         'gtalk.h',
54         'ibb.c',
55         'ibb.h',
56         'iq.c',
57         'iq.h',
58         'jabber.c',
59         'jabber.h',
60         'jingle/jingle.c',
61         'jingle/jingle.h',
62         'jingle/content.c',
63         'jingle/content.h',
64         'jingle/iceudp.c',
65         'jingle/iceudp.h',
66         'jingle/rawudp.c',
67         'jingle/rawudp.h',
68         'jingle/rtp.c',
69         'jingle/rtp.h',
70         'jingle/session.c',
71         'jingle/session.h',
72         'jingle/transport.c',
73         'jingle/transport.h',
74         'jutil.c',
75         'jutil.h',
76         'message.c',
77         'message.h',
78         'namespaces.h',
79         'oob.c',
80         'oob.h',
81         'parser.c',
82         'parser.h',
83         'pep.c',
84         'pep.h',
85         'ping.c',
86         'ping.h',
87         'presence.c',
88         'presence.h',
89         'roster.c',
90         'roster.h',
91         'si.c',
92         'si.h',
93         'useravatar.c',
94         'useravatar.h',
95         'usermood.c',
96         'usermood.h',
97         'usernick.c',
98         'usernick.h',
99         'usertune.c',
100         'usertune.h',
101         'xdata.c',
102         'xdata.h',
103         'xmpp.c',
104         'xmpp.h'
107 if enable_cyrus_sasl
108         JABBERSOURCES += ['auth_cyrus.c']
109 endif
111 if IS_WIN32
112         jabber_link_args = ['-Wl,--export-all-symbols']
113 else
114         jabber_link_args = []
115 endif
117 if DYNAMIC_JABBER
118         jabber_prpl = shared_library('jabber', JABBERSOURCES,
119             c_args : use_idn,
120             link_args : jabber_link_args,
121             dependencies : [gstreamer, idn, libxml, sasl, libpurple_dep, glib, gio, math, ws2_32],
122             install : true, install_dir : PURPLE_PLUGINDIR)
124         subdir('tests')
125 endif