fpmake.pp 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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('libxml2');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:=ADirectory;
  15. {$endif ALLPACKAGES}
  16. P.Version:='3.3.1';
  17. P.OSes := [freebsd,linux,win32];
  18. P.SourcePath.Add('src');
  19. P.IncludePath.Add('src');
  20. P.Dependencies.Add('rtl-objpas');
  21. T:=P.Targets.AddUnit('xml2.pas');
  22. with T.Dependencies do
  23. begin
  24. AddInclude('xml2.inc');
  25. AddInclude('xinclude.inc');
  26. AddInclude('xpointer.inc');
  27. AddInclude('HTMLparser.inc');
  28. AddInclude('schemasInternals.inc');
  29. AddInclude('SAX2.inc');
  30. AddInclude('xmlversion.inc');
  31. AddInclude('globals.inc');
  32. AddInclude('nanoftp.inc');
  33. AddInclude('SAX.inc');
  34. AddInclude('uri.inc');
  35. AddInclude('debugXML.inc');
  36. AddInclude('xmlunicode.inc');
  37. // AddInclude('DOCBparser.inc');
  38. AddInclude('xmlIO.inc');
  39. AddInclude('xmlsave.inc');
  40. AddInclude('HTMLtree.inc');
  41. AddInclude('parserInternals.inc');
  42. AddInclude('chvalid.inc');
  43. AddInclude('xmlwriter.inc');
  44. AddInclude('relaxng.inc');
  45. AddInclude('threads.inc');
  46. AddInclude('list.inc');
  47. AddInclude('encoding.inc');
  48. AddInclude('catalog.inc');
  49. AddInclude('pattern.inc');
  50. AddInclude('xmlregexp.inc');
  51. AddInclude('xmlerror.inc');
  52. AddInclude('xpath.inc');
  53. AddInclude('xmlautomata.inc');
  54. AddInclude('entities.inc');
  55. AddInclude('xmlreader.inc');
  56. AddInclude('xmlstring.inc');
  57. AddInclude('xmlmemory.inc');
  58. AddInclude('xmlmodule.inc');
  59. AddInclude('xmlschemas.inc');
  60. AddInclude('hash.inc');
  61. AddInclude('nanohttp.inc');
  62. AddInclude('libxmlparser.inc');
  63. AddInclude('tree.inc');
  64. AddInclude('dict.inc');
  65. AddInclude('xlink.inc');
  66. AddInclude('valid.inc');
  67. AddInclude('xpathInternals.inc');
  68. AddInclude('xmlschemastypes.inc');
  69. AddInclude('c14n.inc');
  70. AddInclude('schematron.inc');
  71. end;
  72. T:=P.Targets.AddUnit('xmlxsdparser.pas');
  73. T.ResourceStrings := True;
  74. T:=P.Targets.AddUnit('xmlxsd.pas');
  75. T.ResourceStrings := True;
  76. P.ExamplePath.Add('examples');
  77. P.Targets.AddExampleProgram('reader1.pas');
  78. P.Targets.AddExampleProgram('io2.pas');
  79. P.Targets.AddExampleProgram('io1.pas');
  80. P.Targets.AddExampleProgram('tree1.pas');
  81. P.Targets.AddExampleProgram('tree2.pas');
  82. P.Targets.AddExampleProgram('exutils.pas');
  83. P.Targets.AddExampleProgram('reader2.pas');
  84. P.Sources.AddExampleFiles('examples/*',P.Directory,false,'.');
  85. {$ifndef ALLPACKAGES}
  86. Run;
  87. end;
  88. end.
  89. {$endif ALLPACKAGES}