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




commit 96f2c0da3235fd6187357cb8f1d9dc6df8ae6f4e
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..ddeac3fdf
--- /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:$PWD/_bootstrap/codegen" VALAC="$PWD/_bootstrap/compiler/valac-$API 
--vapidir $PWD/vapi" meson _build -Dprefix=/usr || exit 1
+LD_LIBRARY_PATH="$PWD/_bootstrap/vala:$PWD/_bootstrap/codegen" ninja -C _build || exit 1
+LD_LIBRARY_PATH="$PWD/_bootstrap/vala:$PWD/_bootstrap/codegen" ninja -C _build test || exit 1


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