fpmake.pp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {$ifndef ALLPACKAGES}
  2. {$mode objfpc}{$H+}
  3. program fpmake;
  4. uses fpmkunit;
  5. Var
  6. T : TTarget;
  7. P : TPackage;
  8. begin
  9. With Installer do
  10. begin
  11. {$endif ALLPACKAGES}
  12. P:=AddPackage('fcl-extra');
  13. {$ifdef ALLPACKAGES}
  14. P.Directory:='fcl-extra';
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.2.2-0';
  17. P.Dependencies.Add('fcl-base');
  18. P.OSes:=AllWindowsOSes+AllUnixOSes;
  19. P.Dependencies.Add('winunits-jedi',[Win32,Win64]);
  20. P.Dependencies.Add('winunits-base',[Win32,Win64]);
  21. P.Dependencies.Add('univint',[darwin,iPhoneSim]);
  22. P.Author := '<various>';
  23. P.License := 'LGPL with modification, ';
  24. P.Email := '';
  25. P.Description := 'Extra libraries of Free Component Libraries(FCL), FPC''s OOP library.';
  26. P.NeedLibC:= false;
  27. P.SourcePath.Add('src');
  28. P.IncludePath.Add('src/$(OS)',AllOSes-AllWindowsOSes-AllUnixOSes);
  29. P.IncludePath.Add('src/unix',AllUnixOSes);
  30. P.IncludePath.Add('src/win',AllWindowsOSes);
  31. P.IncludePath.Add('src/dummy',AllOSes);
  32. T:=P.Targets.AddUnit('daemonapp.pp',AllWindowsOSes+AllUnixOSes);
  33. with T.Dependencies do
  34. begin
  35. AddInclude('daemonapp.inc');
  36. end;
  37. T.ResourceStrings:=true;
  38. // Windows units
  39. T:=P.Targets.AddUnit('ServiceManager.pas',[Win32,Win64]);
  40. T.ResourceStrings:=true;
  41. {$ifndef ALLPACKAGES}
  42. Run;
  43. end;
  44. end.
  45. {$endif ALLPACKAGES}