summaryrefslogtreecommitdiff
path: root/monitor/proxy
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2017-08-11 11:45:48 +0200
committerOndrej Holy <oholy@redhat.com>2017-10-31 18:20:11 +0100
commit899e2a934553b5d97f04d2268421eae3cf8a0197 (patch)
tree57fbcdaf28c79ebeb203232b28783f6786845654 /monitor/proxy
parent5db165178a2528802edbe2eaf34ea2a63a78cc02 (diff)
downloadgvfs-899e2a934553b5d97f04d2268421eae3cf8a0197.tar.gz
build: Port to meson build system
meson is a build system focused on speed an ease of use, which helps speeding up the software development. This patch adds meson support along autotools. https://bugzilla.gnome.org/show_bug.cgi?id=786149
Diffstat (limited to 'monitor/proxy')
-rw-r--r--monitor/proxy/Makefile.am2
-rw-r--r--monitor/proxy/meson.build65
-rw-r--r--monitor/proxy/symbol.map8
3 files changed, 75 insertions, 0 deletions
diff --git a/monitor/proxy/Makefile.am b/monitor/proxy/Makefile.am
index 3b3c8db7..cf449c44 100644
--- a/monitor/proxy/Makefile.am
+++ b/monitor/proxy/Makefile.am
@@ -81,6 +81,8 @@ install-data-local:
EXTRA_DIST = \
dbus-interfaces.xml \
+ meson.build \
+ symbol.map \
$(NULL)
CLEANFILES = \
diff --git a/monitor/proxy/meson.build b/monitor/proxy/meson.build
new file mode 100644
index 00000000..b728eb8c
--- /dev/null
+++ b/monitor/proxy/meson.build
@@ -0,0 +1,65 @@
+dbus_sources = gnome.gdbus_codegen(
+ 'gvfsvolumemonitordbus',
+ 'dbus-interfaces.xml',
+ interface_prefix: 'org.gtk.Private.',
+ namespace: 'GVfs'
+)
+
+sources = files(
+ 'remote-volume-monitor-module.c',
+ 'gproxydrive.c',
+ 'gproxymount.c',
+ 'gproxymountoperation.c',
+ 'gproxyshadowmount.c',
+ 'gproxyvolume.c',
+ 'gproxyvolumemonitor.c'
+)
+
+deps = glib_deps + [libgvfscommon_dep]
+
+cflags = [
+ '-DG_LOG_DOMAIN="GVFS-RemoteVolumeMonitor"',
+ '-DGIO_MODULE_DIR="@0@"'.format(gio_module_dir),
+ '-DGVFS_LOCALEDIR="@0@"'.format(gvfs_localedir),
+ '-DREMOTE_VOLUME_MONITORS_DIR="@0@"'.format(gvfs_remote_volume_monitors_dir)
+]
+
+symbol_map = join_paths(meson.current_source_dir(), 'symbol.map')
+
+ldflags = []
+if have_version_script
+ ldflags += '-Wl,--version-script,@0@'.format(symbol_map)
+endif
+
+libgioremove_volume_monitor = shared_module(
+ 'gioremote-volume-monitor',
+ sources: sources + [dbus_sources],
+ include_directories: top_inc,
+ dependencies: deps,
+ c_args: cflags,
+ link_args: ldflags,
+ link_depends: symbol_map,
+ install: true,
+ install_rpath: gvfs_rpath,
+ install_dir: gio_module_dir
+)
+
+sources = files('gvfsproxyvolumemonitordaemon.c')
+
+cflags = [
+ '-DG_LOG_DOMAIN="GVFS-RemoteVolumeMonitorDaemon"',
+ '-DGVFS_LOCALEDIR="@0@"'.format(gvfs_localedir)
+]
+
+libgvfsproxyvolumemonitordaemon_noin = static_library(
+ 'gvfsproxyvolumemonitordaemon-noin',
+ sources: sources + [dbus_sources],
+ include_directories: top_inc,
+ dependencies: deps,
+ c_args: cflags
+)
+
+libgvfsproxyvolumemonitordaemon_noin_dep = declare_dependency(
+ link_with: libgvfsproxyvolumemonitordaemon_noin,
+ include_directories: include_directories('.')
+)
diff --git a/monitor/proxy/symbol.map b/monitor/proxy/symbol.map
new file mode 100644
index 00000000..43ed5a77
--- /dev/null
+++ b/monitor/proxy/symbol.map
@@ -0,0 +1,8 @@
+{
+global:
+ g_io_module_load;
+ g_io_module_unload;
+ g_io_module_query;
+local:
+ *;
+};