[Scons-users] Help handling dependency on external library
Pedro Larroy
pedro.larroy.lists at gmail.com
Fri Aug 31 09:28:31 EDT 2012
Hi
I'm not able to handle a dependecy on an external library that has to
be built with an external command, what's the way to do it?
I tried to execute scons from a 'Command' builder but it's not run by Scons.
The file +-3rd-party/mongo-cxx-driver/libmongoclient_release.a in the
tree doesn't have further dependencies....
My Sconstruct looks like:
mongoclient_file =
File('3rd-party/mongo-cxx-driver/libmongoclient_{0}.a'.format(g_CONFIGURATION['build']))
mongoclient_compilation = env.Command(mongoclient_file,
None,
"scons -C 3rd-party/mongo-cxx-driver/ --build={0} -j
{1}".format(g_CONFIGURATION['build'], PARALLELISM))
env.Depends('build/release/mmcc', mongoclient_file)
Thanks.
More information about the Scons-users
mailing list