File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ SET WindowsTargetPlatformVersion=%WindowsSDKVersion%
21
21
)
22
22
23
23
rem GOTO :BUILD_ICONV
24
+ rem GOTO :BUILD_ICU
24
25
25
26
if " %PRODUCT_NAME% " == " PostgreSQL" goto :SKIP_ZSTD
26
27
if " %PRODUCT_NAME% " == " PostgresPro" goto :SKIP_ZSTD
@@ -310,14 +311,18 @@ CD /D %DOWNLOADS_DIR%
310
311
:BUILD_ICU
311
312
TITLE Building icu...
312
313
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
314
314
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
315
315
wget --no-check-certificate -c http://repo.postgrespro.ru/depends/icu4c-%ICU_VER% -src.zip -O icu4c-%ICU_VER% -src.zip
316
316
rm -rf %DEPENDENCIES_BIN_DIR% \icu %DEPENDENCIES_SRC_DIR% \icu
317
317
MKDIR %DEPENDENCIES_BIN_DIR% \icu
318
318
7z x icu4c-%ICU_VER% -src.zip -o%DEPENDENCIES_SRC_DIR% -y
319
319
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
+
321
326
IF %ARCH% == X64 (
322
327
cp -va %DEPENDENCIES_SRC_DIR% \icu\bin64 %DEPENDENCIES_BIN_DIR% \icu\bin || GOTO :ERROR
323
328
cp -va %DEPENDENCIES_SRC_DIR% \icu\lib64 %DEPENDENCIES_BIN_DIR% \icu\lib || GOTO :ERROR
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ IF %SDK% == MSVC2013 (
52
52
)
53
53
54
54
IF %SDK% == MSVC2015 (
55
+ SET ICU_VER = 67_1
55
56
SET REDIST_YEAR = 2015
56
57
SET PlatformToolset = v140
57
58
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 (
60
61
ECHO ON
61
62
)
62
63
IF %SDK% == MSVC2017 (
64
+ SET ICU_VER = 67_1
63
65
SET REDIST_YEAR = 2017
64
66
SET PlatformToolset = v141
65
67
IF %ARCH% == X86 CALL " C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86 || GOTO :ERROR
66
68
ECHO ON
67
69
IF %ARCH% == X64 call " C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 || GOTO :ERROR
68
70
)
69
71
IF %SDK% == MSVC2019 (
72
+ SET ICU_VER = 67_1
70
73
SET REDIST_YEAR = 2019
71
74
SET PlatformToolset = v142
72
75
IF %ARCH% == X86 CALL " C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86 || GOTO :ERROR
You can’t perform that action at this time.
0 commit comments