fpmake.pp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. {$endif ALLPACKAGES}
  6. procedure add_fprcp(const ADirectory: string);
  7. Var
  8. P : TPackage;
  9. T : TTarget;
  10. begin
  11. With Installer do
  12. begin
  13. P:=AddPackage('utils-fprcp');
  14. P.ShortName:='fprcp';
  15. { java and jvm-android do not support
  16. getmem/freemem and new/dispose used in
  17. these sources }
  18. if Defaults.CPU=jvm then
  19. P.OSes := P.OSes - [java,android];
  20. { palmos does not have classes }
  21. P.OSes := P.OSes - [palmos];
  22. { Program does not fit in 16-bit memory constraints }
  23. P.OSes := P.OSes - [msdos,win16];
  24. { avr-embedded and i8086-embedded have not floating point support by default }
  25. if Defaults.CPU in [avr,i8086] then
  26. P.OSes := P.OSes - [embedded];
  27. P.Author := '<various>';
  28. P.License := 'LGPL with modification';
  29. P.HomepageURL := 'www.freepascal.org';
  30. P.Email := '';
  31. P.Description := 'fprcp.exe extracts from C header and Pascal files included into resource '+
  32. 'scripts numerical constants and replaces these constants to its values '+
  33. 'in resource script.';
  34. P.NeedLibC:= false;
  35. P.Directory:=ADirectory;
  36. P.Version:='3.3.1';
  37. T:=P.Targets.AddProgram('fprcp.pp');
  38. T.Dependencies.AddUnit('comments');
  39. T.Dependencies.AddUnit('expr');
  40. T.Dependencies.AddUnit('pasprep');
  41. P.Targets.AddUnit('comments.pp').install:=false;
  42. P.Targets.AddUnit('expr.pp').install:=false;
  43. P.Targets.AddUnit('pasprep.pp').install:=false;
  44. end;
  45. end;
  46. {$ifndef ALLPACKAGES}
  47. begin
  48. add_fprcp('');
  49. Installer.Run;
  50. end.
  51. {$endif ALLPACKAGES}