From af70de254764e5d6e19a4991d5f76b9dac7e8695 Mon Sep 17 00:00:00 2001 From: SingleAccretion Date: Sat, 12 Dec 2020 20:01:26 +0300 Subject: [PATCH] Create a packaging project --- ComputeSharp.sln | 3 ++- global.json | 5 ++++ .../ComputeSharp.Benchmark.csproj | 12 ++++----- .../ComputeSharp.Core.csproj | 18 ++++++++++++- .../ComputeSharp.Graphics.csproj | 1 - .../ComputeSharp.Package.msbuildproj | 26 +++++++++++++++++++ .../ComputeSharp.Shaders.csproj | 1 - .../ComputeSharp.SourceGenerators.csproj | 12 ++++++--- src/ComputeSharp/ComputeSharp.csproj | 17 +++++++++--- src/Directory.Build.props | 9 +++++++ 10 files changed, 86 insertions(+), 18 deletions(-) create mode 100644 global.json create mode 100644 src/ComputeSharp.Package/ComputeSharp.Package.msbuildproj create mode 100644 src/Directory.Build.props diff --git a/ComputeSharp.sln b/ComputeSharp.sln index b6780dc1..97bcda1d 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -28,11 +28,12 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_SolutionItems", "_SolutionItems", "{1A9C4108-F61A-4ABE-B5CF-F524521EAE2D}" ProjectSection(SolutionItems) = preProject .gitignore = .gitignore + global.json = global.json LICENSE = LICENSE README.md = README.md EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputeSharp.SourceGenerators", "src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj", "{EB52CB67-4162-4722-874B-44EA8DA5450E}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.SourceGenerators", "src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj", "{EB52CB67-4162-4722-874B-44EA8DA5450E}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/global.json b/global.json new file mode 100644 index 00000000..2cb2ac9b --- /dev/null +++ b/global.json @@ -0,0 +1,5 @@ +{ + "sdk": { + "version": "5.0.100" + } +} \ No newline at end of file diff --git a/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj b/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj index 99d0ea05..a07c33ef 100644 --- a/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj +++ b/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj @@ -7,15 +7,15 @@ + - + - + \ No newline at end of file diff --git a/src/ComputeSharp.Core/ComputeSharp.Core.csproj b/src/ComputeSharp.Core/ComputeSharp.Core.csproj index abf25208..aa99e033 100644 --- a/src/ComputeSharp.Core/ComputeSharp.Core.csproj +++ b/src/ComputeSharp.Core/ComputeSharp.Core.csproj @@ -4,11 +4,27 @@ netstandard2.0;net5.0 true 9.0 - enable + + + + + false + true + + false + + diff --git a/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj b/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj index e98b35cd..d5fab37a 100644 --- a/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj +++ b/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj @@ -2,7 +2,6 @@ net5.0 - enable true diff --git a/src/ComputeSharp.Package/ComputeSharp.Package.msbuildproj b/src/ComputeSharp.Package/ComputeSharp.Package.msbuildproj new file mode 100644 index 00000000..d14cc0c8 --- /dev/null +++ b/src/ComputeSharp.Package/ComputeSharp.Package.msbuildproj @@ -0,0 +1,26 @@ + + + net5.0 + + + + ComputeSharp + A .NET 5 library to run C# code in parallel on the GPU through DX12 and dynamically generated HLSL compute shaders + New interlocked intrinsics APIs, performance and memory optimizations + 2.0.0 + https://github.com/Sergio0694/ComputeSharp.git + https://github.com/Sergio0694/ComputeSharp + Sergio Pedri + Sergio Pedri + Copyright (c) 2020 Sergio Pedri + MIT + false + https://i.imgur.com/ntvmD6P.png + dotnet net netcore netstandard csharp library graphics shader hlsl compute gpu + + + + + + + \ No newline at end of file diff --git a/src/ComputeSharp.Shaders/ComputeSharp.Shaders.csproj b/src/ComputeSharp.Shaders/ComputeSharp.Shaders.csproj index a085e449..4c325294 100644 --- a/src/ComputeSharp.Shaders/ComputeSharp.Shaders.csproj +++ b/src/ComputeSharp.Shaders/ComputeSharp.Shaders.csproj @@ -2,7 +2,6 @@ net5.0 - enable true diff --git a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj index 1c9c7e2d..467bb2d1 100644 --- a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj +++ b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj @@ -3,16 +3,20 @@ netstandard2.0 9.0 - enable + + + + analyzers\dotnet\cs + false - - + + - + diff --git a/src/ComputeSharp/ComputeSharp.csproj b/src/ComputeSharp/ComputeSharp.csproj index 54bca4f1..71f419d3 100644 --- a/src/ComputeSharp/ComputeSharp.csproj +++ b/src/ComputeSharp/ComputeSharp.csproj @@ -2,18 +2,27 @@ net5.0 - preview - enable + 9.0 true + + lib\$(TargetFramework) + + - - + + diff --git a/src/Directory.Build.props b/src/Directory.Build.props new file mode 100644 index 00000000..84867398 --- /dev/null +++ b/src/Directory.Build.props @@ -0,0 +1,9 @@ + + + enable + + + + + + \ No newline at end of file