forked from project-jedi/jcl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
outchy
committed
Feb 26, 2011
1 parent
ffbd42f
commit 4d7227f
Showing
4 changed files
with
83 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,65 @@ | ||
@echo off | ||
SETLOCAL | ||
SET SETUPDIR=%CD% | ||
|
||
:: ========================================================== | ||
:: rsvars.bat check | ||
:: ========================================================== | ||
if not "-%BDS%" == "-" goto RsVarsCalled | ||
call rsvars.bat | ||
if "-%BDS%" == "-" goto Leave | ||
|
||
:RsVarsCalled | ||
SET JCLROOT=%SETUPDIR%\..\jcl | ||
SET JCLBUILTDIR=%SETUPDIR%\setupbuild | ||
SET InnoSetupDir=%SETUPDIR%\InnoSetup | ||
|
||
:: == Sanity checks == | ||
if not exist "%JCLROOT%\source\common\JclBase.pas" goto NoRootDirFound | ||
if not exist "%SETUPDIR%\Install.iss" goto NoInstallDir | ||
|
||
|
||
:: ========================================================== | ||
:: Compile JCL | ||
:: ========================================================== | ||
|
||
:: == Create output directories == | ||
md "%SETUPDIR%\setupbuild" 2>NUL >NUL | ||
md "%JCLBUILTDIR%" 2>NUL >NUL | ||
md "%JCLBUILTDIR%\hpp" 2>NUL >NUL | ||
md "%JCLBUILTDIR%\lib" 2>NUL >NUL | ||
md "%JCLBUILTDIR%\bpl" 2>NUL >NUL | ||
|
||
:: == Delete all files in the output directories, we always want to rebuild them == | ||
del /Q /S "%JCLBUILTDIR%\*.*" 2>NUL >NUL | ||
|
||
:: == Compile the files | ||
cd %JCLROOT% | ||
msbuild make.proj "/p:HppOutDir=%JCLBUILTDIR%\hpp" "/p:DcuOutDir=%JCLBUILTDIR%\lib" "/p:BplOutDir=%JCLBUILTDIR%\bpl" | ||
if ERRORLEVEL 1 goto Failed | ||
cd %SETUPDIR% | ||
|
||
:: ========================================================== | ||
:: Compile Setup | ||
:: ========================================================== | ||
:Setup | ||
"%InnoSetupDir%\ISCC.exe" Install.iss /dCmdLineBuild "/dJclRoot=%JCLROOT%" "/dJclLib=%JCLBUILTDIR%\lib" "/dJclBpl=%JCLBUILTDIR%\bpl" "/dJclHpp="%JCLBUILTDIR%\hpp" | ||
if ERRORLEVEL 1 goto Failed | ||
|
||
|
||
goto Leave | ||
|
||
:NoInstalLDirFound | ||
echo You must start BuildSetup.bat from the JclInnoSetup directory. | ||
goto Failed | ||
|
||
:NoRootDirFound | ||
echo "%JCLROOT%" is not the JCL root directory. | ||
|
||
:Failed | ||
echo. | ||
pause | ||
|
||
:Leave | ||
cd %SETUPDIR% | ||
@echo off | ||
SETLOCAL | ||
SET SETUPDIR=%CD% | ||
|
||
:: ========================================================== | ||
:: rsvars.bat check | ||
:: ========================================================== | ||
if not "-%BDS%" == "-" goto RsVarsCalled | ||
call rsvars.bat | ||
if "-%BDS%" == "-" goto Leave | ||
|
||
:RsVarsCalled | ||
SET JCLROOT=%SETUPDIR%\..\jcl | ||
SET JCLBUILTDIR=%SETUPDIR%\setupbuild | ||
SET InnoSetupDir=%SETUPDIR%\InnoSetup | ||
|
||
:: == Sanity checks == | ||
if not exist "%JCLROOT%\source\common\JclBase.pas" goto NoRootDirFound | ||
if not exist "%SETUPDIR%\Install.iss" goto NoInstallDir | ||
|
||
|
||
:: ========================================================== | ||
:: Compile JCL | ||
:: ========================================================== | ||
|
||
:: == Create output directories == | ||
md "%SETUPDIR%\setupbuild" 2>NUL >NUL | ||
md "%JCLBUILTDIR%" 2>NUL >NUL | ||
md "%JCLBUILTDIR%\hpp" 2>NUL >NUL | ||
md "%JCLBUILTDIR%\lib" 2>NUL >NUL | ||
md "%JCLBUILTDIR%\bpl" 2>NUL >NUL | ||
|
||
:: == Delete all files in the output directories, we always want to rebuild them == | ||
del /Q /S "%JCLBUILTDIR%\*.*" 2>NUL >NUL | ||
|
||
:: == Compile the files | ||
cd %JCLROOT% | ||
msbuild make.proj "/p:HppOutDir=%JCLBUILTDIR%\hpp" "/p:DcuOutDir=%JCLBUILTDIR%\lib" "/p:BplOutDir=%JCLBUILTDIR%\bpl" | ||
if ERRORLEVEL 1 goto Failed | ||
cd %SETUPDIR% | ||
|
||
:: ========================================================== | ||
:: Compile Setup | ||
:: ========================================================== | ||
:Setup | ||
"%InnoSetupDir%\ISCC.exe" Install.iss /dCmdLineBuild "/dJclRoot=%JCLROOT%" "/dJclLib=%JCLBUILTDIR%\lib" "/dJclBpl=%JCLBUILTDIR%\bpl" "/dJclHpp="%JCLBUILTDIR%\hpp" | ||
if ERRORLEVEL 1 goto Failed | ||
|
||
|
||
goto Leave | ||
|
||
:NoInstalLDirFound | ||
echo You must start BuildSetup.bat from the JclInnoSetup directory. | ||
goto Failed | ||
|
||
:NoRootDirFound | ||
echo "%JCLROOT%" is not the JCL root directory. | ||
|
||
:Failed | ||
echo. | ||
pause | ||
|
||
:Leave | ||
cd %SETUPDIR% | ||
ENDLOCAL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@echo off | ||
|
||
SET PATH=E:\Borland\Delphi7\Bin | ||
|
||
dcc32 -U..\..\JCL\source\Common;..\..\JCL\source\Windows -I..\..\JCL\source\Include -Q -$D- -E.. CompInstall.dpr | ||
|
||
@echo off | ||
|
||
SET PATH=E:\Borland\Delphi7\Bin | ||
|
||
dcc32 -U..\..\JCL\source\Common;..\..\JCL\source\Windows -I..\..\JCL\source\Include -Q -$D- -E.. CompInstall.dpr | ||
|
||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters