diff --git a/SDL3-CS/generate_bindings.py b/SDL3-CS/generate_bindings.py index 67adf6a..5a5fa6e 100644 --- a/SDL3-CS/generate_bindings.py +++ b/SDL3-CS/generate_bindings.py @@ -27,6 +27,7 @@ SDL3_header_base = "SDL3" # base folder of header files csproj_root = repository_root / "SDL3-CS" + class Header: """Represents a SDL header file that is used in ClangSharp generation.""" @@ -130,20 +131,22 @@ headers = [ add("SDL3/SDL_vulkan.h"), ] + def prepare_sdl_source(): subprocess.run([ "git", "reset", "--hard", "HEAD" - ], cwd = SDL_root) + ], cwd=SDL_root) subprocess.run([ "git", "apply", "--3way", repository_root / "External" / "SDL-use-proper-types.patch" - ], cwd = SDL_root) + ], cwd=SDL_root) + def get_sdl_api_dump(): subprocess.run([