This repository was archived by the owner on Dec 5, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindows_x64_vc12_setup_3rd_part_extended.bat
More file actions
111 lines (73 loc) · 3.08 KB
/
windows_x64_vc12_setup_3rd_part_extended.bat
File metadata and controls
111 lines (73 loc) · 3.08 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
set VISUALSTUDIO_VERSION=12.0
set VISUALSTUDIO_VERSION_MAJOR=12
set PROTOBUF_VERSION=3.0.0-beta-1
set LIBXML2_VER=2.9.3
SET KERBEROS5_VER=1.14
SET LIBICONV_VER=1.14
set LIBEVENT_VERSION=2.0.21
set PTHREAD_VERSION=2-9-1
call "C:\Program Files (x86)\Microsoft Visual Studio %VISUALSTUDIO_VERSION%\VC\vcvarsall.bat" amd64
wget --no-check-certificate https://github.com/libevent/libevent/archive/release-%LIBEVENT_VERSION%-stable.tar.gz -Olibevent-%LIBEVENT_VERSION%-stable.tar.gz
gunzip libevent-%LIBEVENT_VERSION%-stable.tar.gz
tar xf libevent-%LIBEVENT_VERSION%-stable.tar
del libevent-%LIBEVENT_VERSION%-stable.tar
REM building this is done in aerospike-asio in cmake project....
wget ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-%PTHREAD_VERSION%-release.tar.gz
gunzip pthreads-w32-%PTHREAD_VERSION%-release.tar.gz
tar xf pthreads-w32-%PTHREAD_VERSION%-release.tar
del pthreads-w32-%PTHREAD_VERSION%-release.tar
@ECHO BUILDING PTHREADS
cd pthreads-w32-%PTHREAD_VERSION%-release
#nmake clean VC-static-debug
#nmake clean VC-static
#test
nmake clean VC
nmake clean VC-debug
cd ..
wget --no-check-certificate https://github.com/google/protobuf/releases/download/v%PROTOBUF_VERSION%/protobuf-cpp-%PROTOBUF_VERSION%.tar.gz -Oprotobuf-cpp-%PROTOBUF_VERSION%.tar.gz
gunzip protobuf-cpp-%PROTOBUF_VERSION%.tar.gz
tar xf protobuf-cpp-%PROTOBUF_VERSION%.tar
del protobuf-cpp-%PROTOBUF_VERSION%.tar
cd protobuf-%PROTOBUF_VERSION%
mkdir install
mkdir include
mkdir lib
mkdir lib\x64
mkdir lib\x64\Release
mkdir lib\x64\Debug
cd cmake
mkdir winbuild & cd winbuild
mkdir release & cd release
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../../../install ../..
nmake
nmake install
copy ..\..\..\install\lib\*.lib ..\..\..\lib\x64\Release
cd ..
mkdir debug & cd debug
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../../install ../..
nmake
nmake install
copy ..\..\..\install\lib\*.lib ..\..\..\lib\x64\Debug
cd ..\..\..
xcopy /e/s install\include include
cd ..
#http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-%LIBICONV_VER%.tar.gz -Olibiconv-%LIBICONV_VER%.tar.gz
gunzip libiconv-%LIBICONV_VER%.tar.gz
tar xf libiconv-%LIBICONV_VER%.tar
del libiconv-%LIBICONV_VER%.tar
wget ftp://xmlsoft.org/libxml2/libxml2-%LIBXML2_VER%.tar.gz
gunzip libxml2-%LIBXML2_VER%.tar.gz
tar xf libxml2-%LIBXML2_VER%.tar
del libxml2-%LIBXML2_VER%.tar
cd libxml2-%LIBXML2_VER%
cd win32
cscript configure.js compiler=msvc prefix=..\out include=..\..\libiconv-%LIBICONV_VER%\include libdir=..\lib\x64\Debug static=yes debug=yes cruntime=/MDd
cscript configure.js compiler=msvc prefix=..\out include=..\..\libiconv-%LIBICONV_VER%\include libdir=..\lib\x64\Release static=yes debug=no cruntime=/MD
# http://web.mit.edu/kerberos/
wget http://web.mit.edu/kerberos/dist/krb5/%KERBEROS5_VER%/krb5-%KERBEROS5_VER%.tar.gz -Okrb5-%KERBEROS5_VER%.tar.gz
gunzip krb5-%KERBEROS5_VER%.tar.gz
tar xf krb5-%KERBEROS5_VER%.tar
del krb5-%KERBEROS5_VER%.tar
http://sourceforge.net/projects/libuuid/
http://www.gnu.org/software/gsasl/