fpmake.pp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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('fcl-mustache');
  13. P.ShortName:='mustache';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Author := 'Michael Van Canneyt';
  18. P.License := 'LGPL with modification, ';
  19. P.HomepageURL := 'www.freepascal.org';
  20. P.Email := '';
  21. P.Description := 'Mustache templates for FPC';
  22. P.NeedLibC:= false;
  23. P.SourcePath.Add('src');
  24. P.OSes:=P.OSes-[embedded,win16,msdos,nativent,macosclassic,palmos,zxspectrum,msxdos,amstradcpc,sinclairql,human68k];
  25. if Defaults.CPU=jvm then
  26. P.OSes := P.OSes - [java,android];
  27. P.Dependencies.Add('rtl-objpas');
  28. P.Dependencies.Add('fcl-base');
  29. P.Dependencies.Add('fcl-json');
  30. P.Dependencies.Add('fcl-db');
  31. P.Version:='3.3.1';
  32. T:=P.Targets.AddUnit('src/fpmustache.pp');
  33. T.ResourceStrings:=true;
  34. T:=P.Targets.AddUnit('src/fpdbmustache.pp');
  35. T.ResourceStrings:=true;
  36. T.Dependencies.AddUnit('fpmustache');
  37. T:=P.Targets.AddUnit('src/fpexmustache.pp');
  38. T.ResourceStrings:=true;
  39. T.Dependencies.AddUnit('fpmustache');
  40. P.NamespaceMap:='namespaces.lst';
  41. {$ifndef ALLPACKAGES}
  42. Run;
  43. end;
  44. end.
  45. {$endif ALLPACKAGES}