1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Mono: Use msbuild instead of nuget.exe for restoring

- Make GodotTools output directly to the SCons output directory.
- Removed xbuild_fallback from the build system.
This commit is contained in:
Ignacio Etcheverry
2020-05-09 17:09:49 +02:00
parent 825a89d0da
commit b61ffef0ab
4 changed files with 25 additions and 132 deletions

View File

@@ -13,13 +13,9 @@ def build_godot_tools(source, target, env):
solution_path = os.path.join(module_dir, "editor/GodotTools/GodotTools.sln")
build_config = "Debug" if env["target"] == "debug" else "Release"
# Custom build target to make sure output is always copied to the data dir.
extra_build_args = ["/Target:Build;GodotTools:BuildAlwaysCopyToDataDir"]
from .solution_builder import build_solution
from .solution_builder import build_solution, nuget_restore
nuget_restore(env, solution_path)
build_solution(env, solution_path, build_config, extra_build_args)
build_solution(env, solution_path, build_config, restore=True)
# No need to copy targets. The GodotTools csproj takes care of copying them.