mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 18:29:09 +02:00
* sections section to leave out whole info/tools
This commit is contained in:
parent
7bf3155e2f
commit
50a6924402
@ -35,6 +35,7 @@ const
|
|||||||
);
|
);
|
||||||
|
|
||||||
{ Sections in Makefile.fpc }
|
{ Sections in Makefile.fpc }
|
||||||
|
sec_sections='sections';
|
||||||
sec_install='install';
|
sec_install='install';
|
||||||
sec_clean='clean';
|
sec_clean='clean';
|
||||||
sec_dirs='dirs';
|
sec_dirs='dirs';
|
||||||
@ -74,6 +75,8 @@ type
|
|||||||
InfoInstall,
|
InfoInstall,
|
||||||
InfoObjects,
|
InfoObjects,
|
||||||
InfoFiles : boolean;
|
InfoFiles : boolean;
|
||||||
|
SectionTools,
|
||||||
|
SectionInfo : boolean;
|
||||||
ToolsSed,
|
ToolsSed,
|
||||||
ToolsDiff,
|
ToolsDiff,
|
||||||
ToolsCmp,
|
ToolsCmp,
|
||||||
@ -173,6 +176,9 @@ begin
|
|||||||
ToolsUpx:=ReadBool(sec_tools,'toolupx',true);
|
ToolsUpx:=ReadBool(sec_tools,'toolupx',true);
|
||||||
ToolsDate:=ReadBool(sec_tools,'tooldate',true);
|
ToolsDate:=ReadBool(sec_tools,'tooldate',true);
|
||||||
ToolsZip:=ReadBool(sec_tools,'toolzip',true);
|
ToolsZip:=ReadBool(sec_tools,'toolzip',true);
|
||||||
|
{ sections }
|
||||||
|
SectionInfo:=ReadBool(sec_sections,'info',true);
|
||||||
|
SectionTools:=ReadBool(sec_sections,'tools',true);
|
||||||
{ info }
|
{ info }
|
||||||
InfoCfg:=ReadBool(sec_info,'infoconfig',true);
|
InfoCfg:=ReadBool(sec_info,'infoconfig',true);
|
||||||
InfoDirs:=ReadBool(sec_info,'infodirs',false);
|
InfoDirs:=ReadBool(sec_info,'infodirs',false);
|
||||||
@ -438,6 +444,8 @@ begin
|
|||||||
Add('override NEEDOTHERLIB=1');
|
Add('override NEEDOTHERLIB=1');
|
||||||
|
|
||||||
{ Info }
|
{ Info }
|
||||||
|
if userini.SectionInfo then
|
||||||
|
begin
|
||||||
AddHead('Info');
|
AddHead('Info');
|
||||||
hs:='';
|
hs:='';
|
||||||
if userini.infocfg then
|
if userini.infocfg then
|
||||||
@ -453,6 +461,7 @@ begin
|
|||||||
if userini.infofiles then
|
if userini.infofiles then
|
||||||
hs:=hs+'fpc_infofiles ';
|
hs:=hs+'fpc_infofiles ';
|
||||||
Add('FPCINFO='+hs);
|
Add('FPCINFO='+hs);
|
||||||
|
end;
|
||||||
|
|
||||||
{ Post Settings }
|
{ Post Settings }
|
||||||
if userini.PostSettings.count>0 then
|
if userini.PostSettings.count>0 then
|
||||||
@ -480,6 +489,8 @@ begin
|
|||||||
AddSection(true,'command_end');
|
AddSection(true,'command_end');
|
||||||
|
|
||||||
{ write tools }
|
{ write tools }
|
||||||
|
if userini.sectiontools then
|
||||||
|
begin
|
||||||
AddSection(true,'shelltools');
|
AddSection(true,'shelltools');
|
||||||
AddSection(true,'tool_default');
|
AddSection(true,'tool_default');
|
||||||
AddSection(userini.toolsupx,'tool_upx');
|
AddSection(userini.toolsupx,'tool_upx');
|
||||||
@ -488,6 +499,7 @@ begin
|
|||||||
AddSection(userini.toolszip,'tool_zip');
|
AddSection(userini.toolszip,'tool_zip');
|
||||||
AddSection(userini.toolscmp,'tool_cmp');
|
AddSection(userini.toolscmp,'tool_cmp');
|
||||||
AddSection(userini.toolsdiff,'tool_diff');
|
AddSection(userini.toolsdiff,'tool_diff');
|
||||||
|
end;
|
||||||
|
|
||||||
{ write dirs }
|
{ write dirs }
|
||||||
AddSection(true,'dir_default');
|
AddSection(true,'dir_default');
|
||||||
@ -524,6 +536,8 @@ begin
|
|||||||
AddSection(true,'zipinstallrules');
|
AddSection(true,'zipinstallrules');
|
||||||
AddSection(true,'cleanrules');
|
AddSection(true,'cleanrules');
|
||||||
AddSection(true,'dependrules');
|
AddSection(true,'dependrules');
|
||||||
|
if userini.SectionInfo then
|
||||||
|
begin
|
||||||
AddSection(true,'inforules');
|
AddSection(true,'inforules');
|
||||||
AddSection(userini.infocfg,'info_cfg');
|
AddSection(userini.infocfg,'info_cfg');
|
||||||
AddSection(userini.infodirs,'info_dirs');
|
AddSection(userini.infodirs,'info_dirs');
|
||||||
@ -531,6 +545,7 @@ begin
|
|||||||
AddSection(userini.infoobjects,'info_objects');
|
AddSection(userini.infoobjects,'info_objects');
|
||||||
AddSection(userini.infoinstall,'info_install');
|
AddSection(userini.infoinstall,'info_install');
|
||||||
AddSection(userini.infofiles,'info_files');
|
AddSection(userini.infofiles,'info_files');
|
||||||
|
end;
|
||||||
|
|
||||||
{ insert users rules }
|
{ insert users rules }
|
||||||
if userini.rules.count>0 then
|
if userini.rules.count>0 then
|
||||||
@ -568,7 +583,10 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.4 1999-11-08 15:01:39 peter
|
Revision 1.5 1999-11-09 14:38:32 peter
|
||||||
|
* sections section to leave out whole info/tools
|
||||||
|
|
||||||
|
Revision 1.4 1999/11/08 15:01:39 peter
|
||||||
* fpcmake support
|
* fpcmake support
|
||||||
|
|
||||||
Revision 1.3 1999/11/04 12:07:13 michael
|
Revision 1.3 1999/11/04 12:07:13 michael
|
||||||
|
Loading…
Reference in New Issue
Block a user