Wayland.SourceGenerator 0.0.2

dotnet add package Wayland.SourceGenerator --version 0.0.2                
NuGet\Install-Package Wayland.SourceGenerator -Version 0.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Wayland.SourceGenerator" Version="0.0.2">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Wayland.SourceGenerator --version 0.0.2                
#r "nuget: Wayland.SourceGenerator, 0.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Wayland.SourceGenerator as a Cake Addin
#addin nuget:?package=Wayland.SourceGenerator&version=0.0.2

// Install Wayland.SourceGenerator as a Cake Tool
#tool nuget:?package=Wayland.SourceGenerator&version=0.0.2                

Wayland.SourceGenerator

A source generator that generates bindings for libwayland

Introduction

This source generator generates bindings for libwayland for writing native wayland clients in C#. For further documentation of wayland protocols, see https://wayland.app/.

Usage

Either install the NuGet package Wayland.SourceGenerator or clone the git repository and add a project reference to the source generator in your .csproj:

<ItemGroup>
    <ProjectReference Include="./Wayland.SourceGenerator/Wayland.SourceGenerator/Wayland.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

Then add the xml definitions as AdditionalFiles to your project:

<ItemGroup>
    <AdditionalFiles Include="WaylandXml/*.xml" />
</ItemGroup>

Now you can connect to the wayland socket with

WlDisplay display = WlDisplay.Connect();

and start writing your client.

[!NOTE] Make sure that all dependencies of a protocol are also included, e.g. xdg_shell needs the core wayland protocol as it uses the wl_seat type.

[!NOTE] Duplicate protocols with the same name e.g. when cloning the wayland-protocols repository, wayland-protocols/unstable/xdg-shell/xdg-shell-unstable-v6.xml and wayland-protocols/stable/xdg-shell/xdg-shell.xml are in conflict.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.2 118 8/12/2024