Wayland.SourceGenerator
0.0.2
dotnet add package Wayland.SourceGenerator --version 0.0.2
NuGet\Install-Package Wayland.SourceGenerator -Version 0.0.2
<PackageReference Include="Wayland.SourceGenerator" Version="0.0.2"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Wayland.SourceGenerator --version 0.0.2
#r "nuget: Wayland.SourceGenerator, 0.0.2"
// 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 AdditionalFile
s 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
andwayland-protocols/stable/xdg-shell/xdg-shell.xml
are in conflict.
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 |