3dbe479606
- Input: SDL3-backed PollPadAsXInput bridges DInput/HIDAPI gamepads past the XInput 4-pad cap. Exposed via INP_SdlBridge for use by callers that need to enumerate all connected pads. - Render: VIEWPORT_TYPE_GRID_CELL enum + StateSetViewportRect(x,y,w,h) for parametric N-player cell rects. The pre-built lib's enum-based StateSetViewport leaves the D3D viewport stack-uninitialized in its default case, so the grid-cell path takes a direct rect to avoid the 0xCC fill -> RSSetViewports validation error. - CMake: SDL3 static link wiring + Windows build helpers (build_libs.bat, configure_only.bat). Used by: MrTheShy/MinecraftConsoles auth branch (8-player splitscreen).
31 lines
1.2 KiB
Batchfile
31 lines
1.2 KiB
Batchfile
@echo off
|
|
setlocal
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat" >NUL 2>&1
|
|
cd /d "C:\Users\MrTheShy\Documents\ghubb\4JLibs-master\4JLibs"
|
|
|
|
echo === Configure Debug ===
|
|
cmake -S . -B out\build\x64-Debug -G Ninja -DCMAKE_BUILD_TYPE=Debug
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo === Build Debug (Input + Render) ===
|
|
cmake --build out\build\x64-Debug --target 4JLibs.Windows64.Input 4JLibs.Windows64.Render
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo === Configure Release ===
|
|
cmake -S . -B out\build\x64-Release -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo === Build Release (Input + Render) ===
|
|
cmake --build out\build\x64-Release --target 4JLibs.Windows64.Input 4JLibs.Windows64.Render
|
|
if errorlevel 1 exit /b 1
|
|
|
|
echo === Copy SDL3 static libs to libs/ ===
|
|
copy /Y out\build\x64-Debug\_deps\sdl3-build\SDL3-static_d.lib libs\ >NUL
|
|
copy /Y out\build\x64-Debug\_deps\sdl3-build\SDL_uclibc_d.lib libs\ >NUL
|
|
copy /Y out\build\x64-Release\_deps\sdl3-build\SDL3-static.lib libs\ >NUL
|
|
copy /Y out\build\x64-Release\_deps\sdl3-build\SDL_uclibc.lib libs\ >NUL
|
|
|
|
echo === Done. Output libs at: ===
|
|
dir /b libs\*.lib 2>nul
|
|
exit /b 0
|