[grilo/meson] WIP: meson build



commit 3dae4e05fc44269a51bf07306daa8bc725692055
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Fri Nov 25 09:01:03 2016 +0000

    WIP: meson build

 meson.build     |   33 +++++++++++++++++++++++++
 src/meson.build |   71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+), 0 deletions(-)
---
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..ad4fafa
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,33 @@
+project('grilo', 'c',
+        version: '0.3.3',
+        default_options: [
+            'buildtype=debugoptimized',
+            'c_std=gnu99',
+            'warning_level=1'
+        ],
+        license: 'LGPL 2.1',
+        meson_version: '>= 0.36.0')
+
+grilo_version = meson.project_version()
+grlnet_version = meson.project_version()
+grlpls_version = meson.project_version()
+
+gio_dep = dependency('gio-2.0', version: '>= 2.44', required: true)
+glib_dep = dependency('glib-2.0', version: '>= 2.34', required: true)
+gmodule_dep = dependency('gmodule-2.0', required: true)
+gobject_dep = dependency('gobject-2.0', required: true)
+libxml_dep = dependency('libxml-2.0', required: true)
+
+gtk_dep = dependency('gtk+-3.0', version: '>= 3.0', required: false)
+libsoup_dep = dependency('libsoup-2.4', version: '>= 2.41.3', required: false)
+oauth_dep = dependency('oauth', required: false)
+totem_plparser_dep = dependency('totem-plparser', version: '>= 3.4.1', required: false)
+
+cdata = configuration_data()
+cdata.set('GRLNET_VERSION', grlnet_version)
+cdata.set('GRLPLS_VERSION', grlpls_version)
+cdata.set('GETTEXT_PACKAGE', '"grilo"')
+
+gnome = import('gnome')
+
+subdir('src')
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 0000000..fbf97c1
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,71 @@
+grl_marshal = gnome.genmarshal('grl-marshal',
+    sources: 'grl-marshal.list',
+    prefix: 'grl_marshal')
+
+grl_type_builtins = gnome.mkenums('grl-type-builtins',
+    sources: [
+        'data/grl-media.h',
+        'grl-caps.h',
+        'grl-metadata-key.h',
+        'grl-operation-options.h',
+        'grl-source.h',
+    ],
+    c_template: 'grl-type-builtins.c.template',
+    h_template: 'grl-type-builtins.h.template')
+
+grl_sources = [
+    'data/grl-config.c',
+    'data/grl-data.c',
+    'data/grl-media.c',
+    'data/grl-related-keys.c',
+    'grilo.c',
+    'grl-caps.c',
+    'grl-log.c',
+    'grl-metadata-key.c',
+    'grl-multiple.c',
+    'grl-operation-options.c',
+    'grl-operation.c',
+    'grl-plugin.c',
+    'grl-range-value.c',
+    'grl-registry.c',
+    'grl-source.c',
+    'grl-util.c',
+    'grl-value-helper.c',
+]
+
+grl_headers = [
+    'data/grl-config.h',
+    'data/grl-data.h',
+    'data/grl-media.h',
+    'data/grl-related-keys.h',
+    'grilo.h',
+    'grl-caps.h',
+    'grl-definitions.h',
+    'grl-error.h',
+    'grl-log.h',
+    'grl-metadata-key.h',
+    'grl-multiple.h',
+    'grl-operation-options.h',
+    'grl-operation.h',
+    'grl-plugin.h',
+    'grl-range-value.h',
+    'grl-registry.h',
+    'grl-source.h',
+    'grl-util.h',
+    'grl-value-helper.h',
+]
+
+data_dir = include_directories('data')
+
+configure_file(output: 'config.h',
+    configuration: cdata)
+
+libgrl = shared_library('libgrl-0.3',
+    sources: grl_sources + grl_marshal + grl_type_builtins,
+    dependencies: [glib_dep, gobject_dep, gmodule_dep, gio_dep, libxml_dep],
+    c_args: [
+        '-DGRILO_COMPILATION',
+        '-DG_LOG_DOMAIN="Grilo"',
+    ],
+    include_directories: data_dir)
+                            


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