|
Boost-Build : |
From: Stephan Diederich (stephan.diederich_at_[hidden])
Date: 2006-09-13 05:07:31
Hi there,
recently I thought about switching from qmake to bjam for our builds,
and I encountered the following problem:
Given 2 libraries A and B.
B depends on A, and additionally a file in B #include's a generated
header from an ui-file in A.
Now there are 2 problems. A *must* be build before B (as the generated
header doesn't exist otherwise), and additionally the temporary
include (where the generated header goes) must be added for library B.
Er, did anyone understand me? ;)
Here is what I have atm:
toplevel project-root.jam (make the targets visible):
use-project /qtlibs/A : qtlibs/A ;
use-project /qtlibs/B : qtlibs/B ;
qtlibs/A Jamfile.v2:
lib A
: [ glob *.ui ] [ glob *.cpp ] [ glob *.h ]
;
qtlibs/B Jamfile.v2:
lib B
: [ glob *.ui ] [ glob *.cpp ] [ glob *.h ]
: <use>/qtlibs/A
: <library>/qtlibs/A
;
Thanks,
Stephan
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk