[rygel/wip/meson: 8/34] meson: Add renderer-gst



commit ef9f072d93bfcb81ef98e95d4ce2f7d6c3387a2c
Author: Jens Georg <mail jensge org>
Date:   Sun May 21 09:21:27 2017 +0200

    meson: Add renderer-gst

 meson.build                           |  2 ++
 src/librygel-renderer-gst/meson.build | 39 +++++++++++++++++++++++++++++++++++
 src/meson.build                       |  1 +
 3 files changed, 42 insertions(+)
---
diff --git a/meson.build b/meson.build
index f2907ac3..cc11e7ff 100644
--- a/meson.build
+++ b/meson.build
@@ -42,6 +42,7 @@ sqlite = dependency('sqlite3', version : '>= 3.5')
 gstreamer = dependency('gstreamer-1.0', version : '>= 1.0')
 gstreamer_pbu = dependency('gstreamer-pbutils-1.0', version : '>= 1.0')
 gstreamer_base = dependency('gstreamer-base-1.0', version : '>= 1.0')
+gstreamer_audio = dependency('gstreamer-audio-1.0', version : '>= 1.0')
 
 posix = vala.find_library('posix')
 
@@ -62,6 +63,7 @@ common_deps = [gupnp, gee]
 
 core_deps = common_deps + [gssdp, gio, gmodule, libxml, posix, math]
 renderer_deps = common_deps + [gupnp_av, soup]
+renderer_gst_deps = common_deps + [gstreamer, gstreamer_audio]
 server_deps = common_deps + [gssdp, gupnp_av, soup, mediaart, gmodule, libxml]
 db_deps = common_deps + [gupnp_av, gio, sqlite, unistring]
 media_engine_gst_dep = [gee, gupnp_av, libxml, gio, gstreamer, gstreamer_pbu,
diff --git a/src/librygel-renderer-gst/meson.build b/src/librygel-renderer-gst/meson.build
new file mode 100644
index 00000000..02a2439a
--- /dev/null
+++ b/src/librygel-renderer-gst/meson.build
@@ -0,0 +1,39 @@
+renderer_gst_sources = [
+    'rygel-playbin-player.vala',
+    'rygel-playbin-renderer.vala',
+]
+
+renderer_gst_lib = library('rygel-renderer-gst-2.6', renderer_gst_sources,
+        dependencies : renderer_gst_deps + [build_config, rygel_core, rygel_renderer],
+        version: '2.0.4',
+        vala_gir : 'Rygel-2.6.gir',
+        vala_header : 'rygel-renderer-gst.h',
+        install: true,
+        install_dir : [true, true, true, false])
+
+custom_target('RygelRendererGst-2.6.typelib',
+               command: [g_ir_compiler,
+                        '--output', '@OUTPUT@',
+                        '--includedir', core_girdir,
+                        '--includedir', renderer_girdir,
+                        '@INPUT@'],
+               output: 'RygelRendererGst-2.6.typelib',
+               input: 'RygelRendererGst-2.6.gir',
+               depends: [renderer_gst_lib, renderer_lib],
+               install: true,
+               install_dir: typelib_dir)
+
+custom_target('RygelRendererGst-2.6.gir',
+              command: [sed, '-e', 's,Rygel[.],RygelRendererGst.,g',
+                             '-e', 's,RygelRendererGst[.]MediaRenderer,RygelRenderer.MediaRenderer,g',
+                             '-e', 's,RygelRendererGst[.]MediaPlayer,RygelRenderer.MediaPlayer,g',
+                             '-e', 's,namespace name="Rygel",namespace name="RygelRendererGst",g',
+                             '-e', 's,RygelRendererGst[.]Plugin,RygelCore.Plugin,g',
+                             '-e', 's,<package name="rygel-renderer-gst-2.6"/>,<include name="RygelCore" 
version="2.6"/><include name="RygelRenderer" version="2.6"/><package name="rygel-renderer-gst-2.6"/>,',
+                        '@INPUT@'],
+              input: 'Rygel-2.6.gir',
+              output: 'RygelRendererGst-2.6.gir',
+              capture: true,
+              install: true,
+              install_dir: join_paths(get_option('datadir'),'gir-1.0'))
+
diff --git a/src/meson.build b/src/meson.build
index dd1b9361..e3882cd6 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -1,6 +1,7 @@
 subdir('librygel-core')
 subdir('librygel-db')
 subdir('librygel-renderer')
+subdir('librygel-renderer-gst')
 subdir('librygel-ruih')
 subdir('librygel-server')
 subdir('media-engines')


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