wiki:TheCompilers

Regression

back to code-shop / to wiki


Compilers

At the moment, codeshop libraries are buld on the following platforms/compilers

platform compiler
windows xp vc 7.1
mac os x gcc 4.0
ubuntu dapper gcc 4.0

Continuous build

We used to use our own continuous build system, which was somewat of a mess in ruby/python/shellscript (it can still be found in bin/countinous.build), but we recently switched to 'cerbereus'

Try this  link:

http://cerberus.rubyforge.org/

Setting up for bjam is quite simple: all you need to do is download and install cerberus and point it to your svn.

Cerberus

Cerberus is a ruby app, so you will need to install this first, for instance the ' one click rubyinstaller'.

Then you can install cerberus:

gem install cerberus --include-dependencies

After which you can setup your project:

cerberus add (DIR|SVN_URL) APPLICATION_NAME=some_app RECIPIENTS=dev1@project.com

This will create a .cerberus directory filled with a config dir and work dir containing your project.

Then you go to ~/.cerberus and edit config.yml file:

  • options for your mail server (or other notifers like jabber ...)

You will also need a 'builder' - the tool that builds your software, for bjam this will be:

builder:
  bjam:
    build_dir: # root of you src tree
    cmd: # build exe
    target: # targets from jamfile/directories

An example:

builder:
  bjam:
    build_dir: d:\codeshop\open\trunk\src
    cmd: d:\codeshop\open\trunk\bin\bjam.exe
    target: av dsl example net proc util

nnCron

On windows cron is a bit tricky - you will need HOME (or CERBERUS_HOME) in your path. Use the windows system settings to set it globally. On our buildmachine, I have a

set HOME=d:\codeshop

You will also need 'svn' in your PATH!