fpmake.pp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses {$ifdef unix}cthreads,{$endif} 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. P.NamespaceMap:='namespaces.lst';
  32. end;
  33. end;
  34. {$ifndef ALLPACKAGES}
  35. begin
  36. add_dblib('');
  37. Installer.Run;
  38. end.
  39. {$endif ALLPACKAGES}