I use a wrapper method to combine static libraries as shown below.
def MergeLibs(env, tgt, src_list)
....
return lib
and used as,
lib = env.MergeLibs(tgt, src_lists)
env.Depends(lib, <path_to_lib1>)
...
env.Depends(lib, <path_to_libn>)
But MergeLibs() method is being executed in scons parse phase itself.
How can I use dependencies here.
Thanks
Well I’m not too sure on the details of the MergeLib step but it seems like you would want something else to depend on your merge lib step.. like your final program?
This gives me the output:
So its definitely still read during the parse phase (I think it has to be) but it should get you what you want.