Godot引擎源码编译

# 安装python Scons插件
pip install Scons

# clone仓库
git clone https://github.com/godotengine/godot.git
cd godot
# 切换到稳定发布版本
git checkout 4.1.1-stable
# 编译并生成godot.sln, (编译禁用优化,带调试符号)
scons p=windows vsproj=yes debug_symbols=yes optimize=none target=editor 

vs 命令: scons platform=windows vsproj=yes module_mono_enabled=yes

                 E:\txh\engine\godot_4.4_Dev2\godot>.\bin\godot.windows.editor.x86_64.mono.exe  --headless --generate-mono-glue modules/mono/glue

包含 C# 脚本的命令:

//编译 编辑器
scons p=windows target=editor module_mono_enabled=yes

//生成胶水来源 (如果用VS工具编译,这一步就不需要了,自动生成)
./bin/godot.windows.editor.x86_64.mono --generate-mono-glue modules/mono/glue

//增加 NuGet 包源(如果用VS工具编译,这一步就不需要了,自动生成)。也就c# API(我是这么理解的,意思可能不太对)
 /modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=windows

 

posted @ 2024-01-09 15:03  porter_代码工作者  阅读(432)  评论(0)    收藏  举报