fpmake.pp 958 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. Var
  6. P : TPackage;
  7. T : TTarget;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('odbc');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:=ADirectory;
  15. {$endif ALLPACKAGES}
  16. P.Version:='3.3.1';
  17. P.OSes := AllUnixOSes+AllWindowsOSes-[qnx];
  18. if Defaults.CPU=jvm then
  19. P.OSes := P.OSes - [java,android];
  20. P.SourcePath.Add('src');
  21. P.IncludePath.Add('src');
  22. T:=P.Targets.AddUnit('odbcsqldyn.pas');
  23. with T.Dependencies do
  24. begin
  25. AddInclude('odbcsql.inc');
  26. end;
  27. T:=P.Targets.AddUnit('odbcsql.pas');
  28. with T.Dependencies do
  29. begin
  30. AddInclude('odbcsql.inc');
  31. end;
  32. P.ExamplePath.Add('examples');
  33. P.Targets.AddExampleProgram('testodbc.pp');
  34. P.Sources.AddExampleFiles('examples/*',P.Directory,false,'.');
  35. {$ifndef ALLPACKAGES}
  36. Run;
  37. end;
  38. end.
  39. {$endif ALLPACKAGES}