summaryrefslogtreecommitdiff
path: root/pcr/waf/building-waf.md
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/waf/building-waf.md')
-rw-r--r--pcr/waf/building-waf.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/pcr/waf/building-waf.md b/pcr/waf/building-waf.md
new file mode 100644
index 000000000..3cbe1a0e2
--- /dev/null
+++ b/pcr/waf/building-waf.md
@@ -0,0 +1,14 @@
+# Building a custom waf binary
+
+Waf is primarily intended to be distributed with the project using it. The Arch Linux package makes waf usable directly, but also brings all files necessary to compose a custom binary for your project. To do so, create a temporary directory, link all the necessary resources together and build it.
+
+cd $(mktemp -d)
+ln -s /usr/share/waf/wscript .
+ln -s /usr/bin/waf waf-light
+ln -s /usr/lib/waf/waflib .
+mkdir zip
+waf configure build --make-waf --tools=''
+
+The last line allows you to choose tools to include.
+
+After this process, there should be a `waf` binary ready in the current working directory.