⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Commit 99f49cd

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Fix SDL install in CI
1 parent 6790a53 commit 99f49cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build_sdl.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@ def get_output(self) -> str:
212212
buffer.write(f"#define {name} ...\n")
213213
return buffer.getvalue()
214214

215+
def on_file_open(self, is_system_include: bool, includepath: str) -> Any: # noqa: ANN401, FBT001
216+
"""Ignore includes other than SDL headers."""
217+
if not Path(includepath).parent.name == "SDL3":
218+
raise FileNotFoundError
219+
return super().on_file_open(is_system_include, includepath)
220+
215221
def on_include_not_found(self, is_malformed: bool, is_system_include: bool, curdir: str, includepath: str) -> None: # noqa: ARG002, FBT001
216222
"""Remove bad includes such as stddef.h and stdarg.h."""
217223
assert "SDL3/SDL" not in includepath, (includepath, curdir)

0 commit comments

Comments
 (0)