fpmake.pp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif not ALLPACKAGES}
  6. procedure add_dblib(const ADirectory: string);
  7. Const
  8. DBLibOSes = [linux,freebsd,netbsd,openbsd,solaris,win32,win64,haiku,android,dragonfly,beos];
  9. Var
  10. P : TPackage;
  11. T : TTarget;
  12. begin
  13. With Installer do
  14. begin
  15. P:=AddPackage('dblib');
  16. P.ShortName := 'dblb';
  17. P.Directory:=ADirectory;
  18. P.Version:='3.3.1';
  19. P.Author := 'Library: (FreeTDS/Microsoft), header: Ladislav Karrach';
  20. P.License := 'Library: FreeTDS License, header: LGPL with modification, ';
  21. P.HomepageURL := 'www.freepascal.org';
  22. P.Email := '';
  23. P.Description := 'Headers for the MS SQL Server RDBMS';
  24. P.NeedLibC:= true; // true for headers that indirectly link to libc?
  25. P.SourcePath.Add('src');
  26. P.IncludePath.Add('src');
  27. P.OSes := DBLibOSes;
  28. if Defaults.CPU=jvm then
  29. P.OSes := P.OSes - [android];
  30. T:=P.Targets.AddUnit('dblib.pp',DBLibOSes);
  31. end;
  32. end;
  33. {$ifndef ALLPACKAGES}
  34. begin
  35. add_dblib('');
  36. Installer.Run;
  37. end.
  38. {$endif ALLPACKAGES}