[rygel/wip/meson: 1/34] wip
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/meson: 1/34] wip
- Date: Wed, 19 Sep 2018 19:56:50 +0000 (UTC)
commit 7ea1f7c76e0e793bb16929851c6d582b80a3d597
Author: Jens Georg <mail jensge org>
Date: Mon May 8 19:00:08 2017 +0200
wip
meson.build | 39 +++++++++++++++++++++++++++++++++++++++
src/librygel-core/meson.build | 36 ++++++++++++++++++++++++++++++++++++
src/meson.build | 1 +
3 files changed, 76 insertions(+)
---
diff --git a/meson.build b/meson.build
new file mode 100644
index 00000000..9a797153
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,39 @@
+project('rygel', ['vala', 'c'],
+ version : '0.35.0')
+
+rygel_sysconfdir = join_paths(get_option('prefix'), get_option('sysconfdir'))
+rygel_datadir = join_paths(get_option('prefix'), get_option('datadir'))
+rygel_plugindir = join_paths(get_option('prefix'), get_option('libdir'), 'rygel-2.6', 'plugins')
+rygel_bigicondir = join_paths(rygel_datadir, 'rygel', 'icons', '120x120')
+rygel_smallicondir = join_paths(rygel_datadir, 'rygel', 'icons', '48x48')
+
+conf = configuration_data()
+conf.set('GETTEXT_PACKAGE', '"rygel"')
+conf.set('PACKAGE_NAME', '"Rygel"')
+conf.set('PACKAGE_STRING', '"Rygel @0@"'.format(meson.project_version()))
+conf.set('DATA_DIR', '"@0@"'.format(rygel_datadir))
+conf.set('PLUGIN_DIR', '"@0@"'.format(rygel_plugindir))
+conf.set('BIG_ICON_DIR', '"@0@"'.format(rygel_bigicondir))
+conf.set('SMALL_ICON_DIR', '"@0@"'.format(rygel_smallicondir))
+conf.set('SYS_CONFIG_DIR', '"@0@"'.format(rygel_sysconfdir))
+configure_file(output: 'config.h', configuration: conf)
+
+add_global_arguments(['-include','config.h'], language : 'c')
+
+vala = meson.get_compiler('vala')
+gupnp = dependency('gupnp-1.0', version : '>= 0.24.14')
+gee = dependency('gee-0.8', version: '>= 0.8.0')
+gssdp = dependency('gssdp-1.0', version : '>= 0.13.0')
+gio = dependency('gio-2.0', version : '>= 2.26')
+gmodule = dependency('gmodule-2.0')
+libxml = dependency('libxml-2.0', version: '>= 2.7')
+posix = vala.find_library('posix')
+
+cc = meson.get_compiler('c')
+math = cc.find_library('m', required: false)
+
+common_deps = [gupnp, gee]
+
+core_deps = common_deps + [gssdp, gio, gmodule, libxml, posix, math]
+
+subdir('src')
diff --git a/src/librygel-core/meson.build b/src/librygel-core/meson.build
new file mode 100644
index 00000000..1cce072c
--- /dev/null
+++ b/src/librygel-core/meson.build
@@ -0,0 +1,36 @@
+core_sources = [
+ 'rygel-connection-manager.vala',
+ 'rygel-basic-management.vala',
+ 'rygel-basic-management-test.vala',
+ 'rygel-basic-management-test-ping.vala',
+ 'rygel-basic-management-test-nslookup.vala',
+ 'rygel-basic-management-test-traceroute.vala',
+ 'rygel-description-file.vala',
+ 'rygel-dlna-profile.vala',
+ 'rygel-energy-management.vala',
+ 'rygel-root-device.vala',
+ 'rygel-root-device-factory.vala',
+ 'rygel-dbus-interface.vala',
+ 'rygel-log-handler.vala',
+ 'rygel-meta-config.vala',
+ 'rygel-plugin-loader.vala',
+ 'rygel-recursive-module-loader.vala',
+ 'rygel-plugin.vala',
+ 'rygel-resource-info.vala',
+ 'rygel-media-device.vala',
+ 'rygel-configuration.vala',
+ 'rygel-base-configuration.vala',
+ 'rygel-cmdline-config.vala',
+ 'rygel-environment-config.vala',
+ 'rygel-user-config.vala',
+ 'rygel-state-machine.vala',
+ 'rygel-v1-hacks.vala',
+ 'rygel-icon-info.vala',
+ 'rygel-xml-utils.vala',
+ 'rygel-plugin-information.vala',
+ 'rygel-energy-management-helper.c',
+ 'rygel-build-config.vapi']
+
+core_lib = library('rygel-core-2.6', core_sources,
+ dependencies : core_deps,
+ include_directories: include_directories('../..'))
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 00000000..21b1bf5e
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1 @@
+subdir('librygel-core')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]