<?xml version="1.0" encoding="utf-8"?><!-- Name: include/csleobuild.xml
Purpose: Declarations for the csleobuild slave
Author:
RCS-ID: $Id$
Copyright:
Licence: wxWidgets licence
--><botxmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:xi="http://www.w3.org/2001/XInclude"><xi:includehref="defs.xml"/><!-- build - Override <build> to add a slave lock. This has the effect of
serialising all the builds on this machine
--><xsl:templatename="build"><xsl:paramname="content"/><build><lock>slave</lock><xsl:copy-ofselect="$content"/></build></xsl:template><!-- checkout - checks out to a shared directory
Checks out to a directory '../$branch' shared between builds. Then creates
a directory 'build' for this job to build in, and 'src' which is a link to
the shared sources. This relies on all builds for the same branch being
serialised with lock so that one build doesn't update the sources while
another is building them.
Usage typically just:
<checkout/>
for the trunk, or:
<checkout branch="branches/WX_2_8_BRANCH"/>
to checkout a branch.
--><xsl:templatename="checkout"><xsl:paramname="content"/><xsl:paramname="branch"select="'trunk'"/><xsl:variablename="nodes"select="exsl:node-set($content)"/><svn><xsl:iftest="not($nodes/svnurl)"><xsl:iftest="not($nodes/baseURL)"><baseURL><SVN_URL/></baseURL></xsl:if><xsl:iftest="not($nodes/defaultBranch)"><defaultBranch><xsl:value-ofselect="$branch"/></defaultBranch></xsl:if></xsl:if><xsl:iftest="not($nodes/workdir)"><workdir>../<xsl:value-ofselect="$branch"/></workdir></xsl:if><xsl:copy-ofselect="$content"/></svn><sourcecommand><description>creating build directory</description><descriptionDone>create build directory</descriptionDone><command>
rm -rf build &&
mkdir build &&
ln -sf ../<xsl:value-ofselect="$branch"/> src
</command></sourcecommand></xsl:template><!-- configure - use '../src/configure' as the default configure command,
include disable-precomp-headers in the default options and
post process the Makefiles to use ccache.
Usage: <configure options="-with-foobar"/>
--><xsl:templatename="configure"><xsl:paramname="content"/><xsl:paramname="options"/><configure><copy-with-defaultscontent="{$content}"><command>../src/configure --disable-precomp-headers <xsl:value-ofselect="normalize-space($options)"/></command></copy-with-defaults><command>find . -name Makefile | xargs perl -pi -e 's/^(?:CC|CXX) = /$&ccache /'</command></configure></xsl:template><!-- run-tests - build step to run the test suites.
--><xsl:templatename="run-tests"><xsl:paramname="content"/><test><defaultscontent="{$content}"><description>running tests</description><descriptionDone>run tests</descriptionDone><warnOnFailure/></defaults><copy-with-defaultscontent="{$content}"><command>
export DYLD_LIBRARY_PATH=../lib
cd tests &&
./test &&
./test_gui
</command></copy-with-defaults></test></xsl:template></bot>