-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibpq.cmd
50 lines (42 loc) · 1.19 KB
/
libpq.cmd
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
echo Building Platfrom = %~1 Configuration=%~2
copy config.pl postgresql-10.3\src\tools\msvc\config.pl
REM Copy openssl binaries
RMDIR /S /Q openssl 2>nul
mkdir openssl
mkdir openssl\include
mkdir openssl\lib
echo %~3
xcopy /s %~3\include openssl\include
if "%~1" == "amd64" (
xcopy /s %~3\include_x64 openssl\include
xcopy /s %~3\binaries\x64\%~2 openssl\lib
)
if "%~1" == "x86" (
xcopy /s %~3\include_x86 openssl\include
xcopy /s %~3\binaries\Win32\%~2 openssl\lib
)
REM Copy zlib binaries
RMDIR /S /Q zlib 2>nul
mkdir zlib
mkdir zlib\include
mkdir zlib\lib
xcopy /s %~4\include zlib\include
if "%~1" == "amd64" (
if "%~2" == "Debug" (
copy %~4\binaries\x64\%~2\lib\zlibd.lib zlib\lib\zdll.lib
)
if "%~2" == "Release" (
copy %~4\binaries\x64\%~2\lib\zlib.lib zlib\lib\zdll.lib
)
)
if "%~1" == "x86" (
if "%~2" == "Debug" (
copy %~4\binaries\Win32\%~2\lib\zlibd.lib zlib\lib\zdll.lib
)
if "%~2" == "Release" (
copy %~4\binaries\Win32\%~2\lib\zlib.lib zlib\lib\zdll.lib
)
)
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %~1
cd postgresql-10.3/src/tools/msvc/
build.bat %~2 libpq