1 <?xml version=
"1.0" encoding=
"utf-8"?>
5 Purpose: Declarations for unix slaves
6 Author: Michael Wetherell
8 Copyright: (c) Michael Wetherell
9 Licence: wxWidgets licence
12 <bot xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
13 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
15 <xi:include href=
"defs.xml"/>
18 build - Override <build> to add a slave lock. This has the effect of
19 serialising all the builds on this machine
21 <xsl:template name=
"build">
22 <xsl:param name=
"content"/>
25 <xsl:copy-of select=
"$content"/>
30 checkout - checks out to a shared directory
32 Checks out to a directory '../$branch' shared between builds. Then creates
33 a directory 'build' for this job to build in, and 'src' which is a link to
34 the shared sources. This relies on all builds for the same branch being
35 serialised with lock so that one build doesn't update the sources while
36 another is building them.
41 <checkout branch="branches/WX_2_8_BRANCH"/>
44 <xsl:template name=
"checkout">
45 <xsl:param name=
"content"/>
46 <xsl:param name=
"branch" select=
"'trunk'"/>
47 <xsl:variable name=
"nodes" select=
"exsl:node-set($content)"/>
49 <xsl:if test=
"not($nodes/svnurl)">
50 <xsl:if test=
"not($nodes/baseURL)">
51 <baseURL><SVN_URL/></baseURL>
53 <xsl:if test=
"not($nodes/defaultBranch)">
54 <defaultBranch><xsl:value-of select=
"$branch"/></defaultBranch>
57 <xsl:if test=
"not($nodes/workdir)">
58 <workdir>../
<xsl:value-of select=
"$branch"/></workdir>
60 <xsl:copy-of select=
"$content"/>
63 <description>creating build directory
</description>
64 <descriptionDone>create build directory
</descriptionDone>
67 rm -rf build
&&
68 mkdir build
&&
69 ln -sf ../
<xsl:value-of select=
"$branch"/> src
75 configure - use '../src/configure' as the default configure command,
76 include disable-precomp-headers in the default options and
77 post process the Makefiles to use ccache.
79 Usage: <configure options="-with-foobar"/>
81 <xsl:template name=
"configure">
82 <xsl:param name=
"content"/>
83 <xsl:param name=
"options"/>
85 <copy-with-defaults content=
"{$content}">
86 <command>../src/configure --disable-precomp-headers
<xsl:value-of select=
"normalize-space($options)"/></command>
88 <command>find . -name Makefile | xargs perl -pi -e 's/^(?:CC|CXX) = /$
&ccache /'
</command>