I am trying to use SCons to create a piece of software that depends on the library available in the sources installed on the system. For example, in /usr/share/somewhere/src. *.cppin this directory should be built into the static library and linked to my own code. Libraries do not have SConscriptamong them.
Since the library is located in the system directory, I do not have any rights and do not want to put assembly artifacts somewhere in /usr. /tmpor .buildin the current working directory in order. I suspect that this can be done easily, but I got confused in all of these SConscriptsand 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 to solve the problem with SCons?
source
share