Skip to content

Commit

Permalink
Update to VS 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 15, 2022
1 parent b726848 commit e486a10
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`

Expand Down
4 changes: 2 additions & 2 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions jpegoptim.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<CharacterSet>Unicode</CharacterSet>
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<CharacterSet>Unicode</CharacterSet>
<ConfigurationType>Application</ConfigurationType>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<UseOfMfc>false</UseOfMfc>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions mozjpeg.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<CharacterSet>Unicode</CharacterSet>
<ConfigurationType>StaticLibrary</ConfigurationType>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<CharacterSet>Unicode</CharacterSet>
<ConfigurationType>StaticLibrary</ConfigurationType>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<UseOfMfc>false</UseOfMfc>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
Expand Down

0 comments on commit e486a10

Please sign in to comment.