fpmake.inc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {$ifdef Delphi}
  2. const fpmake : array[0..2] of string[240]=(
  3. {$else Delphi}
  4. const fpmake : array[0..2,1..240] of char=(
  5. {$endif Delphi}
  6. '{$ifndef ALLPACKAGES}'#010+
  7. '{$mode objfpc}{$H+}'#010+
  8. 'program fpmake;'#010+
  9. #010+
  10. 'uses fpmkunit;'#010+
  11. #010+
  12. 'Var'#010+
  13. ' T : TTarget;'#010+
  14. ' P : TPackage;'#010+
  15. 'begin'#010+
  16. ' With Installer do'#010+
  17. ' begin'#010+
  18. '{$endif ALLPACKAGES}'#010+
  19. ' P:=AddPackage('#039'%packagename%'#039');'#010+
  20. '{$ifdef ALLPACKAGES}'#010+
  21. ' P.Directory:','='#039'%directory%'#039';'#010+
  22. '{$endif ALLPACKAGES}'#010+
  23. ' P.Version:='#039'%version%'#039';'#010+
  24. ' P.License:='#039'%license%'#039';'#010+
  25. ' P.Author:='#039'%author%'#039';'#010+
  26. ' P.Email:='#039'%email%'#039';'#010+
  27. ' P.Description:=%quotedstr(description)%;'#010+
  28. ' P.HomepageURL:='#039'%homepageurl%'#039';'#010+
  29. '%conditionalpack','ageproperties%'#010+
  30. '%packagedependencies%'#010+
  31. '%packagesourcepaths%'#010+
  32. '%targets%'#010+
  33. '{$ifndef ALLPACKAGES}'#010+
  34. ' Run;'#010+
  35. ' end;'#010+
  36. 'end.'#010+
  37. '{$endif ALLPACKAGES}'#010+
  38. #010
  39. );