fpmake.pp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. Var
  6. P : TPackage;
  7. T : TTarget;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('fcl-registry');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:='fcl-registry';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.2.2-0';
  17. P.Author := 'FPC development team';
  18. P.License := 'LGPL with modification, ';
  19. P.HomepageURL := 'www.freepascal.org';
  20. P.Email := '';
  21. P.Description := 'Windows registry + emulation parts of Free Component Libraries (FCL), FPC''s OOP library.';
  22. P.NeedLibC:= false;
  23. P.SourcePath.Add('src');
  24. P.IncludePath.Add('src');
  25. T:=P.Targets.AddUnit('registry.pp');
  26. with T.Dependencies do
  27. begin
  28. AddInclude('regdef.inc');
  29. AddInclude('xregreg.inc');
  30. AddInclude('regini.inc');
  31. AddUnit('inifiles');
  32. AddUnit('xmlreg');
  33. end;
  34. T:=P.Targets.AddUnit('xmlreg.pp');
  35. with T.Dependencies do
  36. begin
  37. AddUnit('dom');
  38. AddUnit('xmlread');
  39. AddUnit('xmlwrite');
  40. end;
  41. P.ExamplePath.Add('examples');
  42. P.Targets.AddExampleProgram('tests/testbasics.pp');
  43. P.Targets.AddExampleProgram('tests/regtestframework.pp');
  44. // 'tests/Makefile
  45. // 'tests/Makefile.fpc
  46. {$ifndef ALLPACKAGES}
  47. Run;
  48. end;
  49. end.
  50. {$endif ALLPACKAGES}