scons: Explain out-of-tree build and Repository
This commit is contained in:
parent
a6479c5b4d
commit
81510068e4
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue