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




commit db082d7368dd33f5e2b4a11bb3a326905ad43027
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]