]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Add tools/build
authorJohan Malm <jgm323@gmail.com>
Fri, 24 Jul 2020 19:11:38 +0000 (20:11 +0100)
committerJohan Malm <jgm323@gmail.com>
Fri, 24 Jul 2020 19:11:38 +0000 (20:11 +0100)
tools/build [new file with mode: 0755]

diff --git a/tools/build b/tools/build
new file mode 100755 (executable)
index 0000000..ff9113d
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# Automatically build labwc
+#
+
+builddir=build-clang
+
+if ! [ -e subprojects/wlroots ]; then
+       git clone https://github.com/swaywm/wlroots subprojects/wlroots
+fi
+
+
+if ! [ -e ${builddir} ]; then
+       CC=clang meson -Dwlroots:default_library=static ${builddir}
+fi
+
+ninja -C ${builddir}