fpmake.pp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. P.ShortName:='fpgt';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. P.OSes := [beos,haiku,freebsd,solaris,netbsd,openbsd,linux,win32,win64,os2,emx,aix,dragonfly];
  19. // Do not build fpgtk on iPhone (=arm-darwin)
  20. if Defaults.CPU<>arm then
  21. P.OSes := P.OSes + [darwin];
  22. P.Author := 'Luk Vandelaer & Sebastian Guenther (?)';
  23. P.License := 'LGPL with modification, ';
  24. P.HomepageURL := 'www.freepascal.org';
  25. P.Email := '';
  26. P.Description := 'Lightweight OOP wrapper over GTK1.';
  27. P.NeedLibC:= True;
  28. P.Dependencies.Add('gtk1');
  29. P.SourcePath.Add('src');
  30. T:=P.Targets.AddUnit('fpglib.pp');
  31. T:=P.Targets.AddUnit('fpgtkext.pp');
  32. with T.Dependencies do
  33. begin
  34. AddUnit('fpgtk');
  35. end;
  36. T.ResourceStrings := True;
  37. T:=P.Targets.AddUnit('fpgtk.pp');
  38. with T.Dependencies do
  39. begin
  40. AddUnit('fpglib');
  41. end;
  42. T.ResourceStrings := True;
  43. P.ExamplePath.Add('examples');
  44. P.Targets.AddExampleProgram('examples/lister.pp');
  45. P.Targets.AddExampleProgram('examples/testgtk.pp');
  46. // 'examples/Makefile
  47. // 'examples/Makefile.fpc
  48. // 'examples/testgtk.ppr
  49. {$ifndef ALLPACKAGES}
  50. Run;
  51. end;
  52. end.
  53. {$endif ALLPACKAGES}