Made mono tool only get loaded when the dotnet bindings are getting built
This commit is contained in:
parent
20f909ec91
commit
2f479a010d
1 changed files with 5 additions and 1 deletions
|
|
@ -9,9 +9,13 @@ vars.Add(PathVariable('DESTDIR', "Root directory to install in (useful for packa
|
||||||
vars.Add(PathVariable('prefix', "Where to install in the FHS", "/usr/local", PathVariable.PathAccept))
|
vars.Add(PathVariable('prefix', "Where to install in the FHS", "/usr/local", PathVariable.PathAccept))
|
||||||
vars.Add(ListVariable('bindings', 'Language bindings to build', 'none', ['cpp', 'dotnet', 'perl', 'php', 'python', 'ruby']))
|
vars.Add(ListVariable('bindings', 'Language bindings to build', 'none', ['cpp', 'dotnet', 'perl', 'php', 'python', 'ruby']))
|
||||||
|
|
||||||
|
tools = ['default', 'scanreplace']
|
||||||
|
if 'dotnet' in ARGUMENTS.get('bindings', []):
|
||||||
|
tools.append('csharp/mono')
|
||||||
|
|
||||||
env = Environment(ENV = {'PATH' : os.environ['PATH']},
|
env = Environment(ENV = {'PATH' : os.environ['PATH']},
|
||||||
variables = vars,
|
variables = vars,
|
||||||
tools=['default', 'scanreplace', 'csharp/mono'],
|
tools=tools,
|
||||||
toolpath=['tools'])
|
toolpath=['tools'])
|
||||||
|
|
||||||
if not 'bindings' in env:
|
if not 'bindings' in env:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue