forked from RetroShare/RetroShare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-all-mingw32make.bat
120 lines (77 loc) · 1.76 KB
/
build-all-mingw32make.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
set QTDIR=C:\Qt\4.8.6
set MINGW=C:\MinGW
set GIT=C:\Program Files\Git
set PATH=%QTDIR%\bin;%MINGW%\bin;%GIT%\bin;%PATH%
@echo off
rem emptying used variables in case the script was aborted and tempfile
set pack=
set clean=
if exist tmp.txt del tmp.txt
:loop1
if %1x == x (
rem if not exist tmp.txt echo debug >>tmp.txt
goto :end1
)
if /i %1==clean (
set clean=clean
shift
goto :loop1
)
if /i %1==pack (
set pack=pack
shift
goto :loop1
)
echo.%1>>tmp.txt
shift
goto :loop1
:end1
if %clean%x==cleanx (
if not exist tmp.txt echo %clean% >>tmp.txt
)
if not exist tmp.txt (
if not %pack%x==packx (
echo debug >>tmp.txt
set clean=clean
)
)
for /f %%a in (tmp.txt) do (
@echo on
cd libbitdht\src
if not %clean%x==x mingw32-make clean
qmake libbitdht.pro
mingw32-make %%a
cd ..\..\openpgpsdk\src
if not %clean%x==x mingw32-make clean
qmake openpgpsdk.pro
mingw32-make
cd ..\..\libresapi\src
if not %clean%x==x mingw32-make clean
qmake libresapi.pro
mingw32-make %%a
cd ..\..\libretroshare\src
if not %clean%x==x mingw32-make clean
qmake libretroshare.pro "CONFIG+=version_detail_bash_script"
mingw32-make %%a
cd ..\..\supportlibs\pegmarkdown
if not %clean%x==x mingw32-make clean
qmake pegmarkdown.pro
mingw32-make %%a
cd ..\..\retroshare-nogui\src
if not %clean%x==x mingw32-make clean
qmake retroshare-nogui.pro
mingw32-make %%a
cd ..\..\retroshare-gui\src
if not %clean%x==x mingw32-make clean
qmake retroshare-gui.pro "CONFIG+=version_detail_bash_script"
mingw32-make %%a
cd ..\..
@echo off
)
@echo off
if %pack%x==packx call packaging.bat
rem clean up
set clean=
del tmp.txt
set pack=
pause