Hack around missing process.h on Unix systems

Co-authored-by: Susko3 <Susko3@protonmail.com>
This commit is contained in:
Dan Balasescu 2024-10-24 19:34:51 +09:00
parent 04c71afe67
commit dcea5f47c3
No known key found for this signature in database
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,7 @@ Example:
import json import json
import pathlib import pathlib
import platform
import re import re
import subprocess import subprocess
import sys import sys
@ -362,6 +363,11 @@ def should_skip(solo_headers: list[Header], header: Header):
def main(): def main():
solo_headers = [make_header_fuzzy(header_name) for header_name in sys.argv[1:]] solo_headers = [make_header_fuzzy(header_name) for header_name in sys.argv[1:]]
if platform.system() != "Windows":
base_command.extend([
"--include-directory", csproj_root / "include"
])
prepare_sdl_source() prepare_sdl_source()
sdl_api = get_sdl_api_dump() sdl_api = get_sdl_api_dump()

View File

@ -0,0 +1 @@
// dummy process.h when building for SDL_PLATFORM_WINDOWS on non-windows systems