From 483e92e71699862acca548ee1fc0417fa689334d Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 31 Aug 2013 10:24:59 +0000 Subject: [PATCH] comments only git-svn-id: trunk@42532 - --- tools/install/win/build-cross.bat | 33 +++++++++++++++++++------------ 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/tools/install/win/build-cross.bat b/tools/install/win/build-cross.bat index 983d98045d..06979d44ea 100644 --- a/tools/install/win/build-cross.bat +++ b/tools/install/win/build-cross.bat @@ -5,7 +5,21 @@ if [%3]==[] goto USAGE if [%4]==[] goto USAGE if [%5]==[] goto USAGE +:: Set some environment variables from the command line +:: Path to the fpc sources checked out of fpcbuild svn repository +SET FPCSVNDIR=%1 +:: Path to the lazarus sources checked out of subversion +SET LAZSVNDIR=%2 + +:: Path to latest release compiler +SET RELEASE_PPC=%3 + +SET TARGETCPU=%4 +SET TARGETOS=%5 + +::===================================================================== +:: Find required programs :: These settings are dependent on the configuration of the build machine :: Path to the Inno Setup Compiler if [%ISCC%]==[] SET ISCC="C:\Program Files\Inno Setup 5\iscc.exe" @@ -21,19 +35,6 @@ SET BUILDDIR=c:\temp\lazbuild :: Path to the svn executable if [%SVN%]==[] SET SVN="c:\program files\subversion\bin\svn.exe" -:: Set some environment variables from the command line -:: Path to the fpc sources checked out of fpcbuild svn repository -SET FPCSVNDIR=%1 - -:: Path to the lazarus sources checked out of subversion -SET LAZSVNDIR=%2 - -:: Path to latest release compiler -SET RELEASE_PPC=%3 - -SET TARGETCPU=%4 -SET TARGETOS=%5 - :: Some internal variables SET OLDCURDIR=%CD% SET OLDCURDRIVE=%CD:~,2% @@ -55,6 +56,9 @@ PATH=%FPCBINDIR%; %FPCSVNDRIVE% cd %FPCSVNDIR%\fpcsrc +::===================================================================== +:: Build a native FPC + %MAKEEXE% distclean FPC=%RELEASE_PPC% rm -rf %FPCSVNDIR%\fpcsrc\compiler\*.exe :: create a native compiler + utils @@ -73,6 +77,9 @@ SET FPCFPMAKE=%COMPILER% ::%MAKEEXE% -C utils fpcmkcfg_all FPC=%COMPILER% +::===================================================================== +:: Build cross FPC + %MAKEEXE% compiler FPC=%COMPILER% PPC_TARGET=%TARGETCPU% EXENAME=%PPCNAME% IF ERRORLEVEL 1 GOTO CLEANUP SET COMPILER=%FPCSVNDIR%\fpcsrc\compiler\%PPCNAME%