File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 99 tools :
1010 python : " 3.11"
1111 apt_packages :
12- - libsdl3-dev
12+ - build-essential
13+ - make
14+ - pkg-config
15+ - cmake
16+ - ninja-build
17+ jobs :
18+ pre_install :
19+ - git clone --depth 1 --branch release-3.2.16 https://github.com/libsdl-org/SDL.git sdl_repo
20+ - cmake -S sdl_repo -B sdl_build -D CMAKE_INSTALL_PREFIX=~/.local
21+ - cmake --build sdl_build --config Debug
22+ - cmake --install sdl_build
1323
1424submodules :
1525 include : all
Original file line number Diff line number Diff line change 33
44from __future__ import annotations
55
6+ import os
67import platform
78import subprocess
89import sys
@@ -55,6 +56,10 @@ def check_sdl_version() -> None:
5556 "\n sdl3-config must be on PATH."
5657 )
5758 raise RuntimeError (msg ) from exc
59+ except subprocess .CalledProcessError as exc :
60+ if sys .version_info >= (3 , 11 ):
61+ exc .add_note (f"Note: { os .environ .get ('PKG_CONFIG_PATH' )= } " )
62+ raise
5863 print (f"Found SDL { sdl_version_str } ." )
5964 sdl_version = tuple (int (s ) for s in sdl_version_str .split ("." ))
6065 if sdl_version < SDL_VERSION_NEEDED :
You can’t perform that action at this time.
0 commit comments