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



commit cb8fe40688016b12b600a39c255dca9f217eec99
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..ae3aace9f
--- /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
+ninja -C _bootstrap
+
+LD_LIBRARY_PATH="$PWD/_bootstrap/vala" VALAC="$PWD/_bootstrap/compiler/valac-$API --vapidir $PWD/vapi" meson 
_build -Dprefix=/usr
+LD_LIBRARY_PATH="$PWD/_bootstrap/vala" ninja -C _build
+LD_LIBRARY_PATH="$PWD/_bootstrap/vala" ninja -C _build test


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