Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01c075b

Browse files
committed
Prepared for VS2022 build
1 parent e4c603b commit 01c075b

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

build/helpers/dependencies.cmd

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ SET WindowsTargetPlatformVersion=%WindowsSDKVersion%
1919
IF %SDK% == MSVC2019 (
2020
SET WindowsTargetPlatformVersion=%WindowsSDKVersion%
2121
)
22+
IF %SDK% == MSVC2022 (
23+
SET WindowsTargetPlatformVersion=%WindowsSDKVersion%
24+
)
2225

2326
rem GOTO :BUILD_ICONV
2427
rem GOTO :BUILD_ICU

build/helpers/postgres_installer.cmd

+5
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ cp "%VCToolsRedistDir%vc_redist.x86.exe" "%BUILD_DIR%\vcredist\vcredist_x86_2019
3939
cp "%VCToolsRedistDir%vc_redist.x64.exe" "%BUILD_DIR%\vcredist\vcredist_x64_2019.exe"
4040
)
4141

42+
IF %REDIST_YEAR% == 2022 (
43+
cp "%VCToolsRedistDir%vc_redist.x86.exe" "%BUILD_DIR%\vcredist\vcredist_x86_2022.exe"
44+
cp "%VCToolsRedistDir%vc_redist.x64.exe" "%BUILD_DIR%\vcredist\vcredist_x64_2022.exe"
45+
)
46+
4247
REM Make directory for installers
4348
MKDIR "%BUILD_DIR%\installers"
4449

build/helpers/setvars.cmd

+11-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ SET PERL64_PATH=C:\Perl64
1919
SET PERL32_BIN=%PERL32_PATH%\bin
2020
SET PERL64_BIN=%PERL64_PATH%\bin
2121
SET PYTHON32_PATH=C:\Python27x86
22-
SET PYTHON64_PATH=C:\Python27x64
22+
rem SET PYTHON64_PATH=C:\Python27x64
23+
SET PYTHON64_PATH=C:\Python310
2324
SET ZIP_PATH=C:\Program Files\7-Zip;C:\Program Files (x86)\7-Zip
2425
SET NSIS_PATH=C:\Program Files (x86)\NSIS
2526
SET MSYS2_PATH=C:\msys64\usr\bin
@@ -77,6 +78,15 @@ IF %SDK% == MSVC2019 (
7778
ECHO ON
7879
IF %ARCH% == X64 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 || GOTO :ERROR
7980
)
81+
IF %SDK% == MSVC2022 (
82+
SET ICU_VER=67_1
83+
SET REDIST_YEAR=2022
84+
SET PlatformToolset=v143
85+
IF %ARCH% == X86 CALL "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86 || GOTO :ERROR
86+
ECHO ON
87+
IF %ARCH% == X64 call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 || GOTO :ERROR
88+
SET PlatformToolset=v143
89+
)
8090

8191
rem vcvarsall of VS 2019 rewrite this variable
8292
IF %ARCH% == X86 SET Platform=Win32

nsis/unneeded.files

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
./doc/contrib/README*
55
./doc/extension/README*
66
./share/locale/*/LC_MESSAGES/pltcl-*.mo
7+
./bin/corrupt_icu_version.exe

0 commit comments

Comments
 (0)