Add Finch plugins to meson build. meson

Mon, 29 Aug 2016 03:27:27 -0400

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Mon, 29 Aug 2016 03:27:27 -0400
branch
meson
changeset 38470
c6e12d79611c
parent 38469
7e4faa3741ad
child 38471
a7ce1d49ac8c

Add Finch plugins to meson build.

This does not work exactly like the autotools build because it creates
a shared library for finch sources, but that's what's used on Windows,
so maybe that will be fine.

finch/meson.build file | annotate | diff | comparison | revisions
finch/plugins/meson.build file | annotate | diff | comparison | revisions
--- a/finch/meson.build	Mon Aug 29 02:32:05 2016 -0400
+++ b/finch/meson.build	Mon Aug 29 03:27:27 2016 -0400
@@ -57,7 +57,8 @@
 	install_headers(libfinch_headers, subdir : 'finch')
 
 	libfinch_inc = include_directories('.')
-	libfinch = static_library('finch',
+	# TODO: This doesn't quite match autotools' version.
+	libfinch = shared_library('finch',
 	    libfinch_SOURCES,
 	    c_args : '-DSTANDALONE',
 	    include_directories : [toplevel_inc],
@@ -162,4 +163,4 @@
 	endif
 endif  # ENABLE_GNT
 
-#subdir('plugins')
+subdir('plugins')
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/finch/plugins/meson.build	Mon Aug 29 03:27:27 2016 -0400
@@ -0,0 +1,31 @@
+if PLUGINS
+	gntclipboard = library('gntclipboard', 'gntclipboard.c',
+	    dependencies : [x11, libpurple_dep, libfinch_dep, glib],
+	    name_prefix : '',
+	    install : true, install_dir : FINCH_PLUGINDIR)
+
+	gntgf = library('gntgf', 'gntgf.c',
+	    dependencies : [x11, libpurple_dep, libfinch_dep, glib],
+	    name_prefix : '',
+	    install : true, install_dir : FINCH_PLUGINDIR)
+
+	gnthistory = library('gnthistory', 'gnthistory.c',
+	    dependencies : [libpurple_dep, libfinch_dep, glib],
+	    name_prefix : '',
+	    install : true, install_dir : FINCH_PLUGINDIR)
+
+	gntlastlog = library('gntlastlog', 'lastlog.c',
+	    dependencies : [libpurple_dep, libfinch_dep, glib],
+	    name_prefix : '',
+	    install : true, install_dir : FINCH_PLUGINDIR)
+
+	gnttinyurl = library('gnttinyurl', 'gnttinyurl.c',
+	    dependencies : [libpurple_dep, libfinch_dep, glib],
+	    name_prefix : '',
+	    install : true, install_dir : FINCH_PLUGINDIR)
+
+	grouping = library('grouping', 'grouping.c',
+	    dependencies : [libpurple_dep, libfinch_dep, glib],
+	    name_prefix : '',
+	    install : true, install_dir : FINCH_PLUGINDIR)
+endif  # PLUGINS

mercurial