[grilo-mediaserver2] Add meson build file



commit b0406959406c2dac6228f75c6ee6f794044a9ebd
Author: Jens Georg <mail jensge org>
Date:   Sat Oct 20 11:44:09 2018 +0200

    Add meson build file

 lib/meson.build | 14 ++++++++++++++
 meson.build     |  5 +++++
 src/meson.build | 26 ++++++++++++++++++++++++++
 3 files changed, 45 insertions(+)
---
diff --git a/lib/meson.build b/lib/meson.build
new file mode 100644
index 0000000..774980e
--- /dev/null
+++ b/lib/meson.build
@@ -0,0 +1,14 @@
+mediaserver2_lib = library('mediaserver2',
+        files('media-server2-server-table.c',
+              'media-server2-server.c',
+              'media-server2-client.c',
+              'media-server2-observer.c'),
+        dependencies : [
+            dependency('gio-2.0'),
+            dependency('glib-2.0'),
+            dependency('gobject-2.0'),
+            dependency('dbus-glib-1')
+        ]
+)
+
+mediaserver2 = declare_dependency(include_directories : include_directories('.'), link_with : 
mediaserver2_lib)
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..cf8051a
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,5 @@
+project('grilo-mediaserver2', 'c', version : '0.3.0')
+
+dbus_binding_tool = find_program('dbus-binding-tool')
+subdir('lib')
+subdir('src')
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 0000000..b149e6e
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,26 @@
+executable(
+    'grilo-ms2',
+    files('grilo-mediaserver2.c'),
+    dependencies : [
+        mediaserver2,
+        dependency('dbus-glib-1'),
+        dependency('grilo-0.3', version : '>= 0.3')
+    ],
+    c_args : [
+        '-DPREFIX=@0@'.format(get_option('prefix')),
+        '-DSYSCONFDIR="@0@"'.format(get_option('sysconfdir'))
+    ],
+    install : true
+)
+
+executable(
+    'test-client',
+    files('test-client.c'),
+    dependencies : [
+        mediaserver2,
+        dependency('gobject-2.0')
+    ],
+    c_args : [
+        '-DPREFIX=@0@'.format(get_option('prefix')),
+    ]
+)


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