fpmake.pp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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:=ADirectory;
  15. {$endif ALLPACKAGES}
  16. P.Version:='2.7.1';
  17. P.Dependencies.Add('fcl-base');
  18. P.OSes:=[Win32,Win64]+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.SourcePath.Add('src/win',AllWindowsOSes);
  29. P.IncludePath.Add('src/$(OS)',AllOSes-AllWindowsOSes-AllUnixOSes);
  30. P.IncludePath.Add('src/unix',AllUnixOSes);
  31. P.IncludePath.Add('src/win',AllWindowsOSes);
  32. P.IncludePath.Add('src/dummy',AllOSes);
  33. T:=P.Targets.AddUnit('daemonapp.pp',AllWindowsOSes+AllUnixOSes);
  34. with T.Dependencies do
  35. begin
  36. AddInclude('daemonapp.inc');
  37. end;
  38. T.ResourceStrings:=true;
  39. // Windows units
  40. T:=P.Targets.AddUnit('ServiceManager.pas',[Win32,Win64]);
  41. T.ResourceStrings:=true;
  42. {$ifndef ALLPACKAGES}
  43. Run;
  44. end;
  45. end.
  46. {$endif ALLPACKAGES}