From 9fd4d9f6b699870b8b23175e833283d96b3c721e Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Tue, 13 Dec 2022 22:26:09 -0800 Subject: [PATCH] Add Spectre-mitigated libraries to the NuGet (#295) --- .nuget/directxtex_desktop_2019.nuspec | 12 ++++++++++++ .nuget/directxtex_desktop_2019.targets | 4 +++- .nuget/directxtex_desktop_win10.nuspec | 18 ++++++++++++++++++ .nuget/directxtex_desktop_win10.targets | 8 +++++++- DirectXTex/DirectXTex_Desktop_2019.vcxproj | 5 +++++ .../DirectXTex_Desktop_2019_Win10.vcxproj | 5 +++++ DirectXTex/DirectXTex_Desktop_2022.vcxproj | 5 +++++ .../DirectXTex_Desktop_2022_Win10.vcxproj | 5 +++++ 8 files changed, 60 insertions(+), 2 deletions(-) diff --git a/.nuget/directxtex_desktop_2019.nuspec b/.nuget/directxtex_desktop_2019.nuspec index 749e73d..3f790c7 100644 --- a/.nuget/directxtex_desktop_2019.nuspec +++ b/.nuget/directxtex_desktop_2019.nuspec @@ -31,15 +31,27 @@ DirectXTex, a shared source library for reading and writing .DDS files, and perf + + + + + + + + + + + + diff --git a/.nuget/directxtex_desktop_2019.targets b/.nuget/directxtex_desktop_2019.targets index 0613a3a..d188792 100644 --- a/.nuget/directxtex_desktop_2019.targets +++ b/.nuget/directxtex_desktop_2019.targets @@ -16,12 +16,14 @@ $(MSBuildThisFileDirectory)..\..\native\lib\$(PlatformTarget)\$(NuGetConfiguration) + DirectXTex_Spectre + DirectXTex $(directxtex-LibPath);%(AdditionalLibraryDirectories) - DirectXTex.lib;%(AdditionalDependencies) + $(directxtex-LibName).lib;%(AdditionalDependencies) diff --git a/.nuget/directxtex_desktop_win10.nuspec b/.nuget/directxtex_desktop_win10.nuspec index 37e5316..abcef64 100644 --- a/.nuget/directxtex_desktop_win10.nuspec +++ b/.nuget/directxtex_desktop_win10.nuspec @@ -31,21 +31,39 @@ DirectXTex, a shared source library for reading and writing .DDS files, and perf + + + + + + + + + + + + + + + + + + diff --git a/.nuget/directxtex_desktop_win10.targets b/.nuget/directxtex_desktop_win10.targets index 0613a3a..5d2b6c6 100644 --- a/.nuget/directxtex_desktop_win10.targets +++ b/.nuget/directxtex_desktop_win10.targets @@ -14,6 +14,12 @@ Release + + $(MSBuildThisFileDirectory)..\..\native\lib\$(PlatformTarget)\$(NuGetConfiguration) + DirectXTex_Spectre + DirectXTex + + $(MSBuildThisFileDirectory)..\..\native\lib\$(PlatformTarget)\$(NuGetConfiguration) @@ -21,7 +27,7 @@ $(directxtex-LibPath);%(AdditionalLibraryDirectories) - DirectXTex.lib;%(AdditionalDependencies) + $(directxtex-LibName).lib;%(AdditionalDependencies) diff --git a/DirectXTex/DirectXTex_Desktop_2019.vcxproj b/DirectXTex/DirectXTex_Desktop_2019.vcxproj index 1ea7c70..1a1dc01 100644 --- a/DirectXTex/DirectXTex_Desktop_2019.vcxproj +++ b/DirectXTex/DirectXTex_Desktop_2019.vcxproj @@ -124,6 +124,11 @@ DirectXTex true + + Bin\Desktop_2019\$(Platform)\$(Configuration)Spectre\ + Bin\Desktop_2019\$(Platform)\$(Configuration)Spectre\ + DirectXTex_Spectre + EnableAllWarnings diff --git a/DirectXTex/DirectXTex_Desktop_2019_Win10.vcxproj b/DirectXTex/DirectXTex_Desktop_2019_Win10.vcxproj index de71431..39c39e9 100644 --- a/DirectXTex/DirectXTex_Desktop_2019_Win10.vcxproj +++ b/DirectXTex/DirectXTex_Desktop_2019_Win10.vcxproj @@ -179,6 +179,11 @@ DirectXTex true + + Bin\Desktop_2019_Win10\$(Platform)\$(Configuration)Spectre\ + Bin\Desktop_2019_Win10\$(Platform)\$(Configuration)Spectre\ + DirectXTex_Spectre + EnableAllWarnings diff --git a/DirectXTex/DirectXTex_Desktop_2022.vcxproj b/DirectXTex/DirectXTex_Desktop_2022.vcxproj index b3385cc..dd7a72c 100644 --- a/DirectXTex/DirectXTex_Desktop_2022.vcxproj +++ b/DirectXTex/DirectXTex_Desktop_2022.vcxproj @@ -124,6 +124,11 @@ DirectXTex true + + Bin\Desktop_2022\$(Platform)\$(Configuration)Spectre\ + Bin\Desktop_2022\$(Platform)\$(Configuration)Spectre\ + DirectXTex_Spectre + EnableAllWarnings diff --git a/DirectXTex/DirectXTex_Desktop_2022_Win10.vcxproj b/DirectXTex/DirectXTex_Desktop_2022_Win10.vcxproj index 6547424..fcfb26e 100644 --- a/DirectXTex/DirectXTex_Desktop_2022_Win10.vcxproj +++ b/DirectXTex/DirectXTex_Desktop_2022_Win10.vcxproj @@ -179,6 +179,11 @@ DirectXTex true + + Bin\Desktop_2022_Win10\$(Platform)\$(Configuration)Spectre\ + Bin\Desktop_2022_Win10\$(Platform)\$(Configuration)Spectre\ + DirectXTex_Spectre + EnableAllWarnings