mono / CppSharp

Tools and libraries to glue C/C++ APIs to high-level languages
MIT License
3.15k stars 518 forks source link

How to regenerate bindings? #1852

Closed cmcneish closed 6 months ago

cmcneish commented 6 months ago

What's the expected process for regenerating the bindings, for example the files at ./src/CppParser/Bindings/CSharp/x86_64-linux-gnu-cxx11abi?

I don't see any obvious way to do this--CppParser.Bootstrap only looks like it handles the native code and CppSharp.CLI doesn't seem like it has the right options available (or I'm otherwise missing how to set module.OutputNamespace to "").

Apologies if I missed this somewhere in the documentation or the build system.

tritao commented 6 months ago

Check https://github.com/mono/CppSharp/blob/main/src/CppParser/ParserGen/ParserGen.cs, and https://github.com/mono/CppSharp/releases/download/CppSharp/headers.zip for the headers.

cmcneish commented 6 months ago

Thanks, I overlooked ParserGen.cs