fix build steps

This commit is contained in:
2026-06-07 23:00:52 +08:00
parent 7b42a6be63
commit b6b0712b31
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -15,8 +15,8 @@ if %errorlevel% == 0 (
powershell -Command "(Get-Content thirdparty/leanclr/src/runtime/build_config.h) -replace 'LEANCLR_FATAL_ON_RAISE_NOT_IMPLEMENTED_ERROR 1', 'LEANCLR_FATAL_ON_RAISE_NOT_IMPLEMENTED_ERROR 0' | Set-Content thirdparty/leanclr/src/runtime/build_config.h" powershell -Command "(Get-Content thirdparty/leanclr/src/runtime/build_config.h) -replace 'LEANCLR_FATAL_ON_RAISE_NOT_IMPLEMENTED_ERROR 1', 'LEANCLR_FATAL_ON_RAISE_NOT_IMPLEMENTED_ERROR 0' | Set-Content thirdparty/leanclr/src/runtime/build_config.h"
) )
python3 tools\binding_generator\generate_bindings.py --api build-master\_deps\godot-cpp-src\gdextension\extension_api.json
cmake -S . -B build-master -DCMAKE_BUILD_TYPE=Debug || exit /b 1 cmake -S . -B build-master -DCMAKE_BUILD_TYPE=Debug || exit /b 1
python tools\..\..\tools\binding_generator\generate_bindings.py --api build-master\_deps\godot-cpp-src\gdextension\extension_api.json
if errorlevel 1 ( if errorlevel 1 (
REM python3 not on PATH; try py launcher as a fallback. REM python3 not on PATH; try py launcher as a fallback.
py tools\binding_generator\generate_bindings.py --api build-master\_deps\godot-cpp-src\gdextension\extension_api.json py tools\binding_generator\generate_bindings.py --api build-master\_deps\godot-cpp-src\gdextension\extension_api.json
+2 -2
View File
@@ -19,11 +19,11 @@ if grep -q "LEANCLR_FATAL_ON_RAISE_NOT_IMPLEMENTED_ERROR 1" \
thirdparty/leanclr/src/runtime/build_config.h thirdparty/leanclr/src/runtime/build_config.h
fi fi
# Configure CMake (first pass — fetches godot-cpp via FetchContent).
cmake -S . -B build-master -DCMAKE_BUILD_TYPE=Debug
# Generate bindings (needs the just-fetched extension_api.json). # Generate bindings (needs the just-fetched extension_api.json).
python3 tools/binding_generator/generate_bindings.py \ python3 tools/binding_generator/generate_bindings.py \
--api build-master/_deps/godot-cpp-src/gdextension/extension_api.json --api build-master/_deps/godot-cpp-src/gdextension/extension_api.json
# Configure CMake (first pass — fetches godot-cpp via FetchContent).
cmake -S . -B build-master -DCMAKE_BUILD_TYPE=Debug
# Re-configure so add_library sees the generated cpp, then build. # Re-configure so add_library sees the generated cpp, then build.
cmake -S . -B build-master -DCMAKE_BUILD_TYPE=Debug cmake -S . -B build-master -DCMAKE_BUILD_TYPE=Debug
cmake --build build-master --config Debug --target leanclr_godot cmake --build build-master --config Debug --target leanclr_godot