summaryrefslogtreecommitdiff
path: root/repo/gn/gn.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/gn/gn.xibuild')
-rw-r--r--repo/gn/gn.xibuild26
1 files changed, 26 insertions, 0 deletions
diff --git a/repo/gn/gn.xibuild b/repo/gn/gn.xibuild
new file mode 100644
index 0000000..634b9d1
--- /dev/null
+++ b/repo/gn/gn.xibuild
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+NAME="gn"
+DESC="Meta-build system that generates build files for Ninja"
+
+MAKEDEPS="python"
+
+SOURCE="https://gn.googlesource.com/gn.git"
+
+ADDITIONAL="
+python3.patch
+"
+
+build() {
+ ./build/gen.py
+ ninja -C out
+}
+
+check() {
+ ./out/gn_unittests
+}
+
+package() {
+ install -Dm755 out/gn "$PKG_DEST"/usr/bin/gn
+}
+