123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- {$ifndef ALLPACKAGES}
- {$mode objfpc}{$H+}
- program fpmake;
- uses fpmkunit;
- {$endif ALLPACKAGES}
- procedure add_rtl_console(const ADirectory: string);
- Const
- // All Unices have full set of KVM+Crt in unix/ except QNX which is not
- // in workable state atm.
- UnixLikes = AllUnixOSes -[QNX];
- WinEventOSes = [win32,win64];
- KVMAll = [emx,go32v2,msdos,netware,netwlibc,os2,win32,win64,win16]+UnixLikes+AllAmigaLikeOSes;
- // all full KVMers have crt too, except Amigalikes
- CrtOSes = KVMALL+[WatCom]-[aros,morphos,amiga];
- KbdOSes = KVMALL;
- VideoOSes = KVMALL;
- MouseOSes = KVMALL;
- TerminfoOSes = UnixLikes-[beos,haiku];
- rtl_consoleOSes =KVMALL+CrtOSes+TermInfoOSes;
- // Amiga has a crt in its RTL dir, but it is commented in the makefile
- Var
- P : TPackage;
- T : TTarget;
- begin
- With Installer do
- begin
- P:=AddPackage('rtl-console');
- P.ShortName:='rtlc';
- P.Directory:=ADirectory;
- P.Version:='3.3.1';
- P.Author := 'FPC core team, Pierre Mueller, Peter Vreman';
- P.License := 'LGPL with modification, ';
- P.HomepageURL := 'www.freepascal.org';
- P.OSes:=Rtl_ConsoleOSes;
- if Defaults.CPU=jvm then
- P.OSes := P.OSes - [java,android];
- P.Email := '';
- P.Description := 'Rtl-console, console abstraction';
- P.NeedLibC:= false;
- P.Dependencies.Add('rtl-extra'); // linux,android gpm.
- P.Dependencies.Add('morphunits',[morphos]);
- P.Dependencies.Add('arosunits',[aros]);
- if Defaults.CPU=m68k then
- P.Dependencies.Add('amunits',[amiga]);
- if Defaults.CPU=powerpc then
- P.Dependencies.Add('os4units',[amiga]);
- P.SourcePath.Add('src/inc');
- P.SourcePath.Add('src/$(OS)');
- P.SourcePath.Add('src/darwin',[iphonesim]);
- P.SourcePath.Add('src/unix',AllUnixOSes);
- P.SourcePath.Add('src/os2commn',[os2,emx]);
- P.SourcePath.Add('src/amicommon',AllAmigaLikeOSes);
- P.SourcePath.Add('src/win',WinEventOSes);
- P.IncludePath.Add('src/inc');
- P.IncludePath.Add('src/unix',AllUnixOSes);
- P.IncludePath.add('src/amicommon',AllAmigaLikeOSes);
- P.IncludePath.Add('src/$(OS)');
- P.IncludePath.Add('src/darwin',[iphonesim]);
- T:=P.Targets.AddUnit('winevent.pp',WinEventOSes);
- T:=P.Targets.AddUnit('keyboard.pp',KbdOSes);
- with T.Dependencies do
- begin
- AddInclude('keybrdh.inc');
- AddInclude('keyboard.inc');
- AddInclude('keyscan.inc',AllUnixOSes);
- AddUnit ('winevent',[win32,win64]);
- AddInclude('nwsys.inc',[netware]);
- AddUnit ('mouse',AllUnixOSes);
- AddUnit ('video',[win16]);
- end;
- T:=P.Targets.AddUnit('mouse.pp',MouseOSes);
- with T.Dependencies do
- begin
- AddInclude('mouseh.inc');
- AddInclude('mouse.inc');
- AddUnit ('winevent',[win32,win64]);
- AddUnit ('video',[go32v2,msdos] + AllUnixOSes);
- end;
- T:=P.Targets.AddUnit('video.pp',VideoOSes);
- with T.Dependencies do
- begin
- AddInclude('videoh.inc');
- AddInclude('video.inc');
- AddInclude('videodata.inc',AllAmigaLikeOSes);
- AddInclude('convert.inc',AllUnixOSes);
- AddInclude('nwsys.inc',[netware]);
- AddUnit ('mouse',[go32v2,msdos]);
- end;
- T:=P.Targets.AddUnit('crt.pp',CrtOSes);
- with T.Dependencies do
- begin
- AddInclude('crth.inc');
- AddInclude('crt.inc');
- AddInclude('nwsys.inc',[netware]);
- AddUnit ('video',[win16]);
- AddUnit ('keyboard',[win16]);
- end;
- T:=P.Targets.AddUnit('vesamode.pp',[go32v2,msdos]);
- with T.Dependencies do
- begin
- AddUnit('video');
- AddUnit('mouse');
- end;
- end
- end;
- {$ifndef ALLPACKAGES}
- begin
- add_rtl_console('');
- Installer.Run;
- end.
- {$endif ALLPACKAGES}
|