fpmake.pp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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('oracle');
  13. P.ShortName:='ora';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.2.4-rc1';
  18. P.SourcePath.Add('src');
  19. P.IncludePath.Add('src');
  20. P.OSes := AllUnixOSes+AllWindowsOSes-[qnx];
  21. if Defaults.CPU=jvm then
  22. P.OSes := P.OSes - [java,android];
  23. T:=P.Targets.AddUnit('ocidyn.pp');
  24. with T.Dependencies do
  25. begin
  26. AddInclude('oci.inc');
  27. AddInclude('ocidfn.inc');
  28. AddInclude('oci1.inc');
  29. AddInclude('oro_interface.inc');
  30. AddInclude('orl.inc');
  31. AddInclude('ort.inc');
  32. AddInclude('ociap.inc');
  33. AddInclude('nzt.inc');
  34. AddInclude('nzerror.inc');
  35. AddInclude('oro_implementation.inc');
  36. AddUnit('oratypes');
  37. end;
  38. T:=P.Targets.AddUnit('oci.pp');
  39. with T.Dependencies do
  40. begin
  41. AddInclude('oci.inc');
  42. AddInclude('ocidfn.inc');
  43. AddInclude('oci1.inc');
  44. AddInclude('oro_interface.inc');
  45. AddInclude('orl.inc');
  46. AddInclude('ort.inc');
  47. AddInclude('ociap.inc');
  48. AddInclude('nzt.inc');
  49. AddInclude('nzerror.inc');
  50. AddInclude('oro_implementation.inc');
  51. AddUnit('oratypes');
  52. end;
  53. T:=P.Targets.AddUnit('oraoci.pp');
  54. T:=P.Targets.AddUnit('oratypes.pp');
  55. P.ExamplePath.Add('examples');
  56. P.Targets.AddExampleProgram('test01.pp');
  57. P.Targets.AddExampleProgram('oraclew.pp');
  58. {$ifndef ALLPACKAGES}
  59. Run;
  60. end;
  61. end.
  62. {$endif ALLPACKAGES}