Skip to content

Commit 7847e5d

Browse files
committed
Added use of icu 67_1 for Visual Studio 2019 build.
1 parent 138f8fd commit 7847e5d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

build/helpers/dependencies.cmd

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ SET WindowsTargetPlatformVersion=%WindowsSDKVersion%
2121
)
2222

2323
rem GOTO :BUILD_ICONV
24+
rem GOTO :BUILD_ICU
2425

2526
if "%PRODUCT_NAME%" == "PostgreSQL" goto :SKIP_ZSTD
2627
if "%PRODUCT_NAME%" == "PostgresPro" goto :SKIP_ZSTD
@@ -310,14 +311,18 @@ CD /D %DOWNLOADS_DIR%
310311
:BUILD_ICU
311312
TITLE Building icu...
312313
CD /D %DOWNLOADS_DIR%
313-
rem wget --no-check-certificate -c http://download.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.zip -O icu4c-56_1-src.zip
314314
rem wget --no-check-certificate -c https://github.com/unicode-org/icu/releases/download/release-56-2/icu4c-56_2-src.zip -O icu4c-56_2-src.zip
315315
wget --no-check-certificate -c http://repo.postgrespro.ru/depends/icu4c-%ICU_VER%-src.zip -O icu4c-%ICU_VER%-src.zip
316316
rm -rf %DEPENDENCIES_BIN_DIR%\icu %DEPENDENCIES_SRC_DIR%\icu
317317
MKDIR %DEPENDENCIES_BIN_DIR%\icu
318318
7z x icu4c-%ICU_VER%-src.zip -o%DEPENDENCIES_SRC_DIR% -y
319319
CD /D %DEPENDENCIES_SRC_DIR%\icu
320-
msbuild source\allinone\allinone.sln /m /p:Configuration="Release" /p:Platform=%Platform% /p:PlatformToolset=%PlatformToolset% || GOTO :ERROR
320+
IF %SDK% == MSVC2013 (
321+
msbuild source\allinone\allinone.sln /m /p:Configuration="Release" /p:Platform=%Platform% /p:PlatformToolset=%PlatformToolset% || GOTO :ERROR
322+
) ELSE (
323+
msbuild source\allinone\allinone.sln /m /p:Configuration="Release" /p:Platform=%Platform% /p:PlatformToolset=%PlatformToolset% /p:WindowsTargetPlatformVersion=10.0 /p:SkipUWP=true || GOTO :ERROR
324+
)
325+
321326
IF %ARCH% == X64 (
322327
cp -va %DEPENDENCIES_SRC_DIR%\icu\bin64 %DEPENDENCIES_BIN_DIR%\icu\bin || GOTO :ERROR
323328
cp -va %DEPENDENCIES_SRC_DIR%\icu\lib64 %DEPENDENCIES_BIN_DIR%\icu\lib || GOTO :ERROR

build/helpers/setvars.cmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ IF %SDK% == MSVC2013 (
5252
)
5353

5454
IF %SDK% == MSVC2015 (
55+
SET ICU_VER=67_1
5556
SET REDIST_YEAR=2015
5657
SET PlatformToolset=v140
5758
IF %ARCH% == X86 CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall" x86 || GOTO :ERROR
@@ -60,13 +61,15 @@ IF %SDK% == MSVC2015 (
6061
ECHO ON
6162
)
6263
IF %SDK% == MSVC2017 (
64+
SET ICU_VER=67_1
6365
SET REDIST_YEAR=2017
6466
SET PlatformToolset=v141
6567
IF %ARCH% == X86 CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86 || GOTO :ERROR
6668
ECHO ON
6769
IF %ARCH% == X64 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 || GOTO :ERROR
6870
)
6971
IF %SDK% == MSVC2019 (
72+
SET ICU_VER=67_1
7073
SET REDIST_YEAR=2019
7174
SET PlatformToolset=v142
7275
IF %ARCH% == X86 CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86 || GOTO :ERROR

0 commit comments

Comments
 (0)