mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-30 06:43:49 +02:00

------------------------------------------------------------------------ r48814 | pierre | 2021-02-26 17:15:30 +0000 (Fri, 26 Feb 2021) | 1 line Do not add libgcc directory to library directories with -Fl option if -Xd option is used ------------------------------------------------------------------------ ------------------------------------------------------------------------ r42843 | pierre | 2019-08-26 21:41:41 +0000 (Mon, 26 Aug 2019) | 1 line Partial update for go32v2 and sources ------------------------------------------------------------------------ --- Merging r44112 into '.': G installer/install.dat --- Recording mergeinfo for merge of r44112 into '.': G . ------------------------------------------------------------------------ r48836 | hajny | 2021-02-28 02:08:17 +0000 (Sun, 28 Feb 2021) | 1 line * package tplylib added, corrections for more than 31 items on a tab ------------------------------------------------------------------------ --- Merging r48836 into '.': G installer/install.dat --- Recording mergeinfo for merge of r48836 into '.': G . ------------------------------------------------------------------------ r49035 | pierre | 2021-03-22 23:26:26 +0000 (Mon, 22 Mar 2021) | 1 line Try to fix short package name issues in install.dat and add missing go32v2 packages ------------------------------------------------------------------------ --- Merging r49035 into '.': G installer/install.dat --- Recording mergeinfo for merge of r49035 into '.': G . git-svn-id: branches/fixes_3_2@49041 -
77 lines
2.1 KiB
ObjectPascal
77 lines
2.1 KiB
ObjectPascal
{$ifndef ALLPACKAGES}
|
|
{$mode objfpc}{$H+}
|
|
program fpmake;
|
|
|
|
uses fpmkunit;
|
|
{$endif ALLPACKAGES}
|
|
|
|
procedure add_h2pas(const ADirectory: string);
|
|
|
|
Var
|
|
P : TPackage;
|
|
T : TTarget;
|
|
|
|
begin
|
|
With Installer do
|
|
begin
|
|
P:=AddPackage('utils-h2pas');
|
|
P.ShortName:='h2pa';
|
|
{ java and jvm-android do not support
|
|
fpc_get_output used in these sources }
|
|
if Defaults.CPU=jvm then
|
|
P.OSes := P.OSes - [java,android];
|
|
{ palmos does not support command line parameters }
|
|
P.OSes := P.OSes - [palmos];
|
|
{ Program does not fit in 16-bit memory constraints }
|
|
P.OSes := P.OSes - [msdos,win16];
|
|
{ avr-embedded and i8086-embedded do not support all needed features by default }
|
|
if Defaults.CPU in [avr,i8086] then
|
|
P.OSes := P.OSes - [embedded];
|
|
|
|
P.Author := '<various>';
|
|
P.License := 'LGPL with modification';
|
|
P.HomepageURL := 'www.freepascal.org';
|
|
P.Email := '';
|
|
P.Description := 'A utility to create Pascal header files from c header files.';
|
|
P.NeedLibC:= false;
|
|
|
|
P.Directory:=ADirectory;
|
|
P.Version:='3.2.1';
|
|
|
|
P.Options.Add('-Sg');
|
|
|
|
p.Commands.AddCommand(caBeforeCompile, AddProgramExtension('pyacc', Defaults.BuildOS), '$(SOURCE) $(DEST)','h2pas.pas','h2pas.y');
|
|
p.Commands.AddCommand(caBeforeCompile, AddProgramExtension('plex', Defaults.BuildOS), '$(SOURCE) $(DEST)','scan.pas','scan.l');
|
|
|
|
T:=P.Targets.AddProgram('h2pas.pas');
|
|
T.Dependencies.AddUnit('h2poptions');
|
|
T.Dependencies.AddUnit('h2plexlib');
|
|
T.Dependencies.AddUnit('scan');
|
|
T.Dependencies.AddUnit('h2pyacclib');
|
|
T.Dependencies.AddUnit('converu');
|
|
|
|
T:=P.Targets.AddUnit('scan.pas');
|
|
T.Install:=false;
|
|
T.Dependencies.AddUnit('converu');
|
|
T.Dependencies.AddUnit('h2poptions');
|
|
|
|
T:=P.Targets.AddProgram('h2paspp.pas');
|
|
|
|
P.Targets.AddUnit('h2poptions.pas').install:=false;
|
|
P.Targets.AddUnit('h2plexlib.pas').install:=false;
|
|
P.Targets.AddUnit('h2pyacclib.pas').install:=false;
|
|
P.Targets.AddUnit('converu.pas').install:=false;
|
|
end;
|
|
end;
|
|
|
|
{$ifndef ALLPACKAGES}
|
|
begin
|
|
add_h2pas('');
|
|
Installer.Run;
|
|
end.
|
|
{$endif ALLPACKAGES}
|
|
|
|
|
|
|
|
|