-
Notifications
You must be signed in to change notification settings - Fork 21
/
make_win64.sh
66 lines (66 loc) · 3.04 KB
/
make_win64.sh
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
echo ">>>>>>>>>>>>>>>>>>Building mxe. This may take a while."
cp -n mxepatch/nanomsg.mk mxe/src/nanomsg.mk
cp -n mxepatch/nanomsg-1.patch mxe/src/nanomsg-1.patch
cp -n mxepatch/nanomsg-2.patch mxe/src/nanomsg-2.patch
cp -n mxepatch/nanomsg-3-global.patch mxe/src/nanomsg-3-global.patch
cp -n mxepatch/nanomsg-4-options.patch mxe/src/nanomsg-4-options.patch
cp -n mxepatch/picocoin.mk mxe/src/picocoin.mk
cp -n mxepatch/picocoin-1.patch mxe/src/picocoin-1.patch
cp -n mxepatch/picocoin-2-endian.patch mxe/src/picocoin-2-endian.patch
cd mxe
patch -N -s --reject-file=- < ../mxepatch/mxe.patch
cd src
patch -N -s --reject-file=- < ../../mxepatch/curl.mk.patch
cd ..
make pkgconf MXE_TARGETS='x86_64-w64-mingw32.static'
make binutils MXE_TARGETS='x86_64-w64-mingw32.static'
make gcc-gmp MXE_TARGETS='x86_64-w64-mingw32.static'
make gcc-isl MXE_TARGETS='x86_64-w64-mingw32.static'
#make gcc-cloog MXE_TARGETS='x86_64-w64-mingw32.static'
make gcc-mpfr MXE_TARGETS='x86_64-w64-mingw32.static'
make gcc-mpc MXE_TARGETS='x86_64-w64-mingw32.static'
make mingw-w64 MXE_TARGETS='x86_64-w64-mingw32.static'
make gcc MXE_TARGETS='x86_64-w64-mingw32.static'
#make gzip2 MXE_TARGETS='x86_64-w64-mingw32.static'
make libiconv MXE_TARGETS='x86_64-w64-mingw32.static'
make gettext MXE_TARGETS='x86_64-w64-mingw32.static'
make pcre MXE_TARGETS='x86_64-w64-mingw32.static'
make zlib MXE_TARGETS='x86_64-w64-mingw32.static'
make dbus MXE_TARGETS='x86_64-w64-mingw32.static'
make glib MXE_TARGETS='x86_64-w64-mingw32.static'
make lzo MXE_TARGETS='x86_64-w64-mingw32.static'
make icu4c MXE_TARGETS='x86_64-w64-mingw32.static'
make apr MXE_TARGETS='x86_64-w64-mingw32.static'
make apr-util MXE_TARGETS='x86_64-w64-mingw32.static'
make curl MXE_TARGETS='x86_64-w64-mingw32.static'
make pthreads MXE_TARGETS='x86_64-w64-mingw32.static'
make libwebsockets MXE_TARGETS='x86_64-w64-mingw32.static'
make boost MXE_TARGETS='x86_64-w64-mingw32.static'
make db MXE_TARGETS='x86_64-w64-mingw32.static'
make nanomsg MXE_TARGETS='x86_64-w64-mingw32.static'
make mman-win32 MXE_TARGETS='x86_64-w64-mingw32.static'
make picocoin MXE_TARGETS='x86_64-w64-mingw32.static'
export PATH=$PWD/usr/bin:$PATH
cp ./usr/x86_64-w64-mingw32.static/include/winioctl.h ./usr/x86_64-w64-mingw32.static/include/WinIoCtl.h
cp ./usr/x86_64-w64-mingw32.static/include/windows.h ./usr/x86_64-w64-mingw32.static/include/Windows.h
cd ..
#cd nanomsg
#echo ">>>>>>>>>>>>>>>>>>building nanomsg"
#make clean
#sh ./autogen.sh
#CC=x86_64-w64-mingw32.static-gcc CXX=x86_64-w64-mingw32.static-g++ ./configure --host x86_64-w64-mingw32.static
#make CFLAGS='-g -O2 -w -DNN_HAVE_WINDOWS -DNN_HAVE_MINGW -D_WIN32_WINNT=0x0600'
#cp .libs/libnanomsg.a ../libs/libnanomsg-win64.a
#cd ../
rm mxe/usr/x86_64-w64-mingw32.static/include/objidl.h
cp mxepatch/winheaders/objidl.h mxe/usr/x86_64-w64-mingw32.static/include/objidl.h
cd miniupnpc
sh make_win64.sh
#echo ">>>>>>>>>>>>>>>>>>building mman-win32"
#cd ../mman-win32
#make clean
#./configure --cc=x86_64-w64-mingw32.static-gcc --enable-static
#make
#cp libmman.a ../libs/libmman.a
#cd ..
echo ">>>>>>>>>>>>>>>>>>finished with make winpatch"