fix build steps
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
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
|
||||
python tools\..\..\tools\binding_generator\generate_bindings.py --api build-master\_deps\godot-cpp-src\gdextension\extension_api.json
|
||||
if errorlevel 1 (
|
||||
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
|
||||
|
||||
@@ -19,11 +19,11 @@ if grep -q "LEANCLR_FATAL_ON_RAISE_NOT_IMPLEMENTED_ERROR 1" \
|
||||
thirdparty/leanclr/src/runtime/build_config.h
|
||||
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).
|
||||
python3 tools/binding_generator/generate_bindings.py \
|
||||
--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.
|
||||
cmake -S . -B build-master -DCMAKE_BUILD_TYPE=Debug
|
||||
cmake --build build-master --config Debug --target leanclr_godot
|
||||
|
||||
Reference in New Issue
Block a user