fpmake.pp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses {$ifdef unix}cthreads,{$endif} 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. P.ShortName := 'zorb';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. P.OSes := [linux,win32];
  19. P.SourcePath.Add('src');
  20. P.IncludePath.Add('src');
  21. T:=P.Targets.AddUnit('xqc.pas');
  22. with T.Dependencies do
  23. begin
  24. AddInclude('xqc_error.inc');
  25. AddInclude('xqc_static_context_consts.inc');
  26. end;
  27. T:=P.Targets.AddUnit('zorbadyn.pas');
  28. with T.Dependencies do
  29. begin
  30. AddUnit('xqc');
  31. AddInclude('zorba.inc');
  32. AddInclude('zorba_options.inc');
  33. end;
  34. T.ResourceStrings := True;
  35. T:=P.Targets.AddUnit('zorba.pas');
  36. with T.Dependencies do
  37. begin
  38. AddUnit('xqc');
  39. AddInclude('zorba.inc');
  40. AddInclude('zorba_options.inc');
  41. end;
  42. // P.ExamplePath.Add('tests/');
  43. // P.Targets.AddExampleProgram('testapiv3x.pp');
  44. // P.Targets.AddExampleProgram('test.pas');
  45. P.NamespaceMap:='namespaces.lst';
  46. {$ifndef ALLPACKAGES}
  47. Run;
  48. end;
  49. end.
  50. {$endif ALLPACKAGES}