Skip to content

prime31/V-C-Wrapper-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

V-C-Wrapper-Generator

Helper for generating Odin or V wrapper code from C source. Use the "odin" branch to get to the Odin generator.

Requirements for Building

  • dotnet Core 3

Building

  • open the project in VS Code and use the pre-configured build task (Ctrl/Cmd + Shift + b)

Usage

  • 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 the Program.cs file as well.
  • generate: run ./VGenerator -g filename.json to generate the V wrapper

Generating Binaries

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

About

Helper for generating Odin and V wrapper code from C source

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages