pull/2/head
jaysunxiao 2022-03-25 11:37:22 +08:00
parent 79d50b91be
commit ccc3462e1a
3 changed files with 54 additions and 2 deletions

View File

@ -101,8 +101,6 @@ opt是optimized production template的缩写是优化过后的模板这个
```
scons platform=windows use_lto=yes # MinGW的编译环境使用这个参数可以让发布的体积更加小但是需要更多的机器内存
scons platform=windows vsproj=yes # generate the solution
```
# Android Compile
@ -117,3 +115,23 @@ scons -j15 platform=windows use_mingw=yes
scons -j15 platform=android use_mingw=yes target=release android_arch=arm64v8
```
# 使用Visual Studio调试Godot的源代码
- scons platform=windows vsproj=yes
```
使用命令创建vs的解决方案
```
- 再使用Visual Studio双击打开sln解决方案
- 设置调试参数
![Image text](image/vs12.JPG)
# 使用Clion调试Godot的源代码
- 使用Clion打开项目的文件根目录
- Clion会让你选择一个CMake文件选择platform/android/java/nativeSrcsConfigs/CMakeLists.txt
- 在Terminal控制台使用命令打开godot编辑器godot.windows.tools.64.exe --editor --path D:/github/godot-project-test
- 然后Attache到godot的process

BIN
compile/image/vs12.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 547 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/vs12.JPG-5c547e0975b2bdf832a9b9b6ff9bf767.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://compile/image/vs12.JPG"
dest_files=[ "res://.import/vs12.JPG-5c547e0975b2bdf832a9b9b6ff9bf767.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0