Helper for generating Odin or V wrapper code from C source. Use the "odin" branch to get to the Odin generator.
- dotnet Core 3
- open the project in VS Code and use the pre-configured build task (Ctrl/Cmd + Shift + b)
- help: run
./VGenerator -h
to see help on the command line - config: run
./VGenerator -c filename.json
to create a template file which will dictate how V generation is done. There are several example configs in theProgram.cs
file as well. - generate: run
./VGenerator -g filename.json
to generate the V wrapper
Binaries can be generated with the following commands:
dotnet publish -c Release -r osx.10.12-x64 /p:PublishSingleFile=true /p:PublishTrimmed=true
dotnet publish -c Release -r win10-x64 /p:PublishSingleFile=true /p:PublishTrimmed=true
dotnet publish -c Release -r linux-x64 /p:PublishSingleFile=true /p:PublishTrimmed=true