Skip to content

Commit a974c82

Browse files
committed
feat(build): add new windows stuff
1 parent ae79f1f commit a974c82

1 file changed

Lines changed: 61 additions & 57 deletions

File tree

‎build.md‎

Lines changed: 61 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -179,39 +179,41 @@ Can be either `miniz` or `minizip`.
179179
### `SE_AUDIO_ENGINE`
180180

181181
The audio backend to be used. Can be one of `sdl2`, `sdl1`, `sdl3`, `libpulse`,
182-
`nds`, `libretro`, or `headless`.
182+
`winmm`, `nds`, `libretro`, or `headless`.
183183

184184
#### Supported Audio Engines
185185

186-
| Platform | `sdl1` | `sdl2` | `sdl3` | `libpulse` | `nds` | `libretro` | `headless` |
187-
| --------- | ------ | ------ | ------ | ---------- | ----- | ---------- | ---------- |
188-
| Windows | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ✅ |
189-
| macOS | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ✅ |
190-
| Linux/BSD | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
191-
| 3DS | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ✅ |
192-
| DS | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ✅ |
193-
| Wii U | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
194-
| Wii | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
195-
| GameCube | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
196-
| Switch | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
197-
| Vita | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ✅ |
198-
| PSP | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
199-
| PS4 | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
200-
| webOS | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
201-
| Libretro | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ |
202-
203-
The default value depends on the renderer being used (see below):
186+
| Platform | `sdl1` | `sdl2` | `sdl3` | `libpulse` | `winmm` | `nds` | `libretro` | `headless` |
187+
| --------- | ------ | ------ | ------ | ---------- | ------- | ----- | ---------- | ---------- |
188+
| Windows | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ |
189+
| macOS | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
190+
| Linux/BSD | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ✅ |
191+
| 3DS | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
192+
| DS | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ✅ |
193+
| Wii U | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
194+
| Wii | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
195+
| GameCube | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
196+
| Switch | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
197+
| Vita | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
198+
| PSP | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
199+
| PS4 | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
200+
| webOS | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
201+
| Libretro | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ |
202+
203+
The default value depends on the renderer being used[^1] (see below):
204204

205205
- `sdl1`: `sdl1`
206206
- `sdl2`: `sdl2`
207207
- `sdl3`: `sdl3`
208208
- `opengl`: `sdl2`
209209
- `opengl_core`: `sdl2`
210+
- `win32`: `winmm`
210211
- `citro2d`: `sdl3`
211212
- `gl2d`: `nds`
212213
- `headless`: `headless`
213214

214-
Libretro will always use the `libretro` audio engine.
215+
[^1] Libretro will always use the `libretro` audio engine and Linux uses the
216+
`libpulse` audio engine by default.
215217

216218
### `SE_BANNERTOOL`
217219

@@ -321,29 +323,29 @@ Defaults to `72`.
321323
### `SE_RENDERER`
322324

323325
The renderer backend to be used. Can be one of `sdl1`, `sdl2`, `sdl3`, `opengl`,
324-
`opengl_core`, `citro2d`, `gl2d`, or `headless`.
326+
`opengl_core`, `gdi`, `d3d9`, `citro2d`, `gl2d`, or `headless`.
325327

326328
#### Supported Renderers
327329

328-
| Platform | `sdl1` | `sdl2` | `sdl3` | `opengl` | `opengl_core` | `citro2d` | `gl2d` | `headless` |
329-
| --------- | ------ | ------ | ------ | -------- | ------------- | --------- | ------ | ---------- |
330-
| Windows | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
331-
| macOS | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
332-
| Linux/BSD | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
333-
| 3DS | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ✅ |
334-
| DS | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
335-
| Wii U | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
336-
| Wii | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
337-
| GameCube | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
338-
| Switch | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ✅ |
339-
| Vita | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
340-
| PSP | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
341-
| PS4 | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
342-
| webOS | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
343-
| Libretro | ❌ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ |
344-
345-
Defaults to `citro2d` on 3DS, `gl2d` on NDS, `opengl_core` on PC and Libretro,
346-
and `sdl2` on everything else.
330+
| Platform | `sdl1` | `sdl2` | `sdl3` | `opengl` | `opengl_core` | `gdi` | `d3d9` | `citro2d` | `gl2d` | `headless` |
331+
| --------- | ------ | ------ | ------ | -------- | ------------- | ----- | ------ | --------- | ------ | ---------- |
332+
| Windows | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
333+
| macOS | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
334+
| Linux/BSD | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
335+
| 3DS | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ✅ |
336+
| DS | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
337+
| Wii U | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
338+
| Wii | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
339+
| GameCube | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
340+
| Switch | ❌ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
341+
| Vita | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
342+
| PSP | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
343+
| PS4 | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
344+
| webOS | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
345+
| Libretro | ❌ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
346+
347+
Defaults to `citro2d` on 3DS, `gl2d` on NDS, `opengl_core` on PC (except for
348+
Windows which defaults to `d3d9`) and Libretro, and `sdl2` on everything else.
347349

348350
### `SE_SVG`
349351

@@ -352,26 +354,28 @@ Determines whether or not vector (SVG) images are supported. Defaults to `ON`.
352354
### `SE_WINDOWING`
353355

354356
The windowing backend to be used. Can be one of `sdl1`, `sdl2`, `sdl3`, `glfw`,
355-
`3ds`, `nds`, `libretro`, or `headless`.
357+
`win32`, `3ds`, `nds`, `libretro`, or `headless`.
356358

357359
#### Supported Windowing Backends
358360

359-
| Renderer | `sdl1` | `sdl2` | `sdl3` | `glfw` | `3ds` | `nds` | `libretro` | `headless` |
360-
| ----------------- | ------ | ------ | ------ | ------ | ----- | ----- | ---------- | ---------- |
361-
| `sdl1` | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
362-
| `sdl2` | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
363-
| `sdl3` | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
364-
| `opengl` | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
365-
| `opengl_core`[^1] | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
366-
| `citro2d` | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ |
367-
| `gl2d` | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ |
368-
| `headless` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
369-
370-
[^1]: When using the OpengGL Core renderer on Switch, only the `sdl2` windowing
361+
| Renderer | `sdl1` | `sdl2` | `sdl3` | `glfw` | `win32` | `3ds` | `nds` | `libretro` | `headless` |
362+
| ----------------- | ------ | ------ | ------ | ------ | ------- | ----- | ----- | ---------- | ---------- |
363+
| `sdl1` | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
364+
| `sdl2` | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
365+
| `sdl3` | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
366+
| `opengl` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
367+
| `opengl_core`[^2] | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
368+
| `gdi` | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ |
369+
| `d3d9` | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ |
370+
| `citro2d` | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ |
371+
| `gl2d` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ |
372+
| `headless` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
373+
374+
[^2]: When using the OpengGL Core renderer on Switch, only the `sdl2` windowing
371375
backend is supported.
372376

373377
SE! prioritizes windowing backends in the following order: `glfw`, `sdl3`,
374-
`sdl2`, `sdl1`, `3ds`, `nds`, `headless`, and finally `libretro`. It will pick
375-
the first backend in that order that is supported by the chosen renderer, unless
376-
the windowing backend is manually set. Libretro will always use the `libretro`
377-
windowing backend.
378+
`sdl2`, `sdl1`, `win32`, `3ds`, `nds`, `headless`, and finally `libretro`. It
379+
will pick the first backend in that order that is supported by the chosen
380+
renderer, unless the windowing backend is manually set. Libretro will always use
381+
the `libretro` windowing backend.

0 commit comments

Comments
 (0)