libpurple/protocols/facebook/meson.build

branch
meson
changeset 38445
0e98f0dee5bd
child 38458
e665653856ab
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libpurple/protocols/facebook/meson.build	Mon Aug 22 03:38:13 2016 -0400
@@ -0,0 +1,39 @@
+FACEBOOKSOURCES = [
+	'api.c',
+	'api.h',
+	'data.c',
+	'data.h',
+	'facebook.h',
+	'facebook.c',
+	'http.c',
+	'http.h',
+	'id.h',
+	'json.c',
+	'json.h',
+	'mqtt.c',
+	'mqtt.h',
+	'thrift.c',
+	'thrift.h',
+	'util.c',
+	'util.h'
+]
+
+marshal_h = glib_genmarshal_h.process('marshal.list',
+                                      extra_args : ['--prefix=fb_marshal'])
+marshal_c = glib_genmarshal_c.process('marshal.list',
+                                      extra_args : ['--prefix=fb_marshal'])
+FACEBOOKSOURCES += [marshal_c, marshal_h]
+
+if STATIC_FACEBOOK
+	facebook_prpl = static_library('facebook', FACEBOOKSOURCES,
+	    include_directories : [toplevel_inc, libpurple_inc],
+	    c_args : '-DPURPLE_STATIC_PRPL',
+	    link_with : libpurple,
+	    dependencies : [json, gplugin, glib])
+elif DYNAMIC_FACEBOOK
+	facebook_prpl = shared_library('facebook', FACEBOOKSOURCES,
+	    include_directories : [toplevel_inc, libpurple_inc],
+	    link_with : libpurple,
+	    dependencies : [json, gplugin, glib],
+	    install : true, install_dir : PURPLE_PLUGINDIR)
+endif

mercurial