mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 09:36:42 +02:00
lazbuild: add-package: forbid combine with create-makefile, error code if failed, check package type, load package file, save changed misc options.xml, using FileExistsUTF8
git-svn-id: trunk@37443 -
This commit is contained in:
parent
d1b708d96f
commit
4ba47f05cb
@ -4900,9 +4900,10 @@ resourcestring
|
|||||||
lisUnableToCreateLinkWithTarget = 'Unable to create link %s%s%s with target %s%s%s';
|
lisUnableToCreateLinkWithTarget = 'Unable to create link %s%s%s with target %s%s%s';
|
||||||
lisBuildAllFilesOfProjectPackageIDE =
|
lisBuildAllFilesOfProjectPackageIDE =
|
||||||
'build all files of project/package/IDE';
|
'build all files of project/package/IDE';
|
||||||
lisAddPackages='add package to list of installed packages (do not rebuild IDE).';
|
|
||||||
lisApplyBuildFlagsBToDependenciesToo = 'apply build flags (-B) to dependencies too';
|
lisApplyBuildFlagsBToDependenciesToo = 'apply build flags (-B) to dependencies too';
|
||||||
lisDoNotCompileDependencies = 'do not compile dependencies';
|
lisDoNotCompileDependencies = 'do not compile dependencies';
|
||||||
|
lisAddPackageSToListOfInstalledPackagesCombineWithBui = 'add package(s) to '
|
||||||
|
+'list of installed packages (combine with --build-ide to rebuild IDE).';
|
||||||
lisBuildIDEWithPackages = 'build IDE with packages';
|
lisBuildIDEWithPackages = 'build IDE with packages';
|
||||||
lisShowVersionAndExit = 'show version and exit';
|
lisShowVersionAndExit = 'show version and exit';
|
||||||
lisOverrideTheProjectOperatingSystemEGWin32LinuxDefau = '%soverride the '
|
lisOverrideTheProjectOperatingSystemEGWin32LinuxDefau = '%soverride the '
|
||||||
|
@ -80,5 +80,6 @@
|
|||||||
</CompilerMessages>
|
</CompilerMessages>
|
||||||
<CompilerPath Value="$(CompPath)"/>
|
<CompilerPath Value="$(CompPath)"/>
|
||||||
</Other>
|
</Other>
|
||||||
|
<LCLWidgetType Value="nogui"/>
|
||||||
</CompilerOptions>
|
</CompilerOptions>
|
||||||
</CONFIG>
|
</CONFIG>
|
||||||
|
221
ide/lazbuild.lpr
221
ide/lazbuild.lpr
@ -31,7 +31,7 @@ uses
|
|||||||
Classes, SysUtils, CustApp, LCLProc, Dialogs, Forms, Controls, FileUtil,
|
Classes, SysUtils, CustApp, LCLProc, Dialogs, Forms, Controls, FileUtil,
|
||||||
Interfaces, InterfaceBase, UTF8Process, LConvEncoding,
|
Interfaces, InterfaceBase, UTF8Process, LConvEncoding,
|
||||||
// codetools
|
// codetools
|
||||||
CodeCache, CodeToolManager, DefineTemplates, Laz2_XMLCfg,
|
CodeCache, CodeToolManager, DefineTemplates, Laz2_XMLCfg, LazUTF8,
|
||||||
// IDEIntf
|
// IDEIntf
|
||||||
MacroIntf, PackageIntf, IDEDialogs, ProjectIntf, IDEExternToolIntf,
|
MacroIntf, PackageIntf, IDEDialogs, ProjectIntf, IDEExternToolIntf,
|
||||||
CompOptsIntf, LazIDEIntf,
|
CompOptsIntf, LazIDEIntf,
|
||||||
@ -82,7 +82,7 @@ type
|
|||||||
out Description: string);
|
out Description: string);
|
||||||
procedure GetDependencyOwnerDirectory(Dependency: TPkgDependency;
|
procedure GetDependencyOwnerDirectory(Dependency: TPkgDependency;
|
||||||
out Directory: string);
|
out Directory: string);
|
||||||
// Event procedure that adds a package graph package to (user) package links:
|
// Event procedure that adds every package added to the package graph to the (user) package links
|
||||||
procedure PackageGraphAddPackage(Pkg: TLazPackage);
|
procedure PackageGraphAddPackage(Pkg: TLazPackage);
|
||||||
|
|
||||||
// project
|
// project
|
||||||
@ -98,7 +98,8 @@ type
|
|||||||
{%H-}DlgType: TMsgDlgType; {%H-}Buttons: array of const;
|
{%H-}DlgType: TMsgDlgType; {%H-}Buttons: array of const;
|
||||||
const {%H-}HelpKeyword: string): Integer;
|
const {%H-}HelpKeyword: string): Integer;
|
||||||
protected
|
protected
|
||||||
// Builds project or package, depending on extension. Packages can also be specified by package name if they are known to the IDE.
|
// Builds project or package, depending on extension.
|
||||||
|
// Packages can also be specified by package name if they are known to the IDE.
|
||||||
function BuildFile(Filename: string): boolean;
|
function BuildFile(Filename: string): boolean;
|
||||||
|
|
||||||
// packages
|
// packages
|
||||||
@ -118,7 +119,7 @@ type
|
|||||||
|
|
||||||
// Adding packages to list of to-be-installed packages in the IDE.
|
// Adding packages to list of to-be-installed packages in the IDE.
|
||||||
// The packages can then be installed by recompiling the IDE (because we're using static packages)
|
// The packages can then be installed by recompiling the IDE (because we're using static packages)
|
||||||
function AddRequestedPackages(const PackageNamesOrFiles: TStringList): boolean;
|
function AddPackagesToInstallList(const PackageNamesOrFiles: TStringList): boolean;
|
||||||
|
|
||||||
// IDE
|
// IDE
|
||||||
function BuildLazarusIDE: boolean;
|
function BuildLazarusIDE: boolean;
|
||||||
@ -321,59 +322,54 @@ begin
|
|||||||
Result:=false;
|
Result:=false;
|
||||||
OriginalFilename:=FileName;
|
OriginalFilename:=FileName;
|
||||||
Filename:=CleanAndExpandFilename(Filename);
|
Filename:=CleanAndExpandFilename(Filename);
|
||||||
case FileExists(Filename) of
|
if not FileExistsUTF8(Filename) then
|
||||||
false:
|
begin
|
||||||
begin
|
// Check for packages if the specified name is a valid identifier
|
||||||
// Check for packages if the specified name is a valid identifier
|
if IsValidIdent(OriginalFileName) then begin
|
||||||
if IsValidIdent(OriginalFileName) then begin
|
// Initialize package graph with base packages etc:
|
||||||
// Initialize package graph with base packages etc:
|
if not Init then exit;
|
||||||
if not Init then exit;
|
// Apparently not found, could be a known but not installed package
|
||||||
// Apparently not found, could be a known but not installed package
|
// so try and get package filename from all other known packages
|
||||||
// so try and get package filename from all other known packages
|
Package:=PkgLinks.FindLinkWithPkgName(OriginalFileName);
|
||||||
Package:=PkgLinks.FindLinkWithPkgName(OriginalFileName);
|
if Package=nil then begin
|
||||||
if Package=nil then begin
|
// Not found after everything we tried
|
||||||
// Not found after everything we tried
|
Error(ErrorFileNotFound,'package not found: '+OriginalFilename);
|
||||||
Error(ErrorFileNotFound,'package not found: '+OriginalFilename);
|
|
||||||
end
|
|
||||||
else begin
|
|
||||||
// We found a package link
|
|
||||||
if AddPackage then begin
|
|
||||||
// if installing packages, don't compile it here; let BuildLazarusIDE do that with suitable IDE build options.
|
|
||||||
Debugln('Package '+Package.Filename+' was selected for install. Not building it; please rebuild IDE to install package.');
|
|
||||||
Result:=true;
|
|
||||||
end
|
|
||||||
else
|
|
||||||
Result:=BuildPackage(Package.Filename)
|
|
||||||
end;
|
|
||||||
end
|
end
|
||||||
else begin
|
else begin
|
||||||
// File is not an identifier and doesn't exist.
|
// We found a package link
|
||||||
Error(ErrorFileNotFound, 'package not found: '+OriginalFilename);
|
|
||||||
Exit;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
true:
|
|
||||||
// File exists:
|
|
||||||
begin
|
|
||||||
if CompareFileExt(Filename,'.lpk')=0 then
|
|
||||||
if AddPackage then begin
|
if AddPackage then begin
|
||||||
// if installing packages, don't compile it here; let BuildLazarusIDE do that with suitable IDE build options.
|
// this is handled in AddPackagesToInstallList
|
||||||
Debugln('Package '+Filename+' was selected for install. Not building it; please rebuild IDE to install package.');
|
|
||||||
Result:=true;
|
Result:=true;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
Result:=BuildPackage(Filename)
|
Result:=BuildPackage(Package.Filename)
|
||||||
else if CompareFileExt(Filename,'.lpi')=0 then
|
end;
|
||||||
Result:=BuildProject(Filename)
|
end
|
||||||
else if CompareFileExt(Filename,'.lpr')=0 then begin
|
else begin
|
||||||
Filename:=ChangeFileExt(Filename,'.lpi');
|
// File is not an identifier and doesn't exist.
|
||||||
if FileExists(Filename) then
|
Error(ErrorFileNotFound, 'package not found: '+OriginalFilename);
|
||||||
Result:=BuildProject(Filename)
|
Exit;
|
||||||
else
|
|
||||||
Error(ErrorFileNotFound,'file not found: '+Filename);
|
|
||||||
end else
|
|
||||||
Error(ErrorBuildFailed,'don''t know how to build: '+Filename);
|
|
||||||
end;
|
end;
|
||||||
|
end
|
||||||
|
else begin
|
||||||
|
// File exists:
|
||||||
|
if CompareFileExt(Filename,'.lpk')=0 then
|
||||||
|
if AddPackage then begin
|
||||||
|
// this is handled in AddPackagesToInstallList
|
||||||
|
Result:=true;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
Result:=BuildPackage(Filename)
|
||||||
|
else if CompareFileExt(Filename,'.lpi')=0 then
|
||||||
|
Result:=BuildProject(Filename)
|
||||||
|
else if CompareFileExt(Filename,'.lpr')=0 then begin
|
||||||
|
Filename:=ChangeFileExt(Filename,'.lpi');
|
||||||
|
if FileExists(Filename) then
|
||||||
|
Result:=BuildProject(Filename)
|
||||||
|
else
|
||||||
|
Error(ErrorFileNotFound,'file not found: '+Filename);
|
||||||
|
end else
|
||||||
|
Error(ErrorBuildFailed,'don''t know how to build: '+Filename);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -421,6 +417,9 @@ begin
|
|||||||
// check if package is already loaded
|
// check if package is already loaded
|
||||||
Result:=PackageGraph.FindPackageWithFilename(AFilename);
|
Result:=PackageGraph.FindPackageWithFilename(AFilename);
|
||||||
if (Result<>nil) then exit;
|
if (Result<>nil) then exit;
|
||||||
|
if not FileExistsUTF8(AFilename) then
|
||||||
|
Error(ErrorLoadPackageFailed,'Package file not found "'+AFilename+'"');
|
||||||
|
|
||||||
Result:=TLazPackage.Create;
|
Result:=TLazPackage.Create;
|
||||||
// load the package file
|
// load the package file
|
||||||
XMLConfig:=TXMLConfig.Create(AFilename);
|
XMLConfig:=TXMLConfig.Create(AFilename);
|
||||||
@ -901,42 +900,68 @@ begin
|
|||||||
FreeThenNil(AProject);
|
FreeThenNil(AProject);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TLazBuildApplication.AddRequestedPackages(const PackageNamesOrFiles: TStringList): boolean;
|
function TLazBuildApplication.AddPackagesToInstallList(
|
||||||
|
const PackageNamesOrFiles: TStringList): boolean;
|
||||||
var
|
var
|
||||||
i: integer;
|
i: integer;
|
||||||
Package: TLazPackage;
|
Package: TLazPackage;
|
||||||
PackageLink: TPackageLink;
|
PackageLink: TPackageLink;
|
||||||
PackageName:string;
|
PackageName:string;
|
||||||
|
PkgFilename: String;
|
||||||
|
ErrorMsg: String;
|
||||||
|
ErrCode: Byte;
|
||||||
begin
|
begin
|
||||||
Result:=false;
|
Result:=false;
|
||||||
if not Init then exit;
|
if not Init then exit;
|
||||||
|
|
||||||
LoadMiscellaneousOptions;
|
LoadMiscellaneousOptions;
|
||||||
|
|
||||||
// Add new package:
|
ErrorMsg:='';
|
||||||
|
ErrCode:=ErrorPackageNameInvalid;
|
||||||
for i:=0 to PackageNamesOrFiles.Count -1 do
|
for i:=0 to PackageNamesOrFiles.Count -1 do
|
||||||
begin
|
begin
|
||||||
// Look for package name in all known packages
|
// Look for package name in all known packages
|
||||||
PackageName:='';
|
PackageName:='';
|
||||||
PackageLink:=PkgLinks.FindLinkWithPkgName(PackageNamesOrFiles[i]);
|
PkgFilename:='';
|
||||||
if PackageLink<>nil then PackageName:=PackageLink.Name;
|
if CompareFileExt(PackageNamesOrFiles[i],'.lpk')=0 then
|
||||||
|
PkgFilename:=PackageNamesOrFiles[i]
|
||||||
if PackageName='' then begin
|
else if IsValidIdent(PackageNamesOrFiles[i]) then begin
|
||||||
// Not a known package, so try to load package file and set it as (static) autoinstall: select for installation
|
PackageLink:=PkgLinks.FindLinkWithPkgName(PackageNamesOrFiles[i]);
|
||||||
Package:=LoadPackage(PackageNamesOrFiles[i]);
|
if PackageLink=nil then
|
||||||
if Package<> nil then
|
begin
|
||||||
MiscellaneousOptions.BuildLazProfiles.StaticAutoInstallPackages.Add(Package.Name)
|
ErrorMsg+='Can not find package '+PackageNamesOrFiles[i]+', so it is not marked for installation.'+LineEnding;
|
||||||
else
|
continue;
|
||||||
debugln('Warning: could not find package '+PackageNamesOrFiles[i]+', so it is not marked for installation.');
|
end;
|
||||||
end
|
PkgFilename:=PackageLink.Filename;
|
||||||
else begin
|
end else begin
|
||||||
// Select our package among the existing list and set it as (static) autoinstall: select for installation
|
ErrorMsg+=PackageNamesOrFiles[i]+' is not a package, so it is not marked for installation.'+LineEnding;
|
||||||
MiscellaneousOptions.BuildLazProfiles.StaticAutoInstallPackages.Add(PackageName);
|
continue;
|
||||||
end;
|
end;
|
||||||
|
Package:=LoadPackage(PkgFilename);
|
||||||
|
if Package=nil then
|
||||||
|
begin
|
||||||
|
ErrorMsg+='Could not load '+PackageNamesOrFiles[i]+', so it is not marked for installation.'+LineEnding;
|
||||||
|
ErrCode:=ErrorLoadPackageFailed;
|
||||||
|
continue;
|
||||||
|
end;
|
||||||
|
if Package.PackageType in [lptRunTime,lptRunTimeOnly] then
|
||||||
|
begin
|
||||||
|
ErrorMsg+='Package '+PackageNamesOrFiles[i]+' is only for runtime.'+LineEnding;
|
||||||
|
continue;
|
||||||
|
end;
|
||||||
|
PackageName:=Package.Name;
|
||||||
|
// set it as (static) autoinstall: select for installation
|
||||||
|
debugln(['adding package "'+PkgFilename+'" to install list of IDE']);
|
||||||
|
if MiscellaneousOptions.BuildLazProfiles.StaticAutoInstallPackages.IndexOf(PackageName)<0 then
|
||||||
|
MiscellaneousOptions.BuildLazProfiles.StaticAutoInstallPackages.Add(PackageName);
|
||||||
end;
|
end;
|
||||||
|
if ErrorMsg<>'' then begin
|
||||||
// try loading other install packages
|
ErrorMsg:=UTF8Trim(ErrorMsg);
|
||||||
PackageGraph.LoadAutoInstallPackages(MiscellaneousOptions.BuildLazProfiles.StaticAutoInstallPackages);
|
Error(ErrCode,ErrorMsg);
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
// save list
|
||||||
|
MiscellaneousOptions.Save;
|
||||||
|
|
||||||
Result:=true;
|
Result:=true;
|
||||||
end;
|
end;
|
||||||
@ -1196,7 +1221,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
// Required argument
|
// Required argument
|
||||||
NeedArg:=true;
|
NeedArg:=true;
|
||||||
writeln('P ',P,' J ',J,' ',O[J],' ',l,' Havearg ',HaveArg);
|
debugln(['P ',P,' J ',J,' ',O[J],' ',l,' Havearg ',HaveArg]);
|
||||||
If ((P+1)=Length(ShortOptions)) or (Shortoptions[P+2]<>':') Then
|
If ((P+1)=Length(ShortOptions)) or (Shortoptions[P+2]<>':') Then
|
||||||
If (J<L) or not haveArg then // Must be last in multi-opt !!
|
If (J<L) or not haveArg then // Must be last in multi-opt !!
|
||||||
Result:=Format(lisErrOptionNeeded,[I,O[J]]);
|
Result:=Format(lisErrOptionNeeded,[I,O[J]]);
|
||||||
@ -1271,7 +1296,7 @@ begin
|
|||||||
|
|
||||||
// Add user-requested packages to IDE install list:
|
// Add user-requested packages to IDE install list:
|
||||||
if AddPackage then begin
|
if AddPackage then begin
|
||||||
if not AddRequestedPackages(Files) then begin
|
if not AddPackagesToInstallList(Files) then begin
|
||||||
debugln('Failed adding package(s) ',Files.Text);
|
debugln('Failed adding package(s) ',Files.Text);
|
||||||
ExitCode := ErrorBuildFailed;
|
ExitCode := ErrorBuildFailed;
|
||||||
exit;
|
exit;
|
||||||
@ -1411,7 +1436,11 @@ begin
|
|||||||
LazarusDirOverride := GetOptionValue('lazarusdir');
|
LazarusDirOverride := GetOptionValue('lazarusdir');
|
||||||
|
|
||||||
if HasOption('create-makefile') then
|
if HasOption('create-makefile') then
|
||||||
|
begin
|
||||||
CreateMakefile := true;
|
CreateMakefile := true;
|
||||||
|
if AddPackage then
|
||||||
|
Error(ErrorPackageNameInvalid,'Can you combine --create-makefile and --add-package');
|
||||||
|
end;
|
||||||
finally
|
finally
|
||||||
Options.Free;
|
Options.Free;
|
||||||
NonOptions.Free;
|
NonOptions.Free;
|
||||||
@ -1423,6 +1452,11 @@ end;
|
|||||||
procedure TLazBuildApplication.WriteUsage;
|
procedure TLazBuildApplication.WriteUsage;
|
||||||
const
|
const
|
||||||
space = ' ';
|
space = ' ';
|
||||||
|
|
||||||
|
function LongToConsole(s: string): string;
|
||||||
|
begin
|
||||||
|
Result:=UTF8ToConsole(BreakString(s,75, length(space)))
|
||||||
|
end;
|
||||||
begin
|
begin
|
||||||
TranslateResourceStrings(ProgramDirectory(true),'');
|
TranslateResourceStrings(ProgramDirectory(true),'');
|
||||||
writeln('');
|
writeln('');
|
||||||
@ -1435,60 +1469,55 @@ begin
|
|||||||
writeln('-B or --build-all ', UTF8ToConsole(lisBuildAllFilesOfProjectPackageIDE));
|
writeln('-B or --build-all ', UTF8ToConsole(lisBuildAllFilesOfProjectPackageIDE));
|
||||||
writeln('-r or --recursive ', UTF8ToConsole(lisApplyBuildFlagsBToDependenciesToo));
|
writeln('-r or --recursive ', UTF8ToConsole(lisApplyBuildFlagsBToDependenciesToo));
|
||||||
writeln('-d or --skip-dependencies ', UTF8ToConsole(lisDoNotCompileDependencies));
|
writeln('-d or --skip-dependencies ', UTF8ToConsole(lisDoNotCompileDependencies));
|
||||||
writeln('--add-package ', UTF8ToConsole(lisAddPackages));
|
|
||||||
writeln('--build-ide=<options> ', UTF8ToConsole(lisBuildIDEWithPackages));
|
writeln('--build-ide=<options> ', UTF8ToConsole(lisBuildIDEWithPackages));
|
||||||
writeln('-v or --version ', UTF8ToConsole(lisShowVersionAndExit));
|
writeln('-v or --version ', UTF8ToConsole(lisShowVersionAndExit));
|
||||||
writeln('');
|
writeln('');
|
||||||
|
|
||||||
|
writeln('--add-package');
|
||||||
|
writeln(LongToConsole(space+lisAddPackageSToListOfInstalledPackagesCombineWithBui));
|
||||||
|
writeln('--create-makefile');
|
||||||
|
writeln(LongToConsole(space+lisInsteadOfCompilePackageCreateASimpleMakefile));
|
||||||
|
writeln('');
|
||||||
|
|
||||||
writeln(PrimaryConfPathOptLong,'<path>');
|
writeln(PrimaryConfPathOptLong,'<path>');
|
||||||
writeln('or ',PrimaryConfPathOptShort,'<path>');
|
writeln('or ',PrimaryConfPathOptShort,'<path>');
|
||||||
writeln(UTF8ToConsole(BreakString(space+lisprimaryConfigDirectoryWhereLazarusStoresItsConfig,
|
writeln(LongToConsole(space+lisprimaryConfigDirectoryWhereLazarusStoresItsConfig+LazConf.GetPrimaryConfigPath));
|
||||||
75, 22)), LazConf.GetPrimaryConfigPath);
|
|
||||||
writeln('');
|
writeln('');
|
||||||
writeln(SecondaryConfPathOptLong,'<path>');
|
writeln(SecondaryConfPathOptLong,'<path>');
|
||||||
writeln('or ',SecondaryConfPathOptShort,'<path>');
|
writeln('or ',SecondaryConfPathOptShort,'<path>');
|
||||||
writeln(UTF8ToConsole(BreakString(space+lissecondaryConfigDirectoryWhereLazarusSearchesFor,
|
writeln(LongToConsole(space+lissecondaryConfigDirectoryWhereLazarusSearchesFor+LazConf.GetSecondaryConfigPath));
|
||||||
75, 22)), LazConf.GetSecondaryConfigPath);
|
|
||||||
writeln('');
|
writeln('');
|
||||||
writeln('--operating-system=<operating-system>');
|
writeln('--operating-system=<operating-system>');
|
||||||
writeln('or --os=<operating-system>');
|
writeln('or --os=<operating-system>');
|
||||||
writeln(UTF8ToConsole(BreakString(Format(
|
writeln(LongToConsole(Format(
|
||||||
lisOverrideTheProjectOperatingSystemEGWin32LinuxDefau, [space,
|
lisOverrideTheProjectOperatingSystemEGWin32LinuxDefau, [space,
|
||||||
LazConf.GetDefaultTargetOS]),
|
LazConf.GetDefaultTargetOS])));
|
||||||
75, 22)));
|
|
||||||
writeln('');
|
writeln('');
|
||||||
writeln('--widgetset=<widgetset>');
|
writeln('--widgetset=<widgetset>');
|
||||||
writeln('or --ws=<widgetset>');
|
writeln('or --ws=<widgetset>');
|
||||||
writeln(UTF8ToConsole(BreakString(Format(
|
writeln(LongToConsole(Format(
|
||||||
lisOverrideTheProjectWidgetsetEGGtkGtk2QtWin32CarbonD, [space,
|
lisOverrideTheProjectWidgetsetEGGtkGtk2QtWin32CarbonD, [space,
|
||||||
LCLPlatformDirNames[LazConf.GetDefaultLCLWidgetType]]) ,
|
LCLPlatformDirNames[LazConf.GetDefaultLCLWidgetType]])));
|
||||||
75, 22)));
|
|
||||||
writeln('');
|
writeln('');
|
||||||
writeln('--cpu=<cpu>');
|
writeln('--cpu=<cpu>');
|
||||||
writeln(UTF8ToConsole(BreakString(Format(
|
writeln(LongToConsole(Format(
|
||||||
lisOverrideTheProjectCpuEGI386X86_64PowerpcPowerpc_64, [space,
|
lisOverrideTheProjectCpuEGI386X86_64PowerpcPowerpc_64, [space,
|
||||||
LazConf.GetDefaultTargetCPU]),
|
LazConf.GetDefaultTargetCPU])));
|
||||||
75, 22)));
|
|
||||||
writeln('');
|
writeln('');
|
||||||
writeln('--build-mode=<project/ide build mode>');
|
writeln('--build-mode=<project/ide build mode>');
|
||||||
writeln('or --bm=<project/ide build mode>');
|
writeln('or --bm=<project/ide build mode>');
|
||||||
writeln(UTF8ToConsole(BreakString(Format(lisOverrideTheProjectBuildMode,
|
writeln(LongToConsole(Format(lisOverrideTheProjectBuildMode,[space])));
|
||||||
[space]), 75, 22)));
|
|
||||||
writeln('');
|
writeln('');
|
||||||
writeln('--compiler=<ppcXXX>');
|
writeln('--compiler=<ppcXXX>');
|
||||||
writeln(UTF8ToConsole(BreakString(Format(
|
writeln(LongToConsole(Format(
|
||||||
lisOverrideTheDefaultCompilerEGPpc386Ppcx64PpcppcEtcD, [space]),
|
lisOverrideTheDefaultCompilerEGPpc386Ppcx64PpcppcEtcD, [space])));
|
||||||
75, 22)));
|
|
||||||
writeln('');
|
writeln('');
|
||||||
writeln(LanguageOpt);
|
writeln(LanguageOpt);
|
||||||
writeln(UTF8ToConsole(BreakString(space+lisOverrideLanguage,75, 22)));
|
writeln(LongToConsole(space+lisOverrideLanguage));
|
||||||
writeln('');
|
writeln('');
|
||||||
writeln('--lazarusdir=<Lazarus directory>');
|
writeln('--lazarusdir=<Lazarus directory>');
|
||||||
writeln(UTF8ToConsole(BreakString(space+lisLazarusDirOverride, 75, 22)));
|
writeln(LongToConsole(space+lisLazarusDirOverride));
|
||||||
|
|
||||||
writeln('');
|
writeln('');
|
||||||
writeln('--create-makefile');
|
|
||||||
writeln(UTF8ToConsole(BreakString(space+
|
|
||||||
lisInsteadOfCompilePackageCreateASimpleMakefile, 75, 22)));
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TLazBuildApplication.Error(ErrorCode: Byte; const ErrorMsg: string);
|
procedure TLazBuildApplication.Error(ErrorCode: Byte; const ErrorMsg: string);
|
||||||
|
Loading…
Reference in New Issue
Block a user