Skip to content

Commit

Permalink
Add windows recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
ymontmarin committed Feb 11, 2025
1 parent d9ac6c2 commit 4c09299
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
33 changes: 33 additions & 0 deletions recipes/sdl3/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
setlocal EnableDelayedExpansion

:: Configure for Release (results in smaller .dll file)
set TARGET=Release

:: Set target back to None for 64-bits builds with VS2008 and VS2010
if %VS_MAJOR% LSS 14 (
if %ARCH% == 64 (
set TARGET=None
)
)

:: DirectX being integrated in the windows SDK and not being installed separately
:: confuses good old Visual Studio 2008, so disable DirectX detection durion compilation.
if "%VS_MAJOR%"=="9" (
set ADDITIONAL_OPTIONS="-SDL_DIRECTX=OFF"
)
if errorlevel 1 exit 1

:: Make a build folder and change to it.
mkdir build
cd build

:: Configure using the CMakeFiles
cmake .. -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" -DCMAKE_BUILD_TYPE:STRING=!TARGET! !ADDITIONAL_OPTIONS! ..
if errorlevel 1 exit 1

:: Build!
nmake
if errorlevel 1 exit 1

nmake install
if errorlevel 1 exit 1
1 change: 0 additions & 1 deletion recipes/sdl3/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ source:
sha256: 2938328317301dfbe30176d79c251733aa5e7ec5c436c800b99ed4da7adcb0f0

build:
skip: true # [win]
number: 0
run_exports:
- {{ pin_subpackage(name|lower, max_pin='x') }}
Expand Down

0 comments on commit 4c09299

Please sign in to comment.