mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 12:18:03 +02:00
* Add Description, License and Author to fpmake.pp
git-svn-id: trunk@62952 -
This commit is contained in:
parent
9ba565019e
commit
a98fa8cbba
@ -4845,6 +4845,19 @@ var
|
||||
end;
|
||||
end;
|
||||
|
||||
function TextToString(const s: string): string;
|
||||
var
|
||||
LineEndingStr: string;
|
||||
i: Integer;
|
||||
begin
|
||||
LineEndingStr := '';
|
||||
for i := 1 to length(LineEnding) do
|
||||
LineEndingStr := LineEndingStr + '#' + IntToStr(Ord(String(sLineBreak)[i]));
|
||||
Result := AnsiQuotedStr(Trim(s), '''');
|
||||
Result := ReplaceStr(Result, #13#10, ''''+LineEndingStr+'''');
|
||||
Result := ReplaceStr(Result, #10, ''''+LineEndingStr+'''');
|
||||
end;
|
||||
|
||||
var
|
||||
s: String;
|
||||
e: string;
|
||||
@ -4950,6 +4963,15 @@ begin
|
||||
s:=s+''+e;
|
||||
s:=s+' P.Directory:=ADirectory;'+e;
|
||||
s:=s+''+e;
|
||||
|
||||
if APackage.Author<>'' then
|
||||
s:=s+' P.Author:='+TextToString(APackage.Author)+';'+e;
|
||||
if APackage.License<>'' then
|
||||
s:=s+' P.License:='+TextToString(APackage.License)+';'+e;
|
||||
if APackage.Description<>'' then
|
||||
s:=s+' P.Description:='+TextToString(APackage.Description)+';'+e;
|
||||
|
||||
s:=s+''+e;
|
||||
if APackage.PackageType in [lptDesignTime, lptRunAndDesignTime] then
|
||||
s:=s+' P.Flags.Add(''LazarusDsgnPkg'');'+e+e;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user