diff --git a/.gitattributes b/.gitattributes index c61ca25..2cddad8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -22,4 +22,8 @@ App.config text eol=crlf .gitignore text eol=lf .gitattributes text eol=lf *.md text eol=lf -.travis.yml text eol=lf \ No newline at end of file +.travis.yml text eol=lf + +# Use lf for files used by ClangSharpPInvokeGenerator +*-license-header.txt text eol=lf +*.g.cs text eol=lf diff --git a/SDL3-CS/SDL.licenseheader b/SDL3-CS/SDL-license-header.txt similarity index 100% rename from SDL3-CS/SDL.licenseheader rename to SDL3-CS/SDL-license-header.txt diff --git a/SDL3-CS/generate_bindings.py b/SDL3-CS/generate_bindings.py index 71666c9..3d17d0d 100644 --- a/SDL3-CS/generate_bindings.py +++ b/SDL3-CS/generate_bindings.py @@ -255,7 +255,7 @@ def typedef(t): base_command = [ "dotnet", "tool", "run", "ClangSharpPInvokeGenerator", - "--headerFile", csproj_root / "SDL.licenseheader", + "--headerFile", csproj_root / "SDL-license-header.txt", "--config", "latest-codegen",