Moved the SDL version back to SDL_version.h

Added a comment at the top of SDL.h with the current version, for informational purposes
This commit is contained in:
Sam Lantinga 2024-05-15 14:22:41 -07:00
parent c6354252a1
commit fbe7e2e6d3
12 changed files with 49 additions and 40 deletions

View file

@ -509,7 +509,7 @@ class Releaser:
@classmethod
def extract_sdl_version(cls, root: Path, project: str):
with open(root / f"include/{project}/SDL.h", "r") as f:
with open(root / f"include/{project}/SDL_version.h", "r") as f:
text = f.read()
major = next(re.finditer(r"^#define SDL_MAJOR_VERSION\s+([0-9]+)$", text, flags=re.M)).group(1)
minor = next(re.finditer(r"^#define SDL_MINOR_VERSION\s+([0-9]+)$", text, flags=re.M)).group(1)