fpmake.pp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. P.ShortName:='fclr';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.0.1';
  18. P.Dependencies.Add('fcl-base');
  19. P.Dependencies.Add('fcl-xml');
  20. P.Author := 'FPC development team';
  21. P.License := 'LGPL with modification, ';
  22. P.HomepageURL := 'www.freepascal.org';
  23. P.Email := '';
  24. P.Description := 'Windows registry + emulation parts of Free Component Libraries (FCL), FPC''s OOP library.';
  25. P.NeedLibC:= false;
  26. P.OSes:=AllOSes-[embedded,msdos];
  27. P.SourcePath.Add('src');
  28. P.IncludePath.Add('src');
  29. T:=P.Targets.AddUnit('registry.pp');
  30. with T.Dependencies do
  31. begin
  32. AddInclude('regdef.inc');
  33. AddInclude('winreg.inc',AllWindowsOSes);
  34. AddInclude('xregreg.inc',AllOSes-AllWindowsOSes);
  35. AddInclude('regini.inc');
  36. AddUnit('xmlreg');
  37. end;
  38. T.ResourceStrings := True;
  39. T:=P.Targets.AddUnit('xmlreg.pp');
  40. P.ExamplePath.Add('examples');
  41. P.Targets.AddExampleProgram('tests/testbasics.pp');
  42. P.Targets.AddExampleProgram('tests/regtestframework.pp');
  43. // 'tests/Makefile
  44. // 'tests/Makefile.fpc
  45. {$ifndef ALLPACKAGES}
  46. Run;
  47. end;
  48. end.
  49. {$endif ALLPACKAGES}