2
0

fpmake.pp 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. Var
  6. T : TTarget;
  7. P : TPackage;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('fcl-process');
  13. P.ShortName:='fclp';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. P.Author := 'Michael van Canneyt and Free Pascal Development team';
  19. P.License := 'LGPL with modification';
  20. P.HomepageURL := 'www.freepascal.org';
  21. P.Email := '';
  22. P.Description := 'Process (execution) related parts of Free Component Libraries (FCL), FPC''s OOP library.';
  23. P.Options.Add('-S2h');
  24. P.NeedLibC:= false;
  25. P.OSes:=AllOSes-[embedded,msdos,win16,go32v2,nativent,macos,palmos,atari];
  26. if Defaults.CPU=jvm then
  27. P.OSes := P.OSes - [java,android];
  28. P.SourcePath.Add('src');
  29. P.IncludePath.Add('src/unix',AllUnixOSes);
  30. P.IncludePath.Add('src/winall',AllWindowsOSes);
  31. P.IncludePath.Add('src/win',[win32,win64]);
  32. P.IncludePath.Add('src/amicommon',AllAmigaLikeOSes);
  33. P.IncludePath.Add('src/$(OS)',AllOSes-[win32,win64]-AllUnixOSes-AllAmigaLikeOSes);
  34. P.IncludePath.Add('src/dummy',AllOSes-[win32,win64]-AllUnixOSes-AllAmigaLikeOSes);
  35. P.Dependencies.add('morphunits',[morphos]);
  36. P.Dependencies.add('arosunits',[aros]);
  37. if Defaults.CPU=powerpc then
  38. P.Dependencies.add('os4units',[amiga])
  39. else
  40. P.Dependencies.add('amunits',[amiga]);
  41. P.Dependencies.add('fcl-base');
  42. T:=P.Targets.AddUnit('pipes.pp');
  43. T.Dependencies.AddInclude('pipes.inc');
  44. T:=P.Targets.AddUnit('process.pp');
  45. T.Dependencies.AddInclude('processbody.inc');
  46. T.Dependencies.AddInclude('process.inc');
  47. T.ResourceStrings:=True;
  48. T:=P.Targets.AddUnit('processunicode.pp',[win32,win64]);
  49. T.Dependencies.AddInclude('processbody.inc');
  50. T.Dependencies.AddInclude('process.inc');
  51. T.ResourceStrings:=True;
  52. T:=P.Targets.AddUnit('simpleipc.pp');
  53. T.Dependencies.AddInclude('simpleipc.inc');
  54. T.ResourceStrings:=True;
  55. T:=P.Targets.AddUnit('pipesipc.pp',AllUnixOSes);
  56. T.Dependencies.AddInclude('simpleipc.inc');
  57. T.ResourceStrings:=True;
  58. T:=P.Targets.AddUnit('dbugmsg.pp');
  59. T.ResourceStrings:=True;
  60. T:=P.Targets.AddUnit('dbugintf.pp');
  61. T.ResourceStrings:=True;
  62. P.ExamplePath.Add('examples');
  63. T:=P.Targets.AddExampleProgram('ipcclient.pp');
  64. T:=P.Targets.AddExampleProgram('ipcserver.pp');
  65. {$ifndef ALLPACKAGES}
  66. Run;
  67. end;
  68. end.
  69. {$endif ALLPACKAGES}