[Scons-users] Making SConscript dependent on another SConscript's target present in the same directory (target depency across SConscripts files)
Dirk Bächle
tshortik at gmx.de
Fri Jun 20 07:39:14 EDT 2014
Hi Harry,
On 20.06.2014 12:35, Harry Cruise wrote:
> Hello,
>
> root_dir
> SConstruct
> -- dir_1
> -- SConscript.a
> -- SConscript.b
> -- dir_2
> -- SConscript.a
> -- SConscript.b
>
> ...
>
> -- dir_n
> -- SConscript.a
> -- SConscript.b
>
> How can I add dependency in SConscript.b such that it first executes
> SConscript.a ?
>
in SCons you don't specify dependencies between SConscripts/SConstructs,
but only between the target and source nodes, that you declare and
describe within those build specification files. Before the build phase
starts, all of these specs get included recursively, a little bit like C
headers in the preprocessing step before the compile. In this "reading"
phase, the order of the single build commands doesn't matter, they are
not executed yet.
Once all SConscripts are read in, or expanded, SCons starts the build
phase and resolves dependencies on the Node level...not like automake on
the directory level!
This is an important difference, and if you didn't quite get it yet,
continue to ask questions please.
Best regards,
Dirk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140620/56041497/attachment.html>
More information about the Scons-users
mailing list