diff options
author | Jens Georg <jensg@openismus.com> | 2013-04-23 14:59:39 +0200 |
---|---|---|
committer | Jens Georg <jensg@openismus.com> | 2013-04-30 12:32:05 +0200 |
commit | a68c54abc946e60c70514299a071090ad408bff0 (patch) | |
tree | f26f75e2299c8078374627fb3af4a633d5484123 /examples | |
parent | bbf80265552d16468bb814a8d576815fcafcf96c (diff) | |
download | rygel-a68c54abc946e60c70514299a071090ad408bff0.tar.gz |
all: Add sidecar file support for plugins
Install a .plugin file with each plugin that provides some meta-information
about the plugin, allowing us to not load the module if the user has disabled
it instead blindly loading each .so we come across and let the module check
whether it's enabled or not
https://bugzilla.gnome.org/show_bug.cgi?id=693658
Diffstat (limited to 'examples')
8 files changed, 39 insertions, 0 deletions
diff --git a/examples/renderer-plugins/C/Makefile.am b/examples/renderer-plugins/C/Makefile.am index f77c225a..b952bc84 100644 --- a/examples/renderer-plugins/C/Makefile.am +++ b/examples/renderer-plugins/C/Makefile.am @@ -1,6 +1,7 @@ include $(top_srcdir)/common.am plugin_LTLIBRARIES = librygel-example-renderer-plugin-c.la +plugin_DATA = example-renderer-c.plugin librygel_example_renderer_plugin_c_la_SOURCES = \ example-renderer-plugin.h \ @@ -21,3 +22,4 @@ librygel_example_renderer_plugin_c_la_LIBADD = \ librygel_example_renderer_plugin_c_la_LDFLAGS = \ $(RYGEL_PLUGIN_LINKER_FLAGS) +EXTRA_DIST = example-renderer-c.plugin.in diff --git a/examples/renderer-plugins/C/example-renderer-c.plugin.in b/examples/renderer-plugins/C/example-renderer-c.plugin.in new file mode 100644 index 00000000..f629bf56 --- /dev/null +++ b/examples/renderer-plugins/C/example-renderer-c.plugin.in @@ -0,0 +1,7 @@ +[Plugin] +Version = @VERSION@ +Module = example-renderer-plugin-c +Name = ExampleRendererPluginC +License = LGPL +Description = Example of implementing a renderer plug-in in C +Copyright = Copyright © Intel Corporation diff --git a/examples/renderer-plugins/vala/Makefile.am b/examples/renderer-plugins/vala/Makefile.am index 2aa2b8df..a9e9090d 100644 --- a/examples/renderer-plugins/vala/Makefile.am +++ b/examples/renderer-plugins/vala/Makefile.am @@ -1,6 +1,7 @@ include $(top_srcdir)/common.am plugin_LTLIBRARIES = librygel-example-renderer-plugin-vala.la +plugin_DATA = example-renderer-vala.plugin librygel_example_renderer_plugin_vala_la_SOURCES = \ example-renderer-plugin-vala.vala \ @@ -20,3 +21,5 @@ librygel_example_renderer_plugin_vala_la_LIBADD = \ librygel_example_renderer_plugin_vala_la_LDFLAGS = \ $(RYGEL_PLUGIN_LINKER_FLAGS) + +EXTRA_DIST = example-renderer-vala.plugin.in diff --git a/examples/renderer-plugins/vala/example-renderer-vala.plugin.in b/examples/renderer-plugins/vala/example-renderer-vala.plugin.in new file mode 100644 index 00000000..cb9c8889 --- /dev/null +++ b/examples/renderer-plugins/vala/example-renderer-vala.plugin.in @@ -0,0 +1,7 @@ +[Plugin] +Version = @VERSION@ +Module = example-renderer-plugin-vala +Name = ExampleRendererPluginVala +License = LGPL +Description = Example of implementing a renderer plug-in in Vala +Copyright = Copyright © Intel Corporation diff --git a/examples/server-plugins/C/Makefile.am b/examples/server-plugins/C/Makefile.am index f9230f78..8312f2bf 100644 --- a/examples/server-plugins/C/Makefile.am +++ b/examples/server-plugins/C/Makefile.am @@ -1,6 +1,7 @@ include $(top_srcdir)/common.am plugin_LTLIBRARIES = librygel-example-server-plugin-c.la +plugin_DATA = example-server-c.plugin librygel_example_server_plugin_c_la_SOURCES = \ example-server-plugin.h \ @@ -20,3 +21,5 @@ librygel_example_server_plugin_c_la_LIBADD = \ librygel_example_server_plugin_c_la_LDFLAGS = \ $(RYGEL_PLUGIN_LINKER_FLAGS) + +EXTRA_DIST = example-server-c.plugin.in diff --git a/examples/server-plugins/C/example-server-c.plugin.in b/examples/server-plugins/C/example-server-c.plugin.in new file mode 100644 index 00000000..75234c7d --- /dev/null +++ b/examples/server-plugins/C/example-server-c.plugin.in @@ -0,0 +1,7 @@ +[Plugin] +Version = @VERSION@ +Module = example-server-plugin-c +Name = ExampleServerPluginC +License = LGPL +Description = Example of implementing a server plug-in in C +Copyright = Copyright © Intel Corporation diff --git a/examples/server-plugins/vala/Makefile.am b/examples/server-plugins/vala/Makefile.am index 7c82b3cd..424075ca 100644 --- a/examples/server-plugins/vala/Makefile.am +++ b/examples/server-plugins/vala/Makefile.am @@ -1,6 +1,7 @@ include $(top_srcdir)/common.am plugin_LTLIBRARIES = librygel-example-server-plugin-vala.la +plugin_DATA = example-server-vala.plugin # Note that we must have these Vala prefixes on the # class names (and therefore on the file names) @@ -24,3 +25,5 @@ librygel_example_server_plugin_vala_la_LIBADD = \ librygel_example_server_plugin_vala_la_LDFLAGS = \ $(RYGEL_PLUGIN_LINKER_FLAGS) + +EXTRA_DIST = example-server-vala.plugin.in diff --git a/examples/server-plugins/vala/example-server-vala.plugin.in b/examples/server-plugins/vala/example-server-vala.plugin.in new file mode 100644 index 00000000..2d82d83c --- /dev/null +++ b/examples/server-plugins/vala/example-server-vala.plugin.in @@ -0,0 +1,7 @@ +[Plugin] +Version = @VERSION@ +Module = example-server-plugin-vala +Name = ExampleServerPluginVala +License = LGPL +Description = Example of implementing a server plug-in in Vala +Copyright = Copyright © Intel Corporation |