david-vanderson / sdk

TinyVG software development kit

Home Page:https://tinyvg.tech/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TinyVG Software Development Kit

This SDK enables you to work with the TinyVG vector graphics format.

Contents

  • Native Library (C ABI)
  • Zig Package
  • Command Line Tooling
    • Offline Rendering (TVG -> TGA)
    • Format Conversion (SVG <-> TVG <-> TVGT)

Building

The SDK is implemented with Zig and dotnet 5. Until Zig 1.0 this repo tracks Zig master branch.

To build the SDK (except svg2tvgt), do this:

[user@host sdk]$ zig build
[user@host sdk]$

This will then produce the folders zig-cache (for temporary files) and zig-out, which contains the SDK files for your current platform.

To build svg2tvgt, go into the folder src/tools/svg2tvgt and do this:

[user@host sdk]$ cd src/tools/svg2tvgt/
[user@host svg2tvgt]$ dotnet build
Microsoft (R) Build Engine version 16.11.1+3e40a09f8 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  All projects are up-to-date for restore.
  svg2tvgt -> /mnt/src/tools/svg2tvgt/bin/Debug/net5.0/svg2tvgt.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:01.59
[user@host svg2tvgt]$

This will then produce src/tools/svg2tvgt/bin/Debug/net5.0/svg2tvgt (or .exe if you are on windows).

About

TinyVG software development kit

https://tinyvg.tech/

License:MIT License


Languages

Language:Zig 73.3%Language:C# 23.8%Language:JavaScript 1.5%Language:C 1.0%Language:Makefile 0.2%Language:Shell 0.1%