fpmake.pp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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('fpgtk');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:='fpgtk';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.7.1';
  17. P.Author := 'Luk Vandelaer & Sebastian Guenther (?)';
  18. P.License := 'LGPL with modification, ';
  19. P.HomepageURL := 'www.freepascal.org';
  20. P.Email := '';
  21. P.Description := 'Lightweight OOP wrapper over GTK1.';
  22. P.NeedLibC:= True;
  23. P.Dependencies.Add('gtk1');
  24. P.SourcePath.Add('src');
  25. T:=P.Targets.AddUnit('fpglib.pp');
  26. T:=P.Targets.AddUnit('fpgtkext.pp');
  27. with T.Dependencies do
  28. begin
  29. AddUnit('fpgtk');
  30. end;
  31. T.ResourceStrings := True;
  32. T:=P.Targets.AddUnit('fpgtk.pp');
  33. with T.Dependencies do
  34. begin
  35. AddUnit('fpglib');
  36. end;
  37. T.ResourceStrings := True;
  38. P.ExamplePath.Add('examples');
  39. P.Targets.AddExampleProgram('examples/lister.pp');
  40. P.Targets.AddExampleProgram('examples/testgtk.pp');
  41. // 'examples/Makefile
  42. // 'examples/Makefile.fpc
  43. // 'examples/testgtk.ppr
  44. {$ifndef ALLPACKAGES}
  45. Run;
  46. end;
  47. end.
  48. {$endif ALLPACKAGES}