fpmake.pp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses {$ifdef unix}cthreads,{$endif} fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_testinsight(const aDirectory: string);
  7. Const
  8. // All oses that have TFPHTTPClient
  9. WebOses = [aix,beos,haiku,linux,freebsd,darwin,iphonesim,ios,netbsd,openbsd,solaris,win32,win64,wince,android,dragonfly];
  10. Var
  11. T : TTarget;
  12. P : TPackage;
  13. begin
  14. With Installer do
  15. begin
  16. P:=AddPackage('testinsight');
  17. P.ShortName:='tinsight';
  18. P.Directory:=aDirectory;
  19. P.Version:='3.3.1';
  20. P.OSes := WebOSes;
  21. if Defaults.CPU=jvm then
  22. P.OSes := P.OSes - [java,android];
  23. P.Dependencies.Add('fcl-web');
  24. P.Dependencies.Add('fcl-fpcunit');
  25. P.Dependencies.Add('fcl-json');
  26. P.Author := 'FreePascal development team';
  27. P.License := 'LGPL with modification, ';
  28. P.HomepageURL := 'www.freepascal.org';
  29. P.Email := '';
  30. P.Description := 'Send FPCUnit test results to a webserver (e.g. embedded in Lazarus IDE).';
  31. P.NeedLibC:= false;
  32. P.SourcePath.Add('src');
  33. T:=P.Targets.AddUnit('testinsightprotocol.pp');
  34. T:=P.Targets.AddUnit('testinsightclient.pp');
  35. T.Dependencies.AddUnit('testinsightprotocol');
  36. T:=P.Targets.AddUnit('fpcunittestinsight.pp');
  37. T.Dependencies.AddUnit('testinsightclient');
  38. T.Dependencies.AddUnit('testinsightprotocol');
  39. P.NamespaceMap:='namespaces.lst';
  40. end;
  41. end;
  42. {$ifndef ALLPACKAGES}
  43. begin
  44. add_testinsight('');
  45. Installer.Run;
  46. end.
  47. {$endif ALLPACKAGES}