summaryrefslogtreecommitdiff
path: root/Makefile.meson
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2019-04-14 21:11:43 +0200
committerChristian Persch <chpe@src.gnome.org>2019-04-14 21:11:43 +0200
commit7566ad673a12d26293b0a74dd3cb3e5f3d22ed49 (patch)
tree08c8d9f542f02e701b696fea74cbc7007022f9fa /Makefile.meson
parent9bdf87c1eb41855c323259c8b4854864bdb1064e (diff)
downloadvte-7566ad673a12d26293b0a74dd3cb3e5f3d22ed49.tar.gz
build: Port to meson build system
Based on a patch by Iñigo Martínez. Drop the glade catalogue, which was unmaintained. Remove the config.h define for the default terminfo name to use, and just hardcode it. https://gitlab.gnome.org/GNOME/vte/issues/78
Diffstat (limited to 'Makefile.meson')
-rw-r--r--Makefile.meson48
1 files changed, 48 insertions, 0 deletions
diff --git a/Makefile.meson b/Makefile.meson
new file mode 100644
index 00000000..a7b97472
--- /dev/null
+++ b/Makefile.meson
@@ -0,0 +1,48 @@
+# Copyright © 2019 Christian Persch
+#
+# This library is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or (at your
+# option) any later version.
+#
+# This library is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
+# General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this library. If not, see <https://www.gnu.org/licenses/>.
+
+srcdir=@srcdir@
+builddir=@builddir@
+vte_gtk3_api_version = @vte_gtk3_api_version@
+vte_gtk4_api_version = @vte_gtk4_api_version@
+
+#
+
+NTHREADS = 1
+NJOBS = -j$(NTHREADS)
+NINJA = ninja $(NJOBS)
+
+#
+
+all:
+ $(NINJA)
+
+check:
+ MESON_TESTTHREADS=$(NTHREADS) $(NINJA) test
+
+clean:
+ $(NINJA) clean
+
+coverage:
+ $(NINJA) coverage
+
+doc:
+ $(NINJA) vte-$(vte_gtk3_api_version)-doc
+
+install:
+ $(NINJA) install
+
+uninstall:
+ $(NINJA) uninstall