[rygel/wip/meson: 77/85] meson: Add example plugins



commit d1f2f33e33a44c1c2b93a959d891e0c41fa67604
Author: Jens Georg <mail jensge org>
Date:   Tue May 23 17:31:47 2017 +0200

    meson: Add example plugins

 examples/meson.build                       |  4 ++--
 examples/renderer-plugins/C/meson.build    | 15 +++++++++++++++
 examples/renderer-plugins/meson.build      |  2 ++
 examples/renderer-plugins/vala/meson.build | 12 ++++++++++++
 examples/server-plugins/C/meson.build      | 14 ++++++++++++++
 examples/server-plugins/meson.build        |  2 ++
 examples/server-plugins/vala/meson.build   | 12 ++++++++++++
 7 files changed, 59 insertions(+), 2 deletions(-)
---
diff --git a/examples/meson.build b/examples/meson.build
index ef97ace9..34cc1ae8 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -1,5 +1,5 @@
-#subdir('renderer-plguins')
-#subdir('server-plugins')
+subdir('renderer-plugins')
+subdir('server-plugins')
 
 executable('standalone-server',
            'standalone-server.c',
diff --git a/examples/renderer-plugins/C/meson.build b/examples/renderer-plugins/C/meson.build
new file mode 100644
index 00000000..c0a0c49f
--- /dev/null
+++ b/examples/renderer-plugins/C/meson.build
@@ -0,0 +1,15 @@
+shared_module('rygel-example-renderer-plugin-c',
+              ['example-renderer-plugin.h',
+               'example-renderer-plugin.c',
+               'example-player.h',
+               'example-player.c'],
+              c_args : '-DG_LOG_DOMAIN="ExampleRendererPluginC"',
+              dependencies: [rygel_core, rygel_renderer],
+              link_with : [core_lib, renderer_lib],
+              install : true,
+              install_dir : rygel_plugindir)
+
+configure_file(input : 'example-renderer-c.plugin.in',
+               output : 'example-renderer-c.plugin',
+               configuration : plugin_config,
+               install_dir : rygel_plugindir)
diff --git a/examples/renderer-plugins/meson.build b/examples/renderer-plugins/meson.build
new file mode 100644
index 00000000..9684ef9d
--- /dev/null
+++ b/examples/renderer-plugins/meson.build
@@ -0,0 +1,2 @@
+subdir('C')
+subdir('vala')
diff --git a/examples/renderer-plugins/vala/meson.build b/examples/renderer-plugins/vala/meson.build
new file mode 100644
index 00000000..8d3c2a8a
--- /dev/null
+++ b/examples/renderer-plugins/vala/meson.build
@@ -0,0 +1,12 @@
+shared_module('rygel-example-renderer-plugin-vala',
+              ['example-renderer-plugin-vala.vala',
+               'example-player-vala.vala'],
+              c_args : '-DG_LOG_DOMAIN="ExampleRendererPluginVala"',
+              dependencies : common_deps + [gupnp_av, rygel_core, rygel_renderer],
+              install : true,
+              install_dir : rygel_plugindir)
+
+configure_file(input : 'example-renderer-vala.plugin.in',
+               output : 'example-renderer-vala.plugin',
+               configuration : plugin_config,
+               install_dir : rygel_plugindir)
diff --git a/examples/server-plugins/C/meson.build b/examples/server-plugins/C/meson.build
new file mode 100644
index 00000000..34c3d826
--- /dev/null
+++ b/examples/server-plugins/C/meson.build
@@ -0,0 +1,14 @@
+shared_module('rygel-example-server-plugin-c',
+              ['example-server-plugin.h',
+               'example-server-plugin.c',
+               'example-root-container.h',
+               'example-root-container.c'],
+              c_args : '-DG_LOG_DOMAIN="ExampleServerPluginC"',
+              dependencies: [rygel_core, rygel_server],
+              install : true,
+              install_dir : rygel_plugindir)
+
+configure_file(input : 'example-server-c.plugin.in',
+               output : 'example-server-c.plugin',
+               configuration : plugin_config,
+               install_dir : rygel_plugindir)
diff --git a/examples/server-plugins/meson.build b/examples/server-plugins/meson.build
new file mode 100644
index 00000000..9684ef9d
--- /dev/null
+++ b/examples/server-plugins/meson.build
@@ -0,0 +1,2 @@
+subdir('C')
+subdir('vala')
diff --git a/examples/server-plugins/vala/meson.build b/examples/server-plugins/vala/meson.build
new file mode 100644
index 00000000..607792aa
--- /dev/null
+++ b/examples/server-plugins/vala/meson.build
@@ -0,0 +1,12 @@
+shared_module('rygel-example-server-plugin-vala',
+              ['example-server-plugin-vala.vala',
+               'example-root-container-vala.vala'],
+              c_args : '-DG_LOG_DOMAIN="ExampleServerPluginVala"',
+              dependencies : common_deps + [gupnp_av, rygel_core, rygel_server],
+              install : true,
+              install_dir : rygel_plugindir)
+
+configure_file(input : 'example-server-vala.plugin.in',
+               output : 'example-server-vala.plugin',
+               configuration : plugin_config,
+               install_dir : rygel_plugindir)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]