$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-09-10 05:16:50
Say a source file a.cpp has
#incude "a_parser.h"
and "a_parser.h" is generated by some build action and placed into build
dir. We need two things to make it
work
1. Add the directory where a_parser.h is placed to the include path when
compiling a.cpp
2. Make sure a.cpp depends on "a_parser.h". This can be quite simply
accomplished if the dependency scanner
will check is there's intermediate file called "a_parser.h" in the
dependency graph for the given main target.
There's a question:
exe a : a.cpp ;
exe b : b.cpp a.whl ;
Here, a_parser.h will be generated when constructing main target b, and
we can't reliable set a dependency from
a.cpp to a_parser.h. I think this is not a big problem.
Are there any objections to the above ideas?
- Volodya