From 4410f7d2b198a029644a4dcf9f4a60bb88393bb2 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 18 Oct 2023 00:16:12 +0200 Subject: [PATCH 1/2] Centralize native libs to cleanup solution explorer --- .gitignore | 5 +++-- .../arm64/WinPixEventRuntime.dll | Bin .../arm64/WinPixEventRuntime_UAP.dll | Bin .../Libraries => libs}/arm64/dxcompiler.dll | Bin .../Libraries => libs}/arm64/dxil.dll | Bin .../x64/WinPixEventRuntime.dll | Bin .../x64/WinPixEventRuntime_UAP.dll | Bin .../Libraries => libs}/x64/dxcompiler.dll | Bin .../Libraries => libs}/x64/dxil.dll | Bin src/ComputeSharp.Dxc/ComputeSharp.Dxc.csproj | 16 ++++++++-------- src/ComputeSharp.Pix/ComputeSharp.Pix.csproj | 12 ++++++------ .../ComputeSharp.SourceGenerators.csproj | 8 ++++---- 12 files changed, 21 insertions(+), 20 deletions(-) rename {src/ComputeSharp.Pix/Libraries => libs}/arm64/WinPixEventRuntime.dll (100%) rename {src/ComputeSharp.Pix/Libraries => libs}/arm64/WinPixEventRuntime_UAP.dll (100%) rename {src/ComputeSharp.Dxc/Libraries => libs}/arm64/dxcompiler.dll (100%) rename {src/ComputeSharp.Dxc/Libraries => libs}/arm64/dxil.dll (100%) rename {src/ComputeSharp.Pix/Libraries => libs}/x64/WinPixEventRuntime.dll (100%) rename {src/ComputeSharp.Pix/Libraries => libs}/x64/WinPixEventRuntime_UAP.dll (100%) rename {src/ComputeSharp.Dxc/Libraries => libs}/x64/dxcompiler.dll (100%) rename {src/ComputeSharp.Dxc/Libraries => libs}/x64/dxil.dll (100%) diff --git a/.gitignore b/.gitignore index 73aa5e9a..fe276437 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ [Rr]elease/ [Rr]eleases/ x64/ +arm64/ x86/ bld/ [Bb]in/ @@ -25,8 +26,8 @@ bld/ [Ll]og/ # Include the bundled libraries -!**/Libraries/x64/ -!**/Libraries/arm64/ +!libs/x64/ +!libs/arm64/ # Debug view types !**/Resources/Debug diff --git a/src/ComputeSharp.Pix/Libraries/arm64/WinPixEventRuntime.dll b/libs/arm64/WinPixEventRuntime.dll similarity index 100% rename from src/ComputeSharp.Pix/Libraries/arm64/WinPixEventRuntime.dll rename to libs/arm64/WinPixEventRuntime.dll diff --git a/src/ComputeSharp.Pix/Libraries/arm64/WinPixEventRuntime_UAP.dll b/libs/arm64/WinPixEventRuntime_UAP.dll similarity index 100% rename from src/ComputeSharp.Pix/Libraries/arm64/WinPixEventRuntime_UAP.dll rename to libs/arm64/WinPixEventRuntime_UAP.dll diff --git a/src/ComputeSharp.Dxc/Libraries/arm64/dxcompiler.dll b/libs/arm64/dxcompiler.dll similarity index 100% rename from src/ComputeSharp.Dxc/Libraries/arm64/dxcompiler.dll rename to libs/arm64/dxcompiler.dll diff --git a/src/ComputeSharp.Dxc/Libraries/arm64/dxil.dll b/libs/arm64/dxil.dll similarity index 100% rename from src/ComputeSharp.Dxc/Libraries/arm64/dxil.dll rename to libs/arm64/dxil.dll diff --git a/src/ComputeSharp.Pix/Libraries/x64/WinPixEventRuntime.dll b/libs/x64/WinPixEventRuntime.dll similarity index 100% rename from src/ComputeSharp.Pix/Libraries/x64/WinPixEventRuntime.dll rename to libs/x64/WinPixEventRuntime.dll diff --git a/src/ComputeSharp.Pix/Libraries/x64/WinPixEventRuntime_UAP.dll b/libs/x64/WinPixEventRuntime_UAP.dll similarity index 100% rename from src/ComputeSharp.Pix/Libraries/x64/WinPixEventRuntime_UAP.dll rename to libs/x64/WinPixEventRuntime_UAP.dll diff --git a/src/ComputeSharp.Dxc/Libraries/x64/dxcompiler.dll b/libs/x64/dxcompiler.dll similarity index 100% rename from src/ComputeSharp.Dxc/Libraries/x64/dxcompiler.dll rename to libs/x64/dxcompiler.dll diff --git a/src/ComputeSharp.Dxc/Libraries/x64/dxil.dll b/libs/x64/dxil.dll similarity index 100% rename from src/ComputeSharp.Dxc/Libraries/x64/dxil.dll rename to libs/x64/dxil.dll diff --git a/src/ComputeSharp.Dxc/ComputeSharp.Dxc.csproj b/src/ComputeSharp.Dxc/ComputeSharp.Dxc.csproj index 6a602110..abb3485b 100644 --- a/src/ComputeSharp.Dxc/ComputeSharp.Dxc.csproj +++ b/src/ComputeSharp.Dxc/ComputeSharp.Dxc.csproj @@ -22,14 +22,14 @@ --> - - + + - - + + @@ -44,10 +44,10 @@ --> - - - - + + + + diff --git a/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj b/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj index f18e92e3..20403ec5 100644 --- a/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj +++ b/src/ComputeSharp.Pix/ComputeSharp.Pix.csproj @@ -15,7 +15,7 @@ - @@ -23,7 +23,7 @@ - @@ -47,25 +47,25 @@ $(NoWarn);NU5100 - - - - - - - - + + + + From ca5688d92920e92c4f3186e12b588a9ed8eefd4a Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 18 Oct 2023 00:42:15 +0200 Subject: [PATCH 2/2] Add native libraries to solution explorer --- ComputeSharp.sln | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ComputeSharp.sln b/ComputeSharp.sln index 12ef6026..c1f0b638 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -146,6 +146,24 @@ Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.CodeFixing", " EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.CodeFixers", "src\ComputeSharp.CodeFixers\ComputeSharp.CodeFixers.csproj", "{9B4448B1-200F-4966-8A13-A508691B3003}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Libraries", "Libraries", "{A5013F9B-92EC-419F-B0B3-3D6B721E7104}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "x64", "x64", "{79FD7862-4707-4DE0-8777-3872558E4C1C}" + ProjectSection(SolutionItems) = preProject + libs\x64\dxcompiler.dll = libs\x64\dxcompiler.dll + libs\x64\dxil.dll = libs\x64\dxil.dll + libs\x64\WinPixEventRuntime.dll = libs\x64\WinPixEventRuntime.dll + libs\x64\WinPixEventRuntime_UAP.dll = libs\x64\WinPixEventRuntime_UAP.dll + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "arm64", "arm64", "{B4F6A41C-AA9A-4302-92B3-AC64CF2E30F5}" + ProjectSection(SolutionItems) = preProject + libs\arm64\dxcompiler.dll = libs\arm64\dxcompiler.dll + libs\arm64\dxil.dll = libs\arm64\dxil.dll + libs\arm64\WinPixEventRuntime.dll = libs\arm64\WinPixEventRuntime.dll + libs\arm64\WinPixEventRuntime_UAP.dll = libs\arm64\WinPixEventRuntime_UAP.dll + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 @@ -461,6 +479,8 @@ Global {9EA5AE9D-C39A-4F43-B03E-0A848EA2558A} = {0ED8F632-5E17-46BE-8CC3-B14A82D4AEB1} {73C32D0F-64DB-4674-84E9-8FCC41228474} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} {59A17380-24A0-4BD7-9012-B105A9E7D46F} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7} + {79FD7862-4707-4DE0-8777-3872558E4C1C} = {A5013F9B-92EC-419F-B0B3-3D6B721E7104} + {B4F6A41C-AA9A-4302-92B3-AC64CF2E30F5} = {A5013F9B-92EC-419F-B0B3-3D6B721E7104} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {4664C5E3-0340-4E22-BCFD-98AAEDF5F2DC}