Skip to content

Commit

Permalink
update vscode templates
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitalita committed Nov 22, 2024
1 parent 90d268a commit 46d6f99
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 115 deletions.
32 changes: 0 additions & 32 deletions .vscode/c_cpp_properties.json.template

This file was deleted.

4 changes: 3 additions & 1 deletion .vscode/extensions.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Recommended extensions for developing gdsdecomp
"recommendations": [
"ms-python.black-formatter",
"ms-vscode.cpptools"
"ms-vscode.cpptools",
"llvm-vs-code-extensions.vscode-clangd",
"llvm-vs-code-extensions.lldb-dap"
]
}
51 changes: 46 additions & 5 deletions .vscode/launch.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "externalTerminal"
"console": "integratedTerminal",
"preLaunchTask": "Build: editor dev_build"
},
// Use this to launch the GDRE standalone GUI, this uses the debug editor binary
{
Expand All @@ -38,7 +39,8 @@
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "internalConsole"
"console": "integratedTerminal",
"preLaunchTask": "Build: editor dev_build"
},
// Use this to launch the standalone editor with the template_release binary
{
Expand All @@ -54,7 +56,8 @@
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "internalConsole"
"console": "integratedTerminal",
"preLaunchTask": "Build: editor template_release"
},
// This launches the editor to edit the standalone Godot project
{
Expand All @@ -71,7 +74,8 @@
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "externalTerminal"
"console": "externalTerminal",
"preLaunchTask": "Build: editor dev_build"
},
{
"name": "(Windows) Launch Editor (test project) (editor Optimized)",
Expand All @@ -88,7 +92,44 @@
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "internalConsole"
"console": "integratedTerminal",
"preLaunchTask": "Build: editor optimized"
},
{
"name": "(macOS) Launch CLI recovery (editor dev)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/godot.macos.editor.dev.arm64",
"args": [
"--headless",
"--path",
"${workspaceFolder}/modules/gdsdecomp/standalone",
// Put the pck you want to test here
"--recover=${workspaceFolder}/../wherever_the_pck_you_want_to_test_is",
"--output-dir=${workspaceFolder}/../wherever_you_want_the_output_to_be"
],
"cwd": "${workspaceFolder}",
"visualizerFile": "${workspaceFolder}/platform/windows/godot.natvis",
"MIMode": "lldb",
"preLaunchTask": "Build: editor dev_build"
},
{
"name": "(Linux) Launch CLI recovery (editor dev)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/bin/godot.linux.editor.dev.x86_64",
"args": [
"--headless",
"--path",
"${workspaceFolder}/modules/gdsdecomp/standalone",
// Put the pck you want to test here
"--recover=${workspaceFolder}/../wherever_the_pck_you_want_to_test_is",
"--output-dir=${workspaceFolder}/../wherever_you_want_the_output_to_be"
],
"cwd": "${workspaceFolder}",
"visualizerFile": "${workspaceFolder}/platform/windows/godot.natvis",
"MIMode": "gdb",
"preLaunchTask": "Build: editor dev_build"
},
]
}
34 changes: 27 additions & 7 deletions .vscode/settings.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,16 @@
"typeinfo": "cpp",
"xstddef": "cpp"
},
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modificationsIfAvailable",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
"editor.formatOnSave": true
},
"black-formatter.args": [
"-l 120"
],
"[cpp]": {
"editor.formatOnSave": true
},
"git.scanRepositories": [
"${workspaceFolder}",
Expand All @@ -106,10 +112,24 @@
"gitlens.detectNestedRepositories": true,
"gitlens.advanced.repositorySearchDepth": 4,
"C_Cpp.errorSquiggles": "enabled",
"search.useIgnoreFiles": false,
"search.useGlobalIgnoreFiles": true,
"search.useParentIgnoreFiles": true,
"black-formatter.args": [
"-l 120"
// "search.useIgnoreFiles": false,
// "search.useGlobalIgnoreFiles": true,
// "search.useParentIgnoreFiles": true,
"files.exclude": {
"**/*.x86_64.o": true,
"**/*.x86_64.a": true,
"**/*.x86_64.o.d": true,
"**/*.x86_64.san.o": true,
"**/*.x86_64.san.a": true,
"**/*.arm64.o": true,
"**/*.arm64.a": true,
"**/*.arm64.o.d": true,
"**/*.arm64.san.o": true,
"**/*.arm64.san.a": true
},
"dotnet.defaultSolution": "disable",
"clangd.fallbackFlags": [
"-I${workspaceFolder}",
"-I${workspaceFolder}/modules/gdsdecomp"
]
}
156 changes: 86 additions & 70 deletions .vscode/tasks.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@
"command": "scons",
"label": "Build: editor dev_build",
"windows": {
"args": [
"platform=windows",
"dev_build=yes",
"vsproj=yes",
"target=editor",
"compiledb=yes",
"deprecated=yes",
"minizip=yes"
],
// optional, uncomment if it has difficulty finding Visual Studio
// "options": {
// "shell": {
Expand All @@ -35,26 +26,35 @@
// }
// }
},
"osx": {
"args": [
"platform=macos",
"dev_build=yes",
"target=editor",
"compiledb=yes",
"deprecated=yes",
"minizip=yes"
],
"args": [
"dev_build=yes",
"target=editor",
"compiledb=yes",
"deprecated=yes",
"minizip=yes",
"tests=yes"
],
},
{
"type": "shell",
"group": {
"kind": "build",
"isDefault": false
},
"linux": {
"args": [
"platform=linuxbsd",
"dev_build=yes",
"target=editor",
"compiledb=yes",
"deprecated=yes",
"minizip=yes"
]
}
"problemMatcher": [
"$msCompile"
],
"command": "scons",
"label": "Build: editor dev_build with sanitizers",
"args": [
"dev_build=yes",
"target=editor",
"compiledb=yes",
"deprecated=yes",
"minizip=yes",
"tests=yes",
"use_asan=yes"
],
},
{
"type": "shell",
Expand All @@ -64,64 +64,63 @@
],
"command": "scons",
"label": "Build: editor optimized",
"windows": {
"args": [
"platform=windows",
"dev_build=no",
"debug_symbols=no",
"target=editor",
"deprecated=yes",
"minizip=yes"
],
// optional, uncomment if it has difficulty finding Visual Studio
// "options": {
// "shell": {
// "executable": "cmd.exe",
// "args": [
// "/d",
// "/c",
// "\"\"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\" amd64\"",
// "&"
// ]
// }
// }
"args": [
"dev_build=no",
"debug_symbols=no",
"target=editor",
"deprecated=yes",
"minizip=yes"
],
},
{
"type": "shell",
"group": "build",
"problemMatcher": [
"$msCompile"
],
"label": "Build: template_debug arm64",
"linux": {
"command": "scons arch=arm64 platform=linuxbsd target=template_debug module_text_server_fb_enabled=yes minizip=yes debug_symbols=yes deprecated=yes optimize=size use_lto=yes use_volk=no no_editor_splash=yes module_camera_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_websocket_enabled=no module_csg_enabled=yes module_gridmap_enabled=yes use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libvorbis=yes builtin_libogg=yes disable_3d=no",
},
"osx": {
"args": [
"platform=macos",
"dev_build=no",
"debug_symbols=no",
"target=editor",
"deprecated=yes",
"minizip=yes"
],
"command": "scons arch=arm64 platform=macos target=template_debug optimize=size use_lto=yes use_volk=no module_text_server_fb_enabled=yes minizip=yes debug_symbols=yes deprecated=yes no_editor_splash=yes module_camera_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_websocket_enabled=no module_csg_enabled=yes module_gridmap_enabled=yes use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libvorbis=yes builtin_libogg=yes disable_3d=no",
},
"windows": {
"command": "scons arch=arm64 platform=windows target=template_debug module_text_server_fb_enabled=yes minizip=yes deprecated=yes no_editor_splash=yes module_camera_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_websocket_enabled=no module_csg_enabled=yes module_gridmap_enabled=yes use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libvorbis=yes builtin_libogg=yes disable_3d=no",
},
},
{
"type": "shell",
"group": "build",
"problemMatcher": [
"$msCompile"
],
"label": "Build: template_debug x86_64",
"linux": {
"args": [
"platform=linuxbsd",
"dev_build=no",
"debug_symbols=no",
"target=editor",
"deprecated=yes",
"minizip=yes"
]
}
"command": "scons arch=x86_64 platform=linuxbsd target=template_debug module_text_server_fb_enabled=yes minizip=yes debug_symbols=yes deprecated=yes optimize=size use_lto=yes use_volk=no no_editor_splash=yes module_camera_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_websocket_enabled=no module_csg_enabled=yes module_gridmap_enabled=yes use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libvorbis=yes builtin_libogg=yes disable_3d=no",
},
"osx": {
"command": "scons arch=x86_64 platform=macos target=template_debug optimize=size use_lto=yes use_volk=no module_text_server_fb_enabled=yes minizip=yes debug_symbols=yes deprecated=yes no_editor_splash=yes module_camera_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_websocket_enabled=no module_csg_enabled=yes module_gridmap_enabled=yes use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libvorbis=yes builtin_libogg=yes disable_3d=no",
},
"windows": {
"command": "scons arch=x86_64 platform=windows target=template_debug module_text_server_fb_enabled=yes minizip=yes deprecated=yes no_editor_splash=yes module_camera_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_websocket_enabled=no module_csg_enabled=yes module_gridmap_enabled=yes use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libvorbis=yes builtin_libogg=yes disable_3d=no",
},
},
{
"type": "shell",
"group": "build",
"problemMatcher": [
"$msCompile"
],
"label": "Build: template_release",
"label": "Build: template_release arm64",
"linux": {
"command": "scons platform=linuxbsd target=template_release tests=false module_text_server_fb_enabled=yes minizip=yes debug_symbols=no no_editor_splash=yes module_bmp_enabled=no module_camera_enabled=no module_cvtt_enabled=no module_mbedtls_enabled=no module_tga_enabled=no module_enet_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_noise_enabled=no module_websocket_enabled=no module_xatlas_unwrap_enabled=no module_squish_enabled=no use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libogg=yes module_csg_enabled=yes module_gridmap_enabled=yes disable_3d=no",
"command": "scons arch=arm64 platform=linuxbsd target=template_release module_text_server_fb_enabled=yes minizip=yes debug_symbols=yes deprecated=yes optimize=size use_lto=yes use_volk=no no_editor_splash=yes module_camera_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_websocket_enabled=no module_csg_enabled=yes module_gridmap_enabled=yes use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libvorbis=yes builtin_libogg=yes disable_3d=no",
},
"osx": {
"command": "scons platform=macos target=template_release tests=false module_text_server_fb_enabled=yes minizip=yes debug_symbols=no no_editor_splash=yes module_bmp_enabled=no module_camera_enabled=no module_cvtt_enabled=no module_mbedtls_enabled=no module_tga_enabled=no module_enet_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_noise_enabled=no module_websocket_enabled=no module_xatlas_unwrap_enabled=no module_squish_enabled=no use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libogg=yes module_csg_enabled=yes module_gridmap_enabled=yes disable_3d=no",
"command": "scons arch=arm64 platform=macos target=template_release optimize=size use_lto=yes use_volk=no module_text_server_fb_enabled=yes minizip=yes debug_symbols=yes deprecated=yes no_editor_splash=yes module_camera_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_websocket_enabled=no module_csg_enabled=yes module_gridmap_enabled=yes use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libvorbis=yes builtin_libogg=yes disable_3d=no",
},
"windows": {
"command": "scons platform=windows target=template_release tests=false module_text_server_fb_enabled=yes minizip=yes debug_symbols=no no_editor_splash=yes module_bmp_enabled=no module_camera_enabled=no module_cvtt_enabled=no module_mbedtls_enabled=no module_tga_enabled=no module_enet_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_noise_enabled=no module_websocket_enabled=no module_xatlas_unwrap_enabled=no module_squish_enabled=no use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libogg=yes module_csg_enabled=yes module_gridmap_enabled=yes disable_3d=no",
"command": "scons arch=arm64 platform=windows target=template_release module_text_server_fb_enabled=yes minizip=yes deprecated=yes no_editor_splash=yes module_camera_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_websocket_enabled=no module_csg_enabled=yes module_gridmap_enabled=yes use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libvorbis=yes builtin_libogg=yes disable_3d=no",
// Optional, uncomment if it has trouble finding it
// "options": {
// "shell": {
Expand All @@ -136,5 +135,22 @@
// }
},
},
{
"type": "shell",
"group": "build",
"problemMatcher": [
"$msCompile"
],
"label": "Build: template_release x86_64",
"linux": {
"command": "scons arch=x86_64 platform=linuxbsd target=template_release module_text_server_fb_enabled=yes minizip=yes debug_symbols=yes deprecated=yes optimize=size use_lto=yes use_volk=no no_editor_splash=yes module_camera_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_websocket_enabled=no module_csg_enabled=yes module_gridmap_enabled=yes use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libvorbis=yes builtin_libogg=yes disable_3d=no",
},
"osx": {
"command": "scons arch=x86_64 platform=macos target=template_release optimize=size use_lto=yes use_volk=no module_text_server_fb_enabled=yes minizip=yes debug_symbols=yes deprecated=yes no_editor_splash=yes module_camera_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_websocket_enabled=no module_csg_enabled=yes module_gridmap_enabled=yes use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libvorbis=yes builtin_libogg=yes disable_3d=no",
},
"windows": {
"command": "scons arch=x86_64 platform=windows target=template_release module_text_server_fb_enabled=yes minizip=yes deprecated=yes no_editor_splash=yes module_camera_enabled=no module_mobile_vr_enabled=no module_upnp_enabled=no module_websocket_enabled=no module_csg_enabled=yes module_gridmap_enabled=yes use_static_cpp=yes builtin_freetype=yes builtin_libpng=yes builtin_zlib=yes builtin_libwebp=yes builtin_libvorbis=yes builtin_libogg=yes disable_3d=no",
},
},
]
}

0 comments on commit 46d6f99

Please sign in to comment.