[rygel/wip/meson: 28/34] meson: Add examples



commit 26163d79644941175d2adb1e0217e6548fb10870
Author: Jens Georg <mail jensge org>
Date:   Tue May 23 16:31:17 2017 +0200

    meson: Add examples

 examples/meson.build | 35 +++++++++++++++++++++++++++++++++++
 meson.build          |  3 +++
 2 files changed, 38 insertions(+)
---
diff --git a/examples/meson.build b/examples/meson.build
new file mode 100644
index 00000000..c8a4102b
--- /dev/null
+++ b/examples/meson.build
@@ -0,0 +1,35 @@
+#subdir('renderer-plguins')
+#subdir('server-plugins')
+
+executable('standalone-server',
+           'standalone-server.c',
+           dependencies : [gio, rygel_core, rygel_server],
+           link_with : [core_lib, server_lib])
+
+executable('standalone-ruih',
+           'standalone-ruih.c',
+           dependencies : [gio, rygel_core, rygel_ruih],
+           link_with: [core_lib, ruih_lib])
+
+executable('standalone-renderer-gst',
+           'standalone-renderer-gst.c',
+           dependencies : [gstreamer,
+                           gstreamer_video,
+                           rygel_core,
+                           rygel_renderer,
+                           rygel_renderer_gst],
+           link_with: [core_lib, renderer_lib, renderer_gst_lib])
+
+fs_renderer_resource = gnome.compile_resources('org.gnome.Rygel.FullscreenRenderer.gresource',
+                        'org.gnome.Rygel.FullscreenRenderer.gresource.xml',
+                        source_dir : join_paths(meson.current_source_dir(),
+                          '..', 'data', 'icons', 'scalable'))
+
+executable('fullscreen-renderer',
+           ['fullscreen-renderer.c'] + fs_renderer_resource,
+           dependencies : [gstreamer_video,
+                           gtk,
+                           rygel_core,
+                           rygel_renderer,
+                           rygel_renderer_gst],
+           link_with: [core_lib, renderer_lib, renderer_gst_lib])
diff --git a/meson.build b/meson.build
index 7b87ae11..e39116ba 100644
--- a/meson.build
+++ b/meson.build
@@ -2,6 +2,7 @@ project('rygel', ['vala', 'c'],
         version : '0.35.0')
 
 i18n = import('i18n')
+gnome = import('gnome')
 
 rygel_sysconfdir = join_paths(get_option('prefix'), get_option('sysconfdir'))
 rygel_datadir = join_paths(get_option('prefix'), get_option('datadir'))
@@ -61,6 +62,7 @@ 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')
+gstreamer_video = dependency('gstreamer-video-1.0', version : '>= 1.0')
 gstreamer_tag = dependency('gstreamer-tag-1.0', version : '>= 1.0')
 
 gdk_pixbuf = dependency('gdk-pixbuf-2.0')
@@ -152,3 +154,4 @@ subdir('src')
 subdir('po')
 subdir('data')
 subdir('doc')
+subdir('examples')


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