summaryrefslogtreecommitdiff
path: root/monitor/goa
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/goa
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/goa')
-rw-r--r--monitor/goa/Makefile.am1
-rw-r--r--monitor/goa/meson.build55
2 files changed, 56 insertions, 0 deletions
diff --git a/monitor/goa/Makefile.am b/monitor/goa/Makefile.am
index af7845e1..9a85d04e 100644
--- a/monitor/goa/Makefile.am
+++ b/monitor/goa/Makefile.am
@@ -55,6 +55,7 @@ CLEANFILES = \
$(NULL)
EXTRA_DIST = \
+ meson.build \
$(service_in_files) \
$(systemd_user_in_files) \
$(remote_volume_monitors_DATA) \
diff --git a/monitor/goa/meson.build b/monitor/goa/meson.build
new file mode 100644
index 00000000..111d8d45
--- /dev/null
+++ b/monitor/goa/meson.build
@@ -0,0 +1,55 @@
+install_data(
+ 'goa.monitor',
+ install_dir: gvfs_remote_volume_monitors_dir
+)
+
+service = gvfs_namespace + '.GoaVolumeMonitor.service'
+
+configure_file(
+ input: service + '.in',
+ output: service,
+ install: true,
+ install_dir: gvfs_dbus_service_dir,
+ configuration: service_conf
+)
+
+if have_systemd_user_unit
+ service = 'gvfs-goa-volume-monitor.service'
+
+ configure_file(
+ input: service + '.in',
+ output: service,
+ install: true,
+ install_dir: systemd_user_dir,
+ configuration: service_conf
+ )
+endif
+
+sources = files(
+ 'goavolumemonitordaemon.c',
+ 'goavolume.c',
+ 'goavolumemonitor.c'
+)
+
+deps = glib_deps + [
+ goa_dep,
+ libgvfscommon_dep,
+ libgvfsproxyvolumemonitordaemon_noin_dep
+]
+
+cflags = [
+ '-DG_LOG_DOMAIN="GVFS-GOA"',
+ '-DGIO_MODULE_DIR="@0@"'.format(gio_module_dir),
+ '-DGVFS_LOCALEDIR="@0@"'.format(gvfs_localedir)
+]
+
+executable(
+ 'gvfs-goa-volume-monitor',
+ sources,
+ include_directories: top_inc,
+ dependencies: deps,
+ c_args: cflags,
+ install: true,
+ install_rpath: gvfs_rpath,
+ install_dir: gvfs_libexecdir
+)