From ce09d0c5e13b9f7d933849fcbc58d39ca4e6adcb Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Fri, 22 May 2020 03:12:54 +0200 Subject: [PATCH] Add SCons option to not build C# solutions --- modules/mono/SCsub | 2 +- modules/mono/config.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/mono/SCsub b/modules/mono/SCsub index 9d49625137b..2bfeea9d2e6 100644 --- a/modules/mono/SCsub +++ b/modules/mono/SCsub @@ -31,7 +31,7 @@ env_mono = conf.Finish() mono_configure.configure(env, env_mono) -if env_mono['tools'] and env_mono['mono_glue']: +if env_mono['tools'] and env_mono['mono_glue'] and env_mono['build_cil']: # Build Godot API solution import build_scripts.api_solution_build as api_solution_build api_sln_cmd = api_solution_build.build(env_mono) diff --git a/modules/mono/config.py b/modules/mono/config.py index d67d770e186..f24c0f57119 100644 --- a/modules/mono/config.py +++ b/modules/mono/config.py @@ -31,6 +31,7 @@ def configure(env): ) envvars.Add(BoolVariable("mono_static", "Statically link mono", default_mono_static)) envvars.Add(BoolVariable("mono_glue", "Build with the mono glue sources", True)) + envvars.Add(BoolVariable("build_cil", "Build C# solutions", True)) envvars.Add( BoolVariable( "copy_mono_root", "Make a copy of the mono installation directory to bundle with the editor", False