Skip to content

Commit 1c26075

Browse files
committed
New repo layout for 3.0
1 parent 5ce692c commit 1c26075

File tree

5 files changed

+67
-0
lines changed

5 files changed

+67
-0
lines changed

src/Directory.Build.props

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<!--suppress CheckTagEmptyBody -->
2+
<Project>
3+
<!-- General -->
4+
<PropertyGroup>
5+
<!-- Target Framework - kept in sync with .NET LTS releases -->
6+
<SilkTargetFramework>net6.0</SilkTargetFramework>
7+
<!-- Set the TFM -->
8+
<TargetFrameworks Condition="'$(TargetFramework)' == '' And '$(TargetFrameworks)' == ''">$(SilkTargetFramework)</TargetFrameworks>
9+
<!-- If TargetFrameworks is SilkTargetFramework, set TargetFramework as well to stop "multiple TFM" errors -->
10+
<TargetFramework Condition="'$(TargetFrameworks)' == '$(SilkTargetFramework)'">$(SilkTargetFramework)</TargetFramework>
11+
<!-- Helper properties for accessing directories -->
12+
<SilkBenchmarksDir>$(MSBuildThisFileDirectory)benchmarks</SilkBenchmarksDir>
13+
<SilkBindingsDir>$(MSBuildThisFileDirectory)bindings</SilkBindingsDir>
14+
<SilkExperimentsDir>$(MSBuildThisFileDirectory)experiments</SilkExperimentsDir>
15+
<SilkGeneratorsDir>$(MSBuildThisFileDirectory)generators</SilkGeneratorsDir>
16+
<SilkInfrastructureDir>$(MSBuildThisFileDirectory)infrastructure</SilkInfrastructureDir>
17+
<SilkLibrariesDir>$(MSBuildThisFileDirectory)libraries</SilkLibrariesDir>
18+
<SilkDocumentationDir>$(MSBuildThisFileDirectory)../documentation</SilkDocumentationDir>
19+
<SilkTestsDir>$(MSBuildThisFileDirectory)../documentation</SilkTestsDir>
20+
</PropertyGroup>
21+
<!-- NuGet -->
22+
<PropertyGroup>
23+
<PackageIcon>logo.png</PackageIcon>
24+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
25+
<LangVersion>preview</LangVersion>
26+
<Authors>.NET Foundation and Contributors</Authors>
27+
<PackageReleaseNotes>
28+
Complete rewrite
29+
</PackageReleaseNotes>
30+
<PackageTags Condition="'$(PackageTags)' == ''">OpenCL;OpenGL;OpenAL;OpenGLES;GLES;Vulkan;Assimp;DirectX;GLFW;SDL;Windowing;Input;Gamepad;Joystick;Keyboard;Mouse;SilkTouch;Source;Generator;C#;F#;.NET;DotNet;Mono;Vector;Math;Maths;Numerics;Game;Graphics;Compute;Audio;Sound;Engine;Silk;Silk.NET;Slim.NET;ElgarTK;GPU;Sharp;Science;Scientific;Visualization;Visual;Audiovisual;Windows;macOS;Linux;Android;Bindings;OSX;Wrapper;Native</PackageTags>
31+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
32+
<PackageOutputPath>$(MSBuildThisFileDirectory)/../output_packages</PackageOutputPath>
33+
<RepositoryUrl>https://github.com/dotnet/Silk.NET</RepositoryUrl>
34+
<RepositoryType>Git</RepositoryType>
35+
<VersionPrefix>3.0.0</VersionPrefix>
36+
<VersionSuffix Condition="'$(VersionSuffix)' == ''">preview</VersionSuffix>
37+
<Description Condition="'$(Description)' == ''">
38+
Silk.NET is a high-speed, advanced library, providing bindings to popular low-level APIs such as OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, and DirectX.
39+
</Description>
40+
</PropertyGroup>
41+
<!-- SourceLink -->
42+
<PropertyGroup Condition="'$(SilkEnableSourceLink)' != 'false' And '$(SilkSourceLinkExempt)' == ''">
43+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
44+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
45+
<IncludeSymbols>true</IncludeSymbols>
46+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
47+
</PropertyGroup>
48+
<ItemGroup Condition="'$(SilkEnableSourceLink)' != 'false' And '$(SilkSourceLinkExempt)' == ''">
49+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
50+
</ItemGroup>
51+
<PropertyGroup Condition="'$(SilkSourceLinkExempt)' != ''">
52+
<IncludeSymbols>false</IncludeSymbols>
53+
<SymbolPackageFormat></SymbolPackageFormat>
54+
</PropertyGroup>
55+
</Project>

src/Directory.Build.targets

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project>
2+
<!-- NuGet Stuff -->
3+
<ItemGroup>
4+
<Content Include="$(MSBuildThisFileDirectory)..\documentation\branding\logo.png"
5+
Link="logo.png"
6+
Pack="true"
7+
PackagePath="\"
8+
Visible="false">
9+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
10+
</Content>
11+
</ItemGroup>
12+
</Project>

src/bindings/.gitkeep

Whitespace-only changes.

src/experiments/.gitkeep

Whitespace-only changes.

src/generators/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)