wiki:CMTInWaf

Version 3 (modified by /C=FR/O=CNRS/OU=UMR8607/CN=Christian Arnault/emailAddress=arnault@…, 12 years ago) (diff)

--

Implementing CMT2 on top of Waf

Principle:

  • every package is still packaged using the CMT style:
    • a cmt directory with its requirements file
      • the requirements files hold:
        • used packages
        • declarations of the constituents (libraries, programs, ...)
        • specific macro declarations
    • a src directory containing the sources
  • the Project still contains a cmt directory with its own requirements file
    • this requirements holds:
      • the list of used packages of the projects
      • generic macro definitions

Only one standard & generic wscript is needed for managing the whole project.

import sys
import os

import cmt

#top = '.'
#out = 'win32'

def options (ctx):
  cmt.options (ctx)
  pass

def configure (ctx):
  top, out = cmt.init (ctx)
  cmt.configure (ctx)

def build (ctx):
  cmt.build (ctx)

the build is launched using:

> waf.py configure build

and the setting on my windows machine is:

set PATH=c:\Install\Python27;%PATH%
set PATH=c:\Install\Waf;%PATH%
set PYTHONPATH=c:\Arnault\CMT2\Waf;%PYTHONPATH%

The SVN repository for the CMT module

The SVN repository for the testbed

Attachments (1)

  • cmt.py (18.5 KB) - added by /C=FR/O=CNRS/OU=UMR8607/CN=Christian Arnault/emailAddress=arnault@… 12 years ago.

Download all attachments as: .zip