scons

scons cant find iulib library

iulib is already installed in /usr/local/include.But scons fails to find it ### iulib env.Append(LIBPATH=["${iulib}/lib"]) env.Append(CPPPATH=["${iulib}/include"]) env.Append(LIBS=["iulib"]) assert conf.CheckHeader("colib/colib.h",language="C++") assert conf.CheckLibWithHeader('iulib','iulib/iulib.h','C++') -------------------------...

How to use Scons to compile same objects in different environments with Glob?

I have a C++ project builds with Scons. At first I have only the optimized version to compile, it works fine. Then I also need a debug version, then I add another environment for it. Here is the Scons code: env = Environment() opt = env.Clone(CCFLAGS=['-pthread', '-O3', '-Wall']) opt_objs = opt.Glob('src/*.cpp') prog = opt.Program('p...

Scons Hierarchical Builds with Repository directory.

I have an SCons project set up as follows: proj/ SConstruct src/ c/ h/ app1/SConscript app2/SConscript ... All source/header files for each application are located in src/c and src/h. At first step I created a SConstruct in app1 which use the Repository function. ... src=Split("main.c ...