|
Boost-Build : |
From: Zhon Johansen (zhon.johansen_at_[hidden])
Date: 2005-11-14 19:48:23
Hello folks,
I really like how things are progressing. The documentation is really
taking shape.
I am looking for advice on handling my generated header and cpp test files.
The following is my testing root level Jamfile:
make mock_header.h : real_header.h : make-mock-header ;
actions make-mock-header
{
ruby generate_mock_header $(2) > $(1)
}
project : : requirements
<include>mock_header.h # Is this how i should generate my
header?
# <include> output path? What variable do i use for the
output path?
;
build-project test_dir1 ;
build-project test_dir2 ;
# End of Jamfile
Here is a example of one subdirectory test Jamfile:
make runner.cpp : [ glob *test.h ] : make-test-runner ;
actions make-test-runner
{
perl cxxtestgen.pl -o $(1) $(2)
}
exe runner :
runner.cpp
# list of tested files
;
# End of Jamfile
The files in *test.h #include "mock_header.h"
How do I either
1) pass the output path to the project?
2) or change where the header file is output?
Secondly, how do I remove the duplication of make runner.cpp : ... from
each of my sub directories?
Finally, do you have any other advice on simplify the sub directory Jamfile?
Maybe something like the following:
include <something_testing>
LIST_FILES_TO_BE_TESTES = ...
Thanks,
Zhon
-----
www.xputah.org
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