From e486a108595bea0947b7a82672c2c9e97a83b5e4 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 15 Mar 2022 09:16:02 +0200 Subject: [PATCH] Update to VS 2022 --- README.md | 4 ++-- build.bat | 4 ++-- jpegoptim.vcxproj | 4 ++-- mozjpeg.vcxproj | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0a4d9e1..8c81c0c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Currently only 64-bit (x64) is targeted. ## Notes * Multithreaded; no need for the MSVC Runtime to be installed separately -* Built with [LTCG](https://docs.microsoft.com/en-us/cpp/build/reference/ltcg-link-time-code-generation?view=vs-2019) +* Built with [LTCG](https://docs.microsoft.com/en-us/cpp/build/reference/ltcg-link-time-code-generation?view=msvc-170) * Runs on Windows Vista and newer ## Build Instructions @@ -26,7 +26,7 @@ Currently only 64-bit (x64) is targeted. git submodule update --recursive ``` -2. Download and install [Visual Studio 2019](https://visualstudio.microsoft.com/downloads/) (any edition) +2. Download and install [Visual Studio 2022](https://visualstudio.microsoft.com/downloads/) (any edition) 3. Download [nasm](https://www.nasm.us/) and place `nasm.exe` somewhere into your `PATH` 4. Open `jpegoptim.sln` and build, or run `build.bat` diff --git a/build.bat b/build.bat index d6ae404..fc6d892 100644 --- a/build.bat +++ b/build.bat @@ -5,9 +5,9 @@ cd /d %~dp0 rem add MSVC in PATH call :SubVSPath -if not exist "%VS_PATH%" echo ERROR: Visual Studio 2019 NOT FOUND! & goto end +if not exist "%VS_PATH%" echo ERROR: Visual Studio NOT FOUND! & goto end -call "%VS_PATH%\Common7\Tools\vsdevcmd" -arch=amd64 +call "%VS_PATH%\Common7\Tools\VsDevCmd.bat" -arch=amd64 set "MSBUILD_SWITCHES=/nologo /consoleloggerparameters:Verbosity=minimal /maxcpucount /nodeReuse:true" diff --git a/jpegoptim.vcxproj b/jpegoptim.vcxproj index c975ce8..83cf29c 100644 --- a/jpegoptim.vcxproj +++ b/jpegoptim.vcxproj @@ -21,13 +21,13 @@ Unicode Application - v142 + v143 false Unicode Application - v142 + v143 false true diff --git a/mozjpeg.vcxproj b/mozjpeg.vcxproj index f64c842..2654a9e 100644 --- a/mozjpeg.vcxproj +++ b/mozjpeg.vcxproj @@ -21,13 +21,13 @@ Unicode StaticLibrary - v142 + v143 false Unicode StaticLibrary - v142 + v143 false true