fpmake.pp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses {$ifdef unix}cthreads,{$endif} fpmkunit;
  5. Var
  6. P : TPackage;
  7. T : TTarget;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('dbus');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:=ADirectory;
  15. {$endif ALLPACKAGES}
  16. P.Version:='3.3.1';
  17. P.Author := 'Library: Red Hat, header: Unknown (but probably Sebastian Guenther)';
  18. P.License := 'Library: GPL2 or later, header: LGPL with modification, ';
  19. P.HomepageURL := 'www.freepascal.org';
  20. P.Email := '';
  21. P.Description := 'D-Bus message bus interface. (1.2.16)';
  22. P.NeedLibC:= true;
  23. P.OSes := [linux,dragonfly,freebsd];
  24. P.SourcePath.Add('src');
  25. P.IncludePath.Add('src');
  26. T:=P.Targets.AddUnit('dbus.pas');
  27. with T.Dependencies do
  28. begin
  29. AddInclude('dbus-macros.inc');
  30. AddInclude('dbus-arch-deps.inc');
  31. AddInclude('dbus-types.inc');
  32. AddInclude('dbus-errors.inc');
  33. AddInclude('dbus-address.inc');
  34. AddInclude('dbus-message.inc');
  35. AddInclude('dbus-memory.inc');
  36. AddInclude('dbus-shared.inc');
  37. AddInclude('dbus-connection.inc');
  38. AddInclude('dbus-bus.inc');
  39. AddInclude('dbus-pending-call.inc');
  40. AddInclude('dbus-protocol.inc');
  41. AddInclude('dbus-server.inc');
  42. AddInclude('dbus-signature.inc');
  43. AddInclude('dbus-threads.inc');
  44. AddInclude('dbus-misc.inc');
  45. end;
  46. T:=P.Targets.AddUnit('dbuscomp.pp');
  47. T.Dependencies.AddUnit('dbus');
  48. P.ExamplePath.Add('examples');
  49. T:=P.Targets.AddExampleProgram('busexample.pp');
  50. P.NamespaceMap:='namespaces.lst';
  51. {$ifndef ALLPACKAGES}
  52. Run;
  53. end;
  54. end.
  55. {$endif ALLPACKAGES}