-
Notifications
You must be signed in to change notification settings - Fork 0
/
Buildx86.bat
26 lines (19 loc) · 1.72 KB
/
Buildx86.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
:: call the x86 Native Tools Command Prompt for VS 2019
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
:: set the paths to fnr
set PATH=%PATH%;C:\local\libs\fnr\bin;
:: switch to the poco directory ----------------------------------------
cd "poco-1.x"
:: remove MySQL
rd "Data\MySQL" /s /q
:: edit poco-1.x\buildwin.cmd to capture the location of OpenSSL
fnr --cl --dir %cd% --fileMask "buildwin.cmd" –-caseSensitive --find "OPENSSL_DIR=C:\OpenSSL" --replace "OPENSSL_DIR=C:\local\libs\openssl"
:: retarget projects from VS 2017 to VS 2019
fnr --cl --dir %cd% --fileMask "*.vcxproj" –-caseSensitive --includeSubDirectories --find "<PlatformToolset>v141</PlatformToolset>" --replace "<PlatformToolset>v142</PlatformToolset>"
:: add openssl library dependency to Crypto and NetSSL_OpenSSL
fnr --cl --dir %cd%\Crypto --fileMask "Crypto_vs150.vcxproj" –-caseSensitive --includeSubDirectories --find "ws2_32.lib;iphlpapi.lib;" --replace "ws2_32.lib;libeay32.lib;ssleay32.lib;iphlpapi.lib;"
fnr --cl --dir %cd%\Crypto --fileMask "TestSuite_vs150.vcxproj" –-caseSensitive --includeSubDirectories --find "ws2_32.lib;iphlpapi.lib;" --replace "ws2_32.lib;libeay32.lib;ssleay32.lib;iphlpapi.lib;"
fnr --cl --dir %cd%\NetSSL_OpenSSL --fileMask "NetSSL_OpenSSL_vs150.vcxproj" –-caseSensitive --includeSubDirectories --find "ws2_32.lib;iphlpapi.lib;" --replace "ws2_32.lib;libeay32.lib;ssleay32.lib;iphlpapi.lib;"
fnr --cl --dir %cd%\NetSSL_OpenSSL --fileMask "TestSuite_vs150.vcxproj" –-caseSensitive --includeSubDirectories --find "ws2_32.lib;iphlpapi.lib;" --replace "ws2_32.lib;libeay32.lib;ssleay32.lib;iphlpapi.lib;"
:: build the library for x86
buildwin 150 build shared both Win32 nosamples notests devenv