fpmake.pp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {$ifndef ALLPACKAGES}
  2. program fpmake;
  3. {$mode objfpc}{$h+}
  4. uses {$ifdef unix}cthreads,{$endif} fpmkunit;
  5. {$endif}
  6. Procedure Add_OData(ADirectory : string);
  7. function StdDep(T : TTarget) : TTarget;
  8. begin
  9. T.Dependencies.AddUnit('odatabase');
  10. T.Dependencies.AddUnit('odataservice');
  11. Result:=T;
  12. end;
  13. Var
  14. P : TPackage;
  15. T : TTarget;
  16. begin
  17. With Installer do
  18. begin
  19. P:=AddPackage('odata');
  20. P.ShortName:='odat';
  21. P.Author := 'Michael Van Canneyt';
  22. P.License := 'LGPL with modification, ';
  23. P.HomepageURL := 'www.freepascal.org';
  24. P.Email := '';
  25. P.Description := 'OData client base libraries, Microsoft Office365 clients';
  26. P.NeedLibC:= false;
  27. P.OSes := [beos,haiku,freebsd,darwin,iphonesim,ios,solaris,netbsd,openbsd,linux,win32,win64,wince,aix,amiga,aros,morphos,dragonfly];
  28. P.Directory:=ADirectory;
  29. P.Version:='3.3.1';
  30. P.Dependencies.Add('fcl-base');
  31. P.Dependencies.Add('rtl-extra');
  32. P.Dependencies.Add('rtl-objpas');
  33. P.Dependencies.Add('fcl-json');
  34. P.Dependencies.Add('fcl-web');
  35. P.SourcePath.Add('src');
  36. T:=P.Targets.AddUnit('odatabase.pp');
  37. T:=P.Targets.AddUnit('odataservice.pp');
  38. T.Dependencies.AddUnit('odatabase');
  39. T:=StdDep(P.Targets.AddUnit('msgraph.pp'));
  40. T:=StdDep(P.Targets.AddUnit('sharepoint.pp'));
  41. T:=P.Targets.AddUnit('office365client.pp');
  42. P.NamespaceMap:='namespaces.lst';
  43. end;
  44. end;
  45. {$ifndef ALLPACKAGES}
  46. begin
  47. Add_OData('');
  48. Installer.Run;
  49. end.
  50. {$endif ALLPACKAGES}