libpurple/protocols/jabber/meson.build

changeset 39292
c286932bbbd8
parent 39069
e1aa1c343db4
child 39404
dc8c71a301d0
equal deleted inserted replaced
39291:9d253537d927 39292:c286932bbbd8
1 #######################################################################
2 # Check for Internationalized Domain Name support
3 #######################################################################
4
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
12
1 JABBERSOURCES = [ 13 JABBERSOURCES = [
2 'adhoccommands.c', 14 'adhoccommands.c',
3 'adhoccommands.h', 15 'adhoccommands.h',
4 'auth.c', 16 'auth.c',
5 'auth.h', 17 'auth.h',
102 jabber_link_args = [] 114 jabber_link_args = []
103 endif 115 endif
104 116
105 if STATIC_JABBER 117 if STATIC_JABBER
106 jabber_prpl = static_library('jabber', JABBERSOURCES, 118 jabber_prpl = static_library('jabber', JABBERSOURCES,
107 c_args : '-DPURPLE_STATIC_PRPL', 119 c_args : ['-DPURPLE_STATIC_PRPL', use_idn],
108 link_args : jabber_link_args, 120 link_args : jabber_link_args,
109 dependencies : [gstreamer, idn, libxml, sasl, libpurple_dep, glib, gio, math, ws2_32]) 121 dependencies : [gstreamer, idn, libxml, sasl, libpurple_dep, glib, gio, math, ws2_32])
110 elif DYNAMIC_JABBER 122 elif DYNAMIC_JABBER
111 jabber_prpl = shared_library('jabber', JABBERSOURCES, 123 jabber_prpl = shared_library('jabber', JABBERSOURCES,
124 c_args : use_idn,
112 link_args : jabber_link_args, 125 link_args : jabber_link_args,
113 dependencies : [gstreamer, idn, libxml, sasl, libpurple_dep, glib, gio, math, ws2_32], 126 dependencies : [gstreamer, idn, libxml, sasl, libpurple_dep, glib, gio, math, ws2_32],
114 install : true, install_dir : PURPLE_PLUGINDIR) 127 install : true, install_dir : PURPLE_PLUGINDIR)
115 endif 128 endif
116 129

mercurial