fpmake.pp 1.4 KB

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