summaryrefslogtreecommitdiff
path: root/pcr/waf/building-waf.md
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-01-23 05:38:08 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-01-23 05:38:08 +0100
commit7f51bf94108bfabf5a8b619134dd69d020dd4b4e (patch)
tree56928e99d11f97373ce6149465e4eb33c4da5c13 /pcr/waf/building-waf.md
parent3296af8ee6028bb02aa4833848ddc4917053bf38 (diff)
downloadabslibre-7f51bf94108bfabf5a8b619134dd69d020dd4b4e.tar.gz
abslibre-7f51bf94108bfabf5a8b619134dd69d020dd4b4e.tar.bz2
abslibre-7f51bf94108bfabf5a8b619134dd69d020dd4b4e.zip
pcr/waf: updated to 1.9.11
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.