fpmake.pp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.3.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,win16,macos,palmos];
  27. if Defaults.CPU=jvm then
  28. P.OSes := P.OSes - [java,android];
  29. P.SourcePath.Add('src');
  30. P.IncludePath.Add('src');
  31. T:=P.Targets.AddUnit('registry.pp');
  32. with T.Dependencies do
  33. begin
  34. AddInclude('regdef.inc');
  35. AddInclude('winreg.inc',AllWindowsOSes);
  36. AddInclude('xregreg.inc',AllOSes-AllWindowsOSes);
  37. AddInclude('regini.inc');
  38. AddUnit('xmlreg');
  39. end;
  40. T.ResourceStrings := True;
  41. T:=P.Targets.AddUnit('xmlreg.pp');
  42. P.ExamplePath.Add('examples');
  43. P.Targets.AddExampleProgram('tests/testbasics.pp');
  44. P.Targets.AddExampleProgram('tests/regtestframework.pp');
  45. // 'tests/Makefile
  46. // 'tests/Makefile.fpc
  47. {$ifndef ALLPACKAGES}
  48. Run;
  49. end;
  50. end.
  51. {$endif ALLPACKAGES}