Hello,
I'm trying to use SCons for building a piece of software that depends on a library that is available in sources that are installed in system. For example in /usr/share/somewhere/src
. *.cpp
in that directory should be built into static library and linked with my own code. Library sources have no SConscript
among them.
Since library is in system directory I have no rights and don't want to put build artefacts somewhere under /usr
. /tmp
or .build
in current working directory is OK. I suspect this can be done easily but I've got entangled by all these SConscripts
and VariantDirs
.
env = Environment()
my_things = env.SConscript('src/SConsctipt', variant_dir='.build/my_things')
sys_lib = env.SConscript(????)
result = env.Program('result', [my_things, sys_lib])
What is intended way to solve the problem with SCons?