fpmake.pp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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('xqc.pas');
  20. with T.Dependencies do
  21. begin
  22. AddInclude('xqc_error.inc');
  23. AddInclude('xqc_static_context_consts.inc');
  24. end;
  25. T:=P.Targets.AddUnit('zorbadyn.pas');
  26. with T.Dependencies do
  27. begin
  28. AddUnit('xqc');
  29. AddInclude('zorba.inc');
  30. AddInclude('zorba_options.inc');
  31. end;
  32. T.ResourceStrings := True;
  33. T:=P.Targets.AddUnit('zorba.pas');
  34. with T.Dependencies do
  35. begin
  36. AddUnit('xqc');
  37. AddInclude('zorba.inc');
  38. AddInclude('zorba_options.inc');
  39. end;
  40. // P.ExamplePath.Add('tests/');
  41. // P.Targets.AddExampleProgram('testapiv3x.pp');
  42. // P.Targets.AddExampleProgram('test.pas');
  43. {$ifndef ALLPACKAGES}
  44. Run;
  45. end;
  46. end.
  47. {$endif ALLPACKAGES}