scons: Explain out-of-tree build and Repository

This commit is contained in:
anatoly techtonik 2014-05-02 16:24:35 +03:00
parent a6479c5b4d
commit 81510068e4

View file

@ -110,7 +110,12 @@ opts.AddVariables(
# Setup
#
toolpath = ["scons"] + map(lambda x : x.abspath + "/scons", Dir(".").repositories)
toolpath = ["scons"]
for repo in Dir(".").repositories:
# SCons repositories are additional dirs to look for source and lib files.
# It is possible to make out of tree builds by running SCons outside of this
# source code root and supplying this path with -Y option.
toolpath.append(repo.abspath + "/scons")
sys.path = toolpath + sys.path
env = Environment(tools=["tar", "gettext", "install", "python_devel", "scanreplace"], options = opts, toolpath = toolpath)