mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-28 01:21:35 +00:00
apple: add exports file
This commit is contained in:
committed by
Anonymous Maarten
parent
364c8037f4
commit
085447a56e
1287
src/dynapi/SDL_dynapi.exports
Normal file
1287
src/dynapi/SDL_dynapi.exports
Normal file
File diff suppressed because it is too large
Load Diff
@@ -44,6 +44,7 @@ SDL_ROOT = Path(__file__).resolve().parents[2]
|
||||
SDL_INCLUDE_DIR = SDL_ROOT / "include/SDL3"
|
||||
SDL_DYNAPI_PROCS_H = SDL_ROOT / "src/dynapi/SDL_dynapi_procs.h"
|
||||
SDL_DYNAPI_OVERRIDES_H = SDL_ROOT / "src/dynapi/SDL_dynapi_overrides.h"
|
||||
SDL_DYNAPI_EXPORTS = SDL_ROOT / "src/dynapi/SDL_dynapi.exports"
|
||||
SDL_DYNAPI_SYM = SDL_ROOT / "src/dynapi/SDL_dynapi.sym"
|
||||
|
||||
RE_EXTERN_C = re.compile(r'.*extern[ "]*C[ "].*')
|
||||
@@ -493,9 +494,15 @@ def add_dyn_api(proc: SdlProcedure) -> None:
|
||||
#
|
||||
# Add at last
|
||||
# "#define SDL_DelayNS SDL_DelayNS_REAL
|
||||
f = open(SDL_DYNAPI_OVERRIDES_H, "a", newline="")
|
||||
f.write(f"#define {proc.name} {proc.name}_REAL\n")
|
||||
f.close()
|
||||
with open(SDL_DYNAPI_OVERRIDES_H, "a", newline="") as f:
|
||||
f.write(f"#define {proc.name} {proc.name}_REAL\n")
|
||||
|
||||
# File: SDL_dynapi.exports
|
||||
#
|
||||
# Append to end
|
||||
# "_SDL_DelayNS"
|
||||
with open(SDL_DYNAPI_EXPORTS, "a", newline="") as f:
|
||||
f.write(f"_{proc.name}\n")
|
||||
|
||||
# File: SDL_dynapi.sym
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user