[vala/wip/meson: 13/13] WIP meson: Add meson-bootstrap.sh



commit f0e0d5e066e32c9efd55c46e787ada97cfb44f9a
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Feb 11 20:25:15 2019 +0100

    WIP meson: Add meson-bootstrap.sh

 meson-bootstrap.sh | 13 +++++++++++++
 1 file changed, 13 insertions(+)
---
diff --git a/meson-bootstrap.sh b/meson-bootstrap.sh
new file mode 100755
index 000000000..01711f960
--- /dev/null
+++ b/meson-bootstrap.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+API=`grep -e "^vala_api_version = '\([0-9]\.[0-9]*\)'$" meson.build | sed -r "s/vala_api_version = '([^ 
]+)'/\1/"`
+
+PWD=$(pwd)
+rm -rf _bootstrap _bootstrap_install _build
+
+meson _bootstrap -Dvaladoc=false -Dprefix=$PWD/_bootstrap_install || exit 1
+ninja -C _bootstrap || exit 1
+
+LD_LIBRARY_PATH="$PWD/_bootstrap/vala" VALAC="$PWD/_bootstrap/compiler/valac-$API --vapidir $PWD/vapi" meson 
_build -Dprefix=/usr || exit 1
+LD_LIBRARY_PATH="$PWD/_bootstrap/vala" ninja -C _build || exit 1
+LD_LIBRARY_PATH="$PWD/_bootstrap/vala" ninja -C _build test || exit 1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]