Version 1 (modified by 12 years ago) (diff) | ,
---|
Implementing CMT2 on top of Waf
Principle:
- every package is still packaged using the CMT style:
- a
cmt
directory with itsrequirements
file- the
requirements
files hold:- used packages
- declarations of the constituents (libraries, programs, ...)
- specific macro declarations
- the
- a
src
directory containing the sources
- a
- the Project still contains a
cmt
directory with its ownrequirements
file- this
requirements
holds:- the list of used packages of the projects
- generic macro definitions
- this
Only one generic wscript
is needed for managing the whole project.
import sys import os import cmt top, out = cmt.init () def options (ctx): cmt.options (ctx) def configure (ctx): cmt.configure (ctx) def build (ctx): cmt.build (ctx)
the build is launched using:
> waf.py configure build
Attachments (1)
- cmt.py (18.5 KB) - added by 12 years ago.
Download all attachments as: .zip