vezel-dev / zig-toolsets

The Zig compiler and standard library packaged for use in MSBuild.
BSD Zero Clause License
10 stars 0 forks source link
build c cpp dotnet msbuild zig

Zig Toolsets

Zig Toolsets

The Zig compiler and standard library packaged for use in MSBuild.

[![License](https://img.shields.io/badge/license-0BSD%20AND%20MIT-brown)](LICENSE-0BSD) [![Commits](https://img.shields.io/github/commit-activity/m/vezel-dev/zig-toolsets/master?label=commits&color=slateblue)](https://github.com/vezel-dev/zig-toolsets/commits/master) [![Build](https://img.shields.io/github/actions/workflow/status/vezel-dev/zig-toolsets/build.yml?branch=master)](https://github.com/vezel-dev/zig-toolsets/actions/workflows/build.yml) [![Discussions](https://img.shields.io/github/discussions/vezel-dev/zig-sdk?color=teal)](https://github.com/vezel-dev/zig-sdk/discussions) [![Discord](https://img.shields.io/badge/discord-chat-7289da?logo=discord)](https://discord.gg/wtzCfaX2Nj) [![Zulip](https://img.shields.io/badge/zulip-chat-394069?logo=zulip)](https://vezel.zulipchat.com)

This project packs and distributes the Zig compiler and standard library in a set of NuGet packages for each platform that .NET runs on. These packages are mainly used by the Zig SDK but can also be used by other projects.

Usage

This project offers the following packages:

Package Description Downloads
Vezel.Zig.Toolsets.linux-arm Provides the toolset for the linux-arm build platform. Downloads
Vezel.Zig.Toolsets.linux-arm64 Provides the toolset for the linux-arm64 build platform. Downloads
Vezel.Zig.Toolsets.linux-ppc64le Provides the toolset for the linux-ppc64le build platform. Downloads
Vezel.Zig.Toolsets.linux-riscv64 Provides the toolset for the linux-riscv64 build platform. Downloads
Vezel.Zig.Toolsets.linux-x64 Provides the toolset for the linux-x64 build platform. Downloads
Vezel.Zig.Toolsets.osx-arm64 Provides the toolset for the osx-arm64 build platform. Downloads
Vezel.Zig.Toolsets.osx-x64 Provides the toolset for the osx-x64 build platform. Downloads
Vezel.Zig.Toolsets.win-arm64 Provides the toolset for the win-arm64 build platform. Downloads
Vezel.Zig.Toolsets.win-x64 Provides the toolset for the win-x64 build platform. Downloads
Vezel.Zig.Toolsets.win-x86 Provides the toolset for the win-x86 build platform. Downloads

To install a package, run dotnet add package <name>.

The following MSBuild properties will be injected into your project:

Building

You will need the .NET SDK installed. Simply run ./cake (a Bash script) to build artifacts.

Note that, on Windows, you must have a tar program capable of extracting .tar.xz archives. For example, tar from Git for Windows or MSYS2 will satisfy this requirement.

License

This project is licensed under the terms found in LICENSE-0BSD.

The Zig compiler and standard library are licensed under the terms found in LICENSE-MIT.

The Zig logo is licensed under the terms found in LICENSE-CC-BY-SA-4.0.