Add and use mono build variables with cloned environment.

This commit is contained in:
Jonathan Tinkham 2018-02-10 20:48:46 -07:00
parent 31dd21a8d9
commit 70d281b946
1 changed files with 2 additions and 2 deletions

View File

@ -57,10 +57,10 @@ if env['tools']:
vars = Variables() vars = Variables()
vars.Add(BoolVariable('mono_glue', 'Build with the mono glue sources', True)) vars.Add(BoolVariable('mono_glue', 'Build with the mono glue sources', True))
vars.Add(BoolVariable('xbuild_fallback', 'If MSBuild is not found, fallback to xbuild', False)) vars.Add(BoolVariable('xbuild_fallback', 'If MSBuild is not found, fallback to xbuild', False))
vars.Update(env) vars.Update(env_mono)
# Glue sources # Glue sources
if env['mono_glue']: if env_mono['mono_glue']:
env_mono.add_source_files(env.modules_sources, 'glue/*.cpp') env_mono.add_source_files(env.modules_sources, 'glue/*.cpp')
else: else:
env_mono.Append(CPPDEFINES=['MONO_GLUE_DISABLED']) env_mono.Append(CPPDEFINES=['MONO_GLUE_DISABLED'])