1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +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.

(cherry picked from commit b61ffef0ab)
This commit is contained in:
Ignacio Etcheverry
2020-05-09 17:09:49 +02:00
committed by Rémi Verschelde
parent 34132d2f67
commit 683e19306e
4 changed files with 43 additions and 132 deletions

View File

@@ -13,12 +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.