fpmake.pp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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('unzip');
  13. P.ShortName:='zip';
  14. P.Description := 'Support for decompression of ZIP archives - either using a Pascal port of the library from InfoZIP, or interface to using the dynamically linked version of this library.';
  15. {$ifdef ALLPACKAGES}
  16. P.Directory:=ADirectory;
  17. {$endif ALLPACKAGES}
  18. P.Version:='3.3.1';
  19. P.SourcePath.Add('src');
  20. P.OSes := P.OSes - [embedded,nativent,msdos,win16,macosclassic,palmos,zxspectrum,msxdos,amstradcpc,sinclairql,wasi,human68k];
  21. if Defaults.CPU=jvm then
  22. P.OSes := P.OSes - [java,android];
  23. T:=P.Targets.AddUnit('unzip51g.pp');
  24. with T.Dependencies do
  25. begin
  26. AddUnit('ziptypes');
  27. end;
  28. T:=P.Targets.AddUnit('ziptypes.pp');
  29. T:=P.Targets.AddUnit('unzipdll.pp',[emx,os2]);
  30. P.NamespaceMap:='namespaces.lst';
  31. {$ifndef ALLPACKAGES}
  32. Run;
  33. end;
  34. end.
  35. {$endif ALLPACKAGES}