@echo off
setlocal

set SCRIPT_DIR=%~dp0
cd /d "%SCRIPT_DIR%.."

echo Generating Visual Studio / Rider solution and project files...
misc\fbuild.exe gen

if %ERRORLEVEL% neq 0 (
    echo Solution generation failed!
    exit /b %ERRORLEVEL%
)

echo Solutions generated successfully:
echo  - Juliet.sln
echo  - Romeo.sln
echo  - JulietShaderCompiler.sln
exit /b 0