-
Notifications
You must be signed in to change notification settings - Fork 4
/
CompileSource.bat
41 lines (30 loc) · 1.03 KB
/
CompileSource.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
@echo off
rem 1:The directory to execute msbuild (project directory)
set runDir=%1
rem 2:The full path of rsvars.bat
set rsvarsDir=%2
rem 3:The project file
set projFile=%3
rem 4:The compile platform
set currPlatform=%4
rem 5:BPL output
set BPLDir=%5
echo %BPLDir%
rem 6:DCU output
set DCUDir=%6
echo %DCUDir%
rem 7:Include path
set IncludeDir=%7
echo %IncludeDir%
rem Refresh Delphi Environmental parameters
call %rsvarsDir%
set FullProjPath=%runDir%\%projFile%
echo %FullProjPath%
rem
set FullDCUPathDebug=%DCUDir%\%currPlatform%\Debug
echo FullDCUPathDebug
set FullDCUPathRelease=%DCUDir%\%currPlatform%\Release
echo FullDCUPathRelease
%FrameworkDir%\msbuild.exe %FullProjPath% /p:platform=%currPlatform% /p:config=Debug /p:DCC_BPLOutput=%BPLDir% /p:DCC_DCUOutput=%FullDCUPathDebug% /p:IncludePath=%IncludeDir%
%FrameworkDir%\msbuild.exe %FullProjPath% /p:platform=%currPlatform% /p:config=Release /p:DCC_BPLOutput=%BPLDir% /p:DCC_DCUOutput=%FullDCUPathRelease% /p:IncludePath=%IncludeDir%
rem pause