mirror of https://github.com/ppy/SDL3-CS.git
Hack around missing process.h on Unix systems
Co-authored-by: Susko3 <Susko3@protonmail.com>
This commit is contained in:
parent
04c71afe67
commit
dcea5f47c3
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
// dummy process.h when building for SDL_PLATFORM_WINDOWS on non-windows systems
|
||||||
Loading…
Reference in New Issue