summaryrefslogtreecommitdiff
path: root/programs
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 /programs
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 'programs')
-rw-r--r--programs/Makefile.am1
-rwxr-xr-x[-rw-r--r--]programs/deprecated.in0
-rw-r--r--programs/meson.build37
3 files changed, 38 insertions, 0 deletions
diff --git a/programs/Makefile.am b/programs/Makefile.am
index d7e22e2a..0eb074b6 100644
--- a/programs/Makefile.am
+++ b/programs/Makefile.am
@@ -75,6 +75,7 @@ gvfs-mime: deprecated.in Makefile
EXTRA_DIST = \
deprecated.in \
gvfs-less \
+ meson.build \
$(NULL)
CLEANFILES = \
diff --git a/programs/deprecated.in b/programs/deprecated.in
index 7fedf927..7fedf927 100644..100755
--- a/programs/deprecated.in
+++ b/programs/deprecated.in
diff --git a/programs/meson.build b/programs/meson.build
new file mode 100644
index 00000000..1dea6b74
--- /dev/null
+++ b/programs/meson.build
@@ -0,0 +1,37 @@
+script_names = [
+ ['mount', 'mount'],
+ ['cat', 'cat'],
+ ['open', 'open'],
+ ['save', 'save'],
+ ['ls', 'list'],
+ ['tree', 'tree'],
+ ['info', 'info'],
+ ['set-attribute', 'set'],
+ ['trash', 'trash'],
+ ['rename', 'rename'],
+ ['rm', 'remove'],
+ ['copy', 'copy'],
+ ['move', 'move'],
+ ['monitor-file', 'monitor'],
+ ['monitor-dir', 'monitor'],
+ ['mkdir', 'mkdir'],
+ ['mime', 'mime']
+]
+
+foreach name: script_names
+ conf = configuration_data()
+ conf.set('command', name[1])
+
+ configure_file(
+ input: 'deprecated.in',
+ output: 'gvfs-' + name[0],
+ install: true,
+ install_dir: gvfs_bindir,
+ configuration: conf
+ )
+endforeach
+
+install_data(
+ 'gvfs-less',
+ install_dir: gvfs_bindir
+)