Generate command line help text for `mono` module

(cherry picked from commit 94b6c1363c)
This commit is contained in:
Andrii Doroshenko (Xrayez) 2020-03-17 17:26:09 +02:00 committed by Rémi Verschelde
parent 9d0518cf80
commit 8fedcfbed2
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@ def configure(env):
env.use_ptrcall = True env.use_ptrcall = True
env.add_module_version_string('mono') env.add_module_version_string('mono')
from SCons.Script import BoolVariable, PathVariable, Variables from SCons.Script import BoolVariable, PathVariable, Variables, Help
envvars = Variables() envvars = Variables()
envvars.Add(PathVariable('mono_prefix', 'Path to the mono installation directory for the target platform and architecture', '', PathVariable.PathAccept)) envvars.Add(PathVariable('mono_prefix', 'Path to the mono installation directory for the target platform and architecture', '', PathVariable.PathAccept))
@ -18,6 +18,7 @@ def configure(env):
envvars.Add(BoolVariable('copy_mono_root', 'Make a copy of the mono installation directory to bundle with the editor', False)) envvars.Add(BoolVariable('copy_mono_root', 'Make a copy of the mono installation directory to bundle with the editor', False))
envvars.Add(BoolVariable('xbuild_fallback', 'If MSBuild is not found, fallback to xbuild', False)) envvars.Add(BoolVariable('xbuild_fallback', 'If MSBuild is not found, fallback to xbuild', False))
envvars.Update(env) envvars.Update(env)
Help(envvars.GenerateHelpText(env))
if env['platform'] == 'javascript': if env['platform'] == 'javascript':
# Mono wasm already has zlib builtin, so we need this workaround to avoid symbol collisions # Mono wasm already has zlib builtin, so we need this workaround to avoid symbol collisions