-
Notifications
You must be signed in to change notification settings - Fork 224
/
Copy pathCompileDXE2.bat
150 lines (100 loc) · 3.4 KB
/
CompileDXE2.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
@SET BDS=C:\Program Files\Embarcadero\RAD Studio\9.0
@SET BDSCOMMONDIR=C:\Users\Public\Documents\RAD Studio\9.0
@SET FrameworkDir=C:\Windows\Microsoft.NET\Framework\v3.5
@SET FrameworkVersion=v3.5
@SET FrameworkSDKDir=
@SET PATH=%FrameworkDir%;%FrameworkSDKDir%;C:\Program Files\Embarcadero\RAD Studio\9.0\bin;C:\Program Files\Embarcadero\RAD Studio\9.0\bin64;%PATH%
@SET LANGDIR=EN
@echo off
del *.rsm /s
IF ERRORLEVEL 1 goto ERROR
del *.identcache /s
IF ERRORLEVEL 1 goto ERROR
del *.dproj.local /s
IF ERRORLEVEL 1 goto ERROR
del demo\*.dcu /s
del lib\dxe2\*.dcu /s
del source\*.dcu /s
IF ERRORLEVEL 1 goto ERROR
del demo\*.bpl /s
del lib\dxe2\*.bpl /s
del source\*.bpl /s
IF ERRORLEVEL 1 goto ERROR
del demo\*.~bpl /s
del lib\dxe2\*.~bpl /s
del source\*.~bpl /s
IF ERRORLEVEL 1 goto ERROR
del demo\*.exe /s
del lib\dxe2\*.exe /s
del source\*.exe /s
IF ERRORLEVEL 1 goto ERROR
del demo\*.ini /s
IF ERRORLEVEL 1 goto ERROR
del demo\*.html /s
IF ERRORLEVEL 1 goto ERROR
MSBuild source\Alcinoe_dxe2.dproj /t:build /p:Config=Release /p:Platform=Win32
IF ERRORLEVEL 1 goto ERROR
pause
MSBuild source\Alcinoe_dxe2.dproj /t:build /p:Config=Release /p:Platform=Win64
IF ERRORLEVEL 1 goto ERROR
pause
MSBuild demo\ProjectGroupDemo.dxe2.groupproj /t:build /p:Config=Release /p:Platform=Win32
IF ERRORLEVEL 1 goto ERROR
pause
del demo\*.dcu /s
IF ERRORLEVEL 1 goto ERROR
MSBuild demo\ProjectGroupDemo.dxe2.groupproj /t:build /p:Config=Release /p:Platform=Win64
IF ERRORLEVEL 1 goto ERROR
pause
if exist ..\..\BlowPipeEmail\_build\Source\BlowPipeEmail.dpr (
del ..\..\BlowPipeEmail\*.rsm /s
IF ERRORLEVEL 1 goto ERROR
del ..\..\BlowPipeEmail\*.dcu /s
IF ERRORLEVEL 1 goto ERROR
del ..\..\BlowPipeEmail\*.exe /s
IF ERRORLEVEL 1 goto ERROR
del ..\..\BlowPipeEmail\*.ini /s
IF ERRORLEVEL 1 goto ERROR
del ..\..\BlowPipeEmail\*.identcache /s
IF ERRORLEVEL 1 goto ERROR
del ..\..\BlowPipeEmail\*.dproj.local /s
IF ERRORLEVEL 1 goto ERROR
MSBuild ..\..\BlowPipeEmail\_build\Source\BlowPipeEmail.dproj /t:build /p:Config=Release /p:Platform=Win32
IF ERRORLEVEL 1 goto ERROR
pause
xcopy ..\..\BlowPipeEmail\BlowPipeEmail.exe demo\BlowPipeEmail /s
IF ERRORLEVEL 1 goto ERROR
del ..\..\BlowPipeEmail\*.dcu /s
IF ERRORLEVEL 1 goto ERROR
)
if exist ..\..\BlowPipeSMS\_build\Source\BlowPipeSMS.dpr (
del ..\..\BlowPipeSMS\*.rsm /s
IF ERRORLEVEL 1 goto ERROR
del ..\..\BlowPipeSMS\*.dcu /s
IF ERRORLEVEL 1 goto ERROR
del ..\..\BlowPipeSMS\*.exe /s
IF ERRORLEVEL 1 goto ERROR
del ..\..\BlowPipeSMS\*.ini /s
IF ERRORLEVEL 1 goto ERROR
del ..\..\BlowPipeSMS\*.identcache /s
IF ERRORLEVEL 1 goto ERROR
del ..\..\BlowPipeSMS\*.dproj.local /s
IF ERRORLEVEL 1 goto ERROR
MSBuild ..\..\BlowPipeSMS\_build\Source\BlowPipeSMS.dproj /t:build /p:Config=Release /p:Platform=Win32
IF ERRORLEVEL 1 goto ERROR
pause
xcopy ..\..\BlowPipeSMS\BlowPipeSMS.exe demo\BlowPipeSMS /s
IF ERRORLEVEL 1 goto ERROR
del ..\..\BlowPipeSMS\*.dcu /s
IF ERRORLEVEL 1 goto ERROR
)
del Release\Alcinoe.zip
C:\Progra~1\7-Zip\7za.exe a -tzip -r release\Alcinoe.zip * -x!_svn* -x!.svn* -x!*.dcu -x!*.bpl -x!*__history* -x!release*
IF ERRORLEVEL 1 goto ERROR
del *.dcu /s
IF ERRORLEVEL 1 goto ERROR
GOTO END
:ERROR
PAUSE
EXIT
:END