2
0

fpmake.pp 979 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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];
  9. Var
  10. P : TPackage;
  11. T : TTarget;
  12. begin
  13. With Installer do
  14. begin
  15. P:=AddPackage('dblib');
  16. P.Directory:=ADirectory;
  17. P.Version:='1.0';
  18. P.Author := 'Library: (FreeTDS/Microsoft), header: Ladislav Karrach';
  19. P.License := 'Library: FreeTDS License, header: LGPL with modification, ';
  20. P.HomepageURL := 'www.freepascal.org';
  21. P.Email := '';
  22. P.Description := 'Headers for the MS SQL Server RDBMS';
  23. P.NeedLibC:= true; // true for headers that indirectly link to libc?
  24. P.SourcePath.Add('src');
  25. P.IncludePath.Add('src');
  26. T:=P.Targets.AddUnit('dblib.pp',DBLibOSes);
  27. end;
  28. end;
  29. {$ifndef ALLPACKAGES}
  30. begin
  31. add_dblib('');
  32. Installer.Run;
  33. end.
  34. {$endif ALLPACKAGES}