6 'gtkblist-theme-loader.c',
7 'gtkcellrendererexpander.c',
14 'gtkicon-theme-loader.c',
28 'gtksmiley-manager.c',
31 'gtkstatus-icon-theme.c',
40 'pidginaccountchooser.c',
41 'pidgincontactcompletion.c',
43 'pidgindebugplugininfo.c',
45 'pidgininvitedialog.c',
56 'gtkblist-theme-loader.h',
57 'gtkcellrendererexpander.h',
65 'gtkicon-theme-loader.h',
80 'gtksmiley-manager.h',
83 'gtkstatus-icon-theme.h',
92 'pidginaccountchooser.h',
93 'pidgincontactcompletion.h',
95 'pidgindebugplugininfo.h',
98 'pidgininvitedialog.h',
110 pidgin_resource = gnome.compile_resources('pidginresources',
111 'resources/pidgin.gresource.xml',
112 source_dir : 'resources',
114 libpidgin_SOURCES += pidgin_resource
117 libpidgin_SOURCES += [
119 'win32/gtkwin32dep.c',
123 # Files that looks like obsolete (were used in Pidgin2):
124 # win32/gtkdocklet-win32.c
125 # win32/MinimizeToTray.c
126 # win32/MinimizeToTray.h
128 pidgin_exe_rc = configure_file(
129 input : 'win32/pidgin_exe_rc.rc.in',
130 output : 'pidgin_exe_rc.rc',
131 configuration : version_conf)
134 windows.compile_resources(pidgin_exe_rc,
135 include_directories : include_directories('win32')
139 libpidgin_headers += [
140 'win32/gtkwin32dep.h',
148 pidgin_dll_rc = configure_file(
149 input : 'win32/pidgin_dll_rc.rc.in',
150 output : 'pidgin_dll_rc.rc',
151 configuration : version_conf)
152 libpidgin_SOURCES += windows.compile_resources(pidgin_dll_rc,
153 include_directories : include_directories('win32')
157 install_headers(libpidgin_headers, subdir : 'pidgin-3')
159 libpidgin_inc = include_directories('.')
160 libpidgin = shared_library('pidgin3',
163 include_directories : [toplevel_inc],
164 version : PURPLE_LIB_VERSION,
177 libpidgin_dep = declare_dependency(
178 include_directories : [toplevel_inc, libpidgin_inc],
179 link_with : libpidgin,
180 dependencies : [gtk, glib, math])
182 pidgin = executable('pidgin3',
184 include_directories : toplevel_inc,
185 dependencies : IS_WIN32 ? [] : [libpurple_dep, libpidgin_dep],
190 # libpidgin_la_LIBADD += -lwinmm
191 # pidgin_LDFLAGS += -mwindows
196 description : 'Pidgin is a GTK3-based instant messenger application.',
197 version : meson.project_version(),
198 filebase : 'pidgin-3',
199 subdirs : 'pidgin-3',
200 libraries : [libpidgin],
201 requires : ['gtk+-3.0', 'purple-3', 'talkatu'],
202 variables : ['plugindir=${libdir}/pidgin-@0@'.format(purple_major_version)])
205 DESKTOP_FILE = 'im.pidgin.Pidgin3.desktop'
206 desktop_file_in = configure_file(
207 input : 'data/' + DESKTOP_FILE + '.in.in',
208 output : DESKTOP_FILE + '.in',
209 configuration : conf)
210 desktop_file = i18n.merge_file(
211 input : desktop_file_in,
212 output : DESKTOP_FILE,
213 po_dir : meson.source_root() + '/po',
216 install_dir : get_option('datadir') + '/applications')
218 appdata = i18n.merge_file(
219 input : 'data/im.pidgin.Pidgin3.appdata.xml.in',
220 output : 'im.pidgin.Pidgin3.appdata.xml',
221 po_dir : meson.source_root() + '/po',
223 install_dir : get_option('datadir') + '/metainfo')
226 if enable_introspection
227 introspection_sources = libpidgin_headers
229 gnome.generate_gir(libpidgin,
230 sources : introspection_sources,
231 includes : ['GObject-2.0', 'Gtk-3.0', libpurple_gir[0], talkatu_gir, gplugin_gir],
232 namespace : 'Pidgin',
233 symbol_prefix : 'pidgin',
234 identifier_prefix : 'Pidgin',
235 export_packages : 'pidgin-@0@'.format(purple_major_version),
236 nsversion : '@0@.@1@'.format(purple_major_version,
237 purple_minor_version),
238 include_directories : [
239 gplugin_include_directories,
240 talkatu_include_directories,
243 extra_args : ['--quiet'])