@@ -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