fpmake.pp 768 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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('libusb');
  13. P.ShortName := 'lusb';
  14. {$ifdef ALLPACKAGES}
  15. P.Directory:=ADirectory;
  16. {$endif ALLPACKAGES}
  17. P.Version:='3.3.1';
  18. P.Description := 'Headers for the libusb library';
  19. P.NeedLibC:= true; // true for headers that indirectly link to libc?
  20. P.OSes := [linux,win32,win64];
  21. P.Dependencies.Add('rtl-extra',[linux]);
  22. P.SourcePath.Add('src');
  23. P.IncludePath.Add('src');
  24. T:=P.Targets.AddUnit('libusb.pp');
  25. P.NamespaceMap:='namespaces.lst';
  26. {$ifndef ALLPACKAGES}
  27. Run;
  28. end;
  29. end.
  30. {$endif ALLPACKAGES}