-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuildlibs.bat
84 lines (62 loc) · 1.09 KB
/
buildlibs.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
@echo off
set BUILDTOOLS_PATH=%1
if not exist lib mkdir lib
rem ==== OpenSSL ====
if exist lib\libeay32.lib (
echo OpenSSL already built
goto SKIP_OPENSSL
)
echo Building OpenSSL ...
cd openssl
make
cd ..
if not exist lib\libeay32.lib (
echo OpenSSL build failed
exit
)
:SKIP_OPENSSL
rem ==== Expat ====
if exist lib\libexpats_mtd.lib (
echo Expat already built
goto SKIP_EXPAT
)
echo Building Expat ...
cd expat\bcb5
call setup.bat
make -f makefile.mak expat_static
cd ..\..
if not exist expat\bcb5\release\libexpats_mtd.lib (
echo Expat build failed
exit
)
copy expat\bcb5\release\libexpats_mtd.lib lib
:SKIP_EXPAT
rem ==== neon ====
if exist lib\neon.lib (
echo neon already built
goto SKIP_NEON
)
echo Building neon ...
cd neon
make -f Makefile.bcb all
cd ..
if not exist lib\neon.lib (
echo neon build failed
exit
)
:SKIP_NEON
rem ==== PuTTY VS ====
if exist lib\PuTTYVS.lib (
echo PuTTYVS already built
goto SKIP_PUTTYVS
)
echo Building PuTTYVS ...
cd puttyvs
call build.bat %BUILDTOOLS_PATH%
cd ..
if not exist lib\PuTTYVS.lib (
echo PuTTYVS build failed
exit
)
:SKIP_PUTTYVS
echo All done