fpmake.pp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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('zorba');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:='zorba';
  15. {$endif ALLPACKAGES}
  16. P.Version:='0.9.9';
  17. P.SourcePath.Add('src');
  18. P.IncludePath.Add('src');
  19. T:=P.Targets.AddUnit('zorbadyn.pas');
  20. with T.Dependencies do
  21. begin
  22. AddInclude('zorba.inc');
  23. AddInclude('zorba_error.inc');
  24. AddInclude('zorba_options.inc');
  25. AddInclude('zorba_static_context_consts.inc');
  26. end;
  27. T:=P.Targets.AddUnit('zorba.pas');
  28. with T.Dependencies do
  29. begin
  30. AddInclude('zorba.inc');
  31. AddInclude('zorba_error.inc');
  32. AddInclude('zorba_options.inc');
  33. AddInclude('zorba_static_context_consts.inc');
  34. end;
  35. // P.ExamplePath.Add('tests/');
  36. // P.Targets.AddExampleProgram('testapiv3x.pp');
  37. // P.Targets.AddExampleProgram('test.pas');
  38. {$ifndef ALLPACKAGES}
  39. Run;
  40. end;
  41. end.
  42. {$endif ALLPACKAGES}