Parcourir la source

Add SCons option to not build C# solutions

Ignacio Etcheverry il y a 5 ans
Parent
commit
e3a54152e4
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1 1
      modules/mono/SCsub
  2. 1 0
      modules/mono/config.py

+ 1 - 1
modules/mono/SCsub

@@ -29,7 +29,7 @@ if env_mono["tools"] or env_mono["target"] != "release":
 
 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
 

+ 1 - 0
modules/mono/config.py

@@ -30,6 +30,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