[Scons-users] Grouped dependency
Dirk Bächle
tshortik at gmx.de
Tue Apr 26 03:09:55 EDT 2016
Hi,
On 26.04.2016 01:51, William Blevins wrote:
> Arvid,
>
> You cannot make them all depend on each other because that will create dependency cycles.
hmmm, is that really true? What if Arvid would write his own Object builder, taking a list of sources as argument...but it would
always only process the first list entry to actually produce (=emit) an object?
Then one could wrap this into an ObjectGroup pseudoBuilder, such that on
ObjectGroup(['a.cpp','b.cpp','c.cpp'])
it would internally call
ArvidsObject('a.o', ['a.cpp', 'b.cpp', 'c.cpp'])
ArvidsObject('b.o', ['b.cpp', 'a.cpp', 'c.cpp'])
ArvidsObject('c.o', ['c.cpp', 'b.cpp', 'a.cpp'])
. As long as all source files initially exist and don't have to be generated by SCons itself this could actually work.
Just a quick gedankenexperiment...
Best regards,
Dirk
More information about the Scons-users
mailing list