mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 18:18:02 +02:00
* also passes dialect options to fpdoc, like the makefiles do. Required in trunk fpdocs as of +/- mid december 2020.
git-svn-id: trunk@64396 -
This commit is contained in:
parent
c9fea2b260
commit
35748025c5
@ -62,6 +62,7 @@ type
|
||||
FXCTDir: string;
|
||||
FXCTFile: string;
|
||||
FXMLSrcDir: string;
|
||||
FExtraOptions : String;
|
||||
procedure SetCSSFile(AValue: String);
|
||||
procedure SetFooterFilename(AValue: String);
|
||||
procedure SetIncludePath(AValue: string);
|
||||
@ -97,6 +98,7 @@ type
|
||||
property XCTDir: string read FXCTDir write SetXCTDir;
|
||||
property XMLSrcDir: string read FXMLSrcDir write SetXMLSrcDir;
|
||||
property XCTFile: string read FXCTFile;
|
||||
property ExtraOptions : string read FExtraOptions write FExtraOptions;
|
||||
end;
|
||||
|
||||
procedure GetEnvDef(var S: String; DefaultValue: String; EnvName: String);
|
||||
@ -435,6 +437,9 @@ begin
|
||||
Filename:=InputFile;
|
||||
if not FilenameIsAbsolute(Filename) then
|
||||
Filename:=TrimFilename(AppendPathDelim(OutDir)+Filename);
|
||||
if ExtraOptions<>'' then
|
||||
for i:=0 to InputList.count-1 do
|
||||
InputList[i]:=ExtraOptions+' '+InputList[i];
|
||||
InputList.SaveToFile(Filename);
|
||||
InputList.Free;
|
||||
|
||||
@ -577,6 +582,7 @@ begin
|
||||
ReadOptions;
|
||||
|
||||
Run:=TFPDocRun.Create('lazutils');
|
||||
Run.ExtraOptions:='-MObjFPC -Scghi'; // extra options from in lazutils makefile.
|
||||
Run.UsedPkgs.Add('rtl');
|
||||
Run.UsedPkgs.Add('fcl');
|
||||
Run.XMLSrcDir := '..'+PathDelim+'xml'+PathDelim+'lazutils';
|
||||
@ -585,6 +591,7 @@ begin
|
||||
Run.Free;
|
||||
|
||||
Run:=TFPDocRun.Create('lcl');
|
||||
Run.ExtraOptions:='-MObjFPC -Sic'; // extra options from in LCL makefile.
|
||||
Run.UsedPkgs.Add('rtl');
|
||||
Run.UsedPkgs.Add('fcl');
|
||||
Run.UsedPkgs.Add('lazutils');
|
||||
|
Loading…
Reference in New Issue
Block a user