|
@@ -26,8 +26,8 @@ unit options;
|
|
interface
|
|
interface
|
|
|
|
|
|
uses
|
|
uses
|
|
- cfileutl,
|
|
|
|
- globtype,globals,verbose,systems,cpuinfo,comprsrc;
|
|
|
|
|
|
+ cfileutl,cclasses,
|
|
|
|
+ globtype,globals,verbose,systems,cpuinfo, comprsrc;
|
|
|
|
|
|
Type
|
|
Type
|
|
TOption=class
|
|
TOption=class
|
|
@@ -47,8 +47,10 @@ Type
|
|
ParaUnitPath,
|
|
ParaUnitPath,
|
|
ParaObjectPath,
|
|
ParaObjectPath,
|
|
ParaLibraryPath,
|
|
ParaLibraryPath,
|
|
- ParaFrameworkPath : TSearchPathList;
|
|
|
|
|
|
+ ParaFrameworkPath,
|
|
|
|
+ parapackagepath : TSearchPathList;
|
|
ParaAlignment : TAlignmentInfo;
|
|
ParaAlignment : TAlignmentInfo;
|
|
|
|
+ parapackages : tfphashobjectlist;
|
|
Constructor Create;
|
|
Constructor Create;
|
|
Destructor Destroy;override;
|
|
Destructor Destroy;override;
|
|
procedure WriteLogo;
|
|
procedure WriteLogo;
|
|
@@ -92,6 +94,7 @@ uses
|
|
symtable,scanner,rabase,
|
|
symtable,scanner,rabase,
|
|
symconst,
|
|
symconst,
|
|
dirparse,
|
|
dirparse,
|
|
|
|
+ fpkg,
|
|
i_bsd;
|
|
i_bsd;
|
|
|
|
|
|
const
|
|
const
|
|
@@ -1242,6 +1245,20 @@ begin
|
|
else
|
|
else
|
|
ObjectSearchPath.AddPath(More,true);
|
|
ObjectSearchPath.AddPath(More,true);
|
|
end;
|
|
end;
|
|
|
|
+ 'P' :
|
|
|
|
+ begin
|
|
|
|
+ if ispara then
|
|
|
|
+ parapackages.add(more,nil)
|
|
|
|
+ else
|
|
|
|
+ addpackage(packagelist,more);
|
|
|
|
+ end;
|
|
|
|
+ 'p' :
|
|
|
|
+ begin
|
|
|
|
+ if ispara then
|
|
|
|
+ parapackagepath.AddPath(More,false)
|
|
|
|
+ else
|
|
|
|
+ packagesearchpath.AddPath(More,true);
|
|
|
|
+ end;
|
|
'r' :
|
|
'r' :
|
|
Msgfilename:=More;
|
|
Msgfilename:=More;
|
|
'R' :
|
|
'R' :
|
|
@@ -2791,6 +2808,8 @@ begin
|
|
ParaUnitPath:=TSearchPathList.Create;
|
|
ParaUnitPath:=TSearchPathList.Create;
|
|
ParaLibraryPath:=TSearchPathList.Create;
|
|
ParaLibraryPath:=TSearchPathList.Create;
|
|
ParaFrameworkPath:=TSearchPathList.Create;
|
|
ParaFrameworkPath:=TSearchPathList.Create;
|
|
|
|
+ parapackagepath:=TSearchPathList.Create;
|
|
|
|
+ parapackages:=TFPHashObjectList.Create;
|
|
FillChar(ParaAlignment,sizeof(ParaAlignment),0);
|
|
FillChar(ParaAlignment,sizeof(ParaAlignment),0);
|
|
MacVersionSet:=false;
|
|
MacVersionSet:=false;
|
|
end;
|
|
end;
|
|
@@ -2804,6 +2823,8 @@ begin
|
|
ParaUnitPath.Free;
|
|
ParaUnitPath.Free;
|
|
ParaLibraryPath.Free;
|
|
ParaLibraryPath.Free;
|
|
ParaFrameworkPath.Free;
|
|
ParaFrameworkPath.Free;
|
|
|
|
+ parapackagepath.Free;
|
|
|
|
+ ParaPackages.Free;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
@@ -2877,6 +2898,7 @@ procedure read_arguments(cmd:TCmdStr);
|
|
var
|
|
var
|
|
env: ansistring;
|
|
env: ansistring;
|
|
i : tfeature;
|
|
i : tfeature;
|
|
|
|
+ j : longint;
|
|
abi : tabi;
|
|
abi : tabi;
|
|
{$if defined(cpucapabilities)}
|
|
{$if defined(cpucapabilities)}
|
|
cpuflag : tcpuflags;
|
|
cpuflag : tcpuflags;
|
|
@@ -3270,6 +3292,9 @@ begin
|
|
IncludeSearchPath.AddList(option.ParaIncludePath,true);
|
|
IncludeSearchPath.AddList(option.ParaIncludePath,true);
|
|
LibrarySearchPath.AddList(option.ParaLibraryPath,true);
|
|
LibrarySearchPath.AddList(option.ParaLibraryPath,true);
|
|
FrameworkSearchPath.AddList(option.ParaFrameworkPath,true);
|
|
FrameworkSearchPath.AddList(option.ParaFrameworkPath,true);
|
|
|
|
+ packagesearchpath.addlist(option.parapackagepath,true);
|
|
|
|
+ for j:=0 to option.parapackages.count-1 do
|
|
|
|
+ addpackage(packagelist,option.parapackages.NameOfIndex(j));
|
|
|
|
|
|
{ add unit environment and exepath to the unit search path }
|
|
{ add unit environment and exepath to the unit search path }
|
|
if inputfilepath<>'' then
|
|
if inputfilepath<>'' then
|